Cloud ✓ fields verified against sample logs

Azure Activity Log Fields: Reference With Examples and KQL

Published

One record per control-plane operation in an Azure subscription — who (caller) did what (operationName) to which resource (resourceId), from which address, and how it went (status). Long operations write a Started record and then a Succeeded or Failed one, joined by correlationId.

Official documentation: Microsoft: Azure Activity Log event schema · Microsoft: Azure Monitor activity log · Microsoft: AzureActivity table

Sample record

{
"caller": "[email protected]",
"operationName": "Microsoft.Compute/virtualMachines/start",
"resourceId": "/subscriptions/abc123/resourceGroups/dev-rg/providers/Microsoft.Compute/virtualMachines/dev-vm-01",
"resourceProviderName": "Microsoft.Compute",
"subscriptionId": "abc123",
"status": "Succeeded",
"eventTimestamp": "2024-01-15T09:00:00Z",
"httpRequest": {
"clientIpAddress": "203.0.113.10",
"method": "POST"
},
"properties": {}
}

Numbered lines are the fields in the table.

From the LogTriage parser test corpus — synthetic data, no real hosts or users.

Explain this record field by field →

Field reference

Field Type Meaning Why it matters for security
1callere.g. [email protected] string Microsoft: "Email address of the user who has performed the operation, UPN claim, or SPN claim based on availability." A guest or external address making role or Key Vault changes, as in the malicious sample, needs an explanation before anything else.
2operationNamee.g. Microsoft.Authorization/roleAssignments/write string Microsoft: "Name of the operation." Written as provider/resource type/action. roleAssignments/write, Key Vault accessPolicies/write and delete operations on production resources are the ones to alert on.
3statuse.g. Started string Microsoft: "String describing the status of the operation. Some common values are: Started, In Progress, Succeeded, Failed, Active, Resolved." The request details are on the Started record; the Succeeded record tells you it worked. Read both.
4eventTimestampe.g. 2024-01-15T14:30:00Z date-time (UTC) Microsoft: "Timestamp when the event was generated by the Azure service processing the request corresponding the event." Use it for the timeline; submissionTimestamp is only when the event became queryable.
5resourceIde.g. /subscriptions/abc123/resourceGroups/prod-rg/providers/Microsoft.KeyVault/vaults/prod-kv/accessPolicies/add string Microsoft: "Resource ID of the impacted resource." The scope of a change; a role assignment at /subscriptions/<id> covers everything in the subscription.
6resourceProviderNamee.g. Microsoft.Authorization string Microsoft: "Name of the resource provider for the impacted resource." Microsoft.Authorization (role changes) and Microsoft.KeyVault are where escalation shows up.
7subscriptionIde.g. abc123 string Microsoft: "Azure Subscription ID." Group by it when one identity touches several subscriptions in a short time.
8httpRequest.clientIpAddresse.g. 185.220.101.42 IP address Part of httpRequest, which Microsoft describes as "Blob describing the Http Request. Usually includes the clientRequestId, clientIpAddress and method (HTTP method. For example, PUT). This property isn't included when you view an event in the Azure portal since raw HTTP request details may include sensitive information." The address the operation came from; read it in exported events, since the portal leaves it out.
9httpRequest.methode.g. PUT string The HTTP method of the Azure Resource Manager request (PUT for create or update, DELETE, POST for actions). DELETE on production resources by an unexpected caller is sabotage or cover-up.
correlationIde.g. 7d2c1b0a-9e8f-4a6b-b5c4-3d2e1f0a9b8c GUID Microsoft: "Usually a GUID in the string format. Events that share a correlationId belong to the same uber action." Joins a Started record, with the request body, to its Succeeded or Failed result.
properties.requestbody string (JSON) Part of properties, which Microsoft describes as a "Set of <Key, Value> pairs (that is, a Dictionary) describing the details of the event." On a Started write, requestbody holds the request; on the result, statusCode holds the HTTP result (Created). For a role assignment the request body names the RoleDefinitionId — the Owner and User Access Administrator role IDs are the dangerous ones.

Have one of your own records? Paste it into the log line explainer and each field is explained from this table, with times, codes and addresses decoded — in your browser.

What it records

The activity log is Azure’s record of control-plane operations: every create, update, delete and action that goes through Azure Resource Manager in a subscription. Each event, in the schema Microsoft documents in the activity log event schema, says who (caller), what (operationName), on which resource (resourceId, resourceProviderName, subscriptionId), when (eventTimestamp), from where (httpRequest.clientIpAddress) and with which outcome (status). The properties dictionary carries operation details, including the request body of a write.

The malicious sample is an external account taking over a subscription: a role assignment whose Started record shows the Owner role definition in the request body, its Succeeded result two seconds later, and a Key Vault access policy change, all from one address — then deletion of a production virtual machine from a second address, with the same caller. Grouping by caller and by address tells two different stories here.

Where to get it

  • Azure portal. Monitor → Activity log, filterable by subscription, resource group, operation and caller, with download as CSV. The portal hides httpRequest.
  • CLI and REST. az monitor activity-log list and the REST API return JSON for the last 90 days.
  • Diagnostic setting. Export to a Log Analytics workspace (the AzureActivity table), a storage account or an event hub for longer retention and SIEM collection.
// Role assignments in the last 7 days, with the request body that names the role
AzureActivity
| where TimeGenerated > ago(7d)
| where OperationNameValue =~ "Microsoft.Authorization/roleAssignments/write"
| where ActivityStatusValue in ("Start", "Started")
| project TimeGenerated, Caller, CallerIpAddress, SubscriptionId, _ResourceId, Properties_d, CorrelationId

Parsing pitfalls

  • Shapes differ by route. The REST API writes operationName and status as objects with value and localizedValue; storage exports use the resource-log schema (operationName, resultType, callerIpAddress); Log Analytics renames them again (OperationNameValue, ActivityStatusValue, CallerIpAddress). The samples here use plain strings.
  • Status spelling. Log Analytics shows Start where the API shows Started; match both.
  • The request body is a string. properties.requestbody is JSON inside a string; parse it before matching role IDs.
  • Pairs of records. Count operations by correlationId, not by record, or every write counts twice.
  • Control plane only. Data-plane access — secret reads, blob downloads — is not here; it is in each resource’s own logs.

Detection ideas

  • Privileged role grants: roleAssignments/write whose request body names the Owner (8e3af657-a8ff-443c-a75c-2fe8c4bcb635) or User Access Administrator (18d7d88d-d35e-4fb5-a5c3-7773c20a72d9) role — the privileged role assignment rule.
  • Secret access set-up: Key Vault accessPolicies/write or role assignments on a vault by an unexpected caller.
  • Destruction: delete operations on production resources, especially in bursts or after a role change.
  • Unusual callers: guest or external identities, or service principals acting from new addresses.
  • Defence changes: writes to diagnostic settings, policy assignments or Microsoft Defender for Cloud settings that reduce logging or protection.

The free browser analyzer reads activity log exports and runs these checks locally.

Sending Azure ARM Activity Log to an LLM

One megabyte of this format is about 465,164 tokens on current Claude models and 278,275 on GPT models, measured with the models' own tokenizers — so a gigabyte sent raw to Claude Sonnet 5.5 costs about $930 in input tokens alone (prices of 2026-10-24). Estimate your own volume →

Detections and guides for Azure ARM Activity Log

Frequently Asked Questions

How long does Azure keep the activity log?
Microsoft retains activity log events for 90 days and then deletes them. To keep them longer, create a diagnostic setting that sends the activity log to a Log Analytics workspace, a storage account or an event hub. Do it before you need it: the creator of a resource is only recorded in the activity log.
Why are there two records for one role assignment?
Azure Resource Manager logs a write when it starts and again when it finishes. The Started record carries the request, including the request body with the role and principal; the Succeeded or Failed record carries the result. They share a correlationId, so join on it to see both what was asked and whether it worked.
Does the activity log show Key Vault secret reads?
No. The activity log records control-plane operations — creating, changing and deleting resources, and changing access policies. Reading a secret is a data-plane operation recorded in the Key Vault's own resource logs, which, as Microsoft notes, are not collected until you configure a diagnostic setting.
Why is clientIpAddress missing in the portal?
Microsoft's schema says httpRequest "isn't included when you view an event in the Azure portal since raw HTTP request details may include sensitive information." Exported events — through a diagnostic setting, the REST API or Log Analytics (the CallerIpAddress column) — include it.

Analyze a Azure ARM Activity Log file in your browser

The free analyzer detects this format, parses every field above and flags attack patterns — the file never leaves your machine. For threat-intel enrichment and an AI-written incident report, run it through LogTriage.

Investigating something right now? LogTriage checks every address in the file against threat intelligence and writes the incident report: 10 analyses a month free. The incident pack adds the in-depth AI analysis and files up to 100 MB: 25 analyses for $19, one payment, no subscription. Pricing

How this page was made. The official definitions, field names and examples on it are copied by script from the sources it links and re-checked against them on every build. The investigation advice was drafted with AI from those sources and passed a separate review before publishing. What is checked, and how · found a mistake? [email protected]