When it is written
The vault writes the record when a client calls Get Secret on the data plane (GET <vault>/secrets/<name>/<version>), from an application, the portal, an SDK, Azure PowerShell or the Azure CLI. The call returns the secret's value; without a version it returns the latest one. It needs the secrets/get permission, through an access policy or an Azure RBAC role, depending on the vault's permission model.
The record names the secret and its version in Id and RequestUri, the caller in Identity and the client address in CallerIpAddress. The secret's value is not a column of the table. Denied reads are recorded too, with HttpStatusCode 403 and the access check columns (IsRbacAuthorized, IsAccessPolicyMatch, IsAddressAuthorized).
How to turn it on
Azure Key Vault resource logs records SecretGet calls to Azure Key Vault resource logs once it is turned on. Vendor documentation
Key Vault writes these records for every request, but nothing keeps them until a diagnostic setting on the vault sends the AuditEvent category (the category that holds these operations; the vault's other category, AzurePolicyEvaluationDetails, holds Azure Policy evaluations) to a destination: a Log Analytics workspace, a storage account (container insights-logs-auditevent, JSON blobs per hour) or an event hub that a third-party SIEM reads. A vault without a setting leaves no record of who read its secrets.
- Create the setting on every vault. Diagnostic settings can be created in the portal, programmatically, or deployed with Azure Policy, which also covers vaults created later.
- In a Log Analytics workspace, choose the Resource specific destination table: the records go to
AZKVAuditLogs, the table the detection rules read. Azure diagnostics mode writes them toAzureDiagnosticswith other column names. Microsoft recommends resource-specific mode for new settings. - What is recorded: every authenticated REST request (including requests that failed on permissions, system errors or bad requests), unauthenticated requests answered with 401, operations on the vault itself (create, delete, access policies, attributes such as tags), and the Event Grid notifications for expiry, near expiry and access policy changes, whether or not anyone subscribed to them.
- Records are available within 10 minutes of the operation at most, usually sooner.
- Key Vault does not manage what it delivers: retention is the destination's (workspace retention, storage lifecycle rules). Changes made through Azure Resource Manager also appear in the Azure Activity log of the subscription, with the caller; reads of secrets, keys and certificates appear only here.
az monitor diagnostic-settings list --resource <key-vault-resource-id>az keyvault list --query "[].id" --output tsvaz keyvault show --name <vault-name> --query "properties.{softDelete:enableSoftDelete, purgeProtection:enablePurgeProtection, retentionDays:softDeleteRetentionInDays, rbac:enableRbacAuthorization}"az monitor log-analytics query --workspace <workspace-guid> --timespan P7D --analytics-query "AZKVAuditLogs | where OperationName == 'SecretGet' | take 5"Fields
The operation’s own fields first, then the fields every Azure Key Vault resource logs record has. Field names are the JSON paths of the record as the vendor documents it.
| Field | What it holds |
|---|---|
IdRead by 1 rule | The secret identifier that was read, with its version (https://<vault>.vault.azure.net/secrets/<name>/<version>). The detection rule counts distinct values of it per address and vault. |
SecretProperties | The secret's properties, which Microsoft describes as its type and attributes (enabled, dates, recovery level). Microsoft does not document the exact layout of the column. |
Fields every Azure Key Vault resource logs record has (20)
| Field | What it holds |
|---|---|
TimeGenerated | When the operation occurred, in UTC (time in the resource log JSON). |
ResourceIdRead by 1 rule | Resource ID of the key vault the request was made to (_ResourceId in AZKVAuditLogs, resourceId in the resource log JSON), in upper case in Microsoft's example. The rules group by it to count per vault. |
OperationNameRead by 1 rule | The operation, in ObjectVerb form: Vault<action> for the vault itself, Secret<action>, Key<action> and Certificate<action> for the objects in it. The operation this page is about. |
OperationVersion | The REST API version the client asked for. |
ResultTypeRead by 1 rule | Result of the REST API request (Success in Microsoft's example). The rules match Success. |
ResultSignature | The HTTP status of the response as text (OK, Forbidden...). |
ResultDescription | More detail about the result, when the service gives one. |
HttpStatusCode | The HTTP status code of the response (200, 401, 403...). |
DurationMs | How long the vault took to serve the request, in milliseconds, without network latency. |
CallerIpAddressRead by 1 rule | The address of the client that made the request. The rules count per address because the identity claims are not mapped as fields. |
Identity | The identity in the token presented with the request: usually a user, a service principal, or a user plus application ID (a request made through Azure PowerShell, for example), as claims such as the object ID, the UPN and appid. |
ClientInfo | The user agent string the client sent. |
RequestUri | The exact URI of the request. It names the object (/secrets/<name>/<version>, /keys/<name>/backup) for data-plane requests and the vault's Resource Manager URI for management requests. |
CorrelationId | An optional GUID the client can pass to match its own logs with the vault's. |
IsRbacAuthorized | Whether an Azure RBAC access check granted the request. |
IsAccessPolicyMatch | Whether the token's tenant is the vault's tenant and an access policy explicitly gives the caller the permission (vaults that use the access policy model). |
IsAddressAuthorized | Whether the request came from an address or network the vault's firewall allows. |
SubnetId | The subnet the request came from, when it came from a known subnet. |
AppliedAssignmentId | The role assignment that granted or denied the request in the access check (vaults that use Azure RBAC). |
AddressAuthorizationType | How the source address was classed (public IP, subnet or private connection). |
Values to know
HttpStatusCode
| Value | Meaning | Signal |
|---|---|---|
200 | The secret was returnedRoutine for the vault's own applications; many different secrets from one caller is what the rule counts. | Expected |
403 | The caller has no permission for the secret, or the vault's firewall refused the addressIsRbacAuthorized, IsAccessPolicyMatch and IsAddressAuthorized show which check failed. Many of them from one address is a caller trying what it can reach. | Failure |
401 | The request carried no valid tokenKey Vault records unauthenticated requests too (no bearer token, or a malformed or expired one). | Failure |
Volume and noise
High. Applications, managed identities, deployment pipelines and Azure services that use the vault read their secrets constantly, usually the same few secrets from the same addresses. What stands out is a caller reading many different secrets, a caller that never read this vault before, or reads from an address outside the networks that host the vault's applications.
Keeping it manageable
- Count distinct
Idvalues per caller and vault, as the detection rule does. An application reads a handful of secrets; a person or a tool going through the vault reads many.Idincludes the version, so several versions of one secret count separately. - Name the caller from
Identity(object ID, UPN,appid) in the matching records; the rule groups byCallerIpAddressandResourceIdonly. - List the identities and addresses expected to read each vault (the applications' managed identities, the pipeline's service principal) and review reads by anyone else first.
- Put the reads next to the access changes of the same vault (
VaultAccessPolicyChangedEventGridNotification, role assignments in the Azure Activity log): a grant followed by reads is the sequence to look at.
Sample event
A Azure Key Vault resource logs record in the vendor’s format, with made-up values.
{
"TimeGenerated": "2026-11-18T09:30:12.4410000Z",
"ResourceId": "/SUBSCRIPTIONS/00000000-0000-0000-0000-000000000001/RESOURCEGROUPS/RG-PROD-APPS/PROVIDERS/MICROSOFT.KEYVAULT/VAULTS/KV-CORP-APPS",
"OperationName": "SecretGet",
"OperationVersion": "2025-07-01",
"ResultType": "Success",
"ResultSignature": "OK",
"ResultDescription": "",
"HttpStatusCode": 200,
"DurationMs": 14,
"CallerIpAddress": "203.0.113.24",
"Identity": {
"claim": {
"http://schemas.microsoft.com/identity/claims/objectidentifier": "00000000-0000-0000-0000-00000000b0b0",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "ops-admin@corp.example.com",
"appid": "00000000-0000-0000-0000-00000000c11e"
}
},
"ClientInfo": "azsdk-python-keyvault-secrets/4.9.0 Python/3.11.9 (Linux-6.8-x86_64)",
"RequestUri": "https://kv-corp-apps.vault.azure.net/secrets/sql-admin-password/?api-version=2025-07-01",
"CorrelationId": "00000000-1111-2222-3333-444444444444",
"IsRbacAuthorized": true,
"IsAccessPolicyMatch": false,
"IsAddressAuthorized": true,
"Id": "https://kv-corp-apps.vault.azure.net/secrets/sql-admin-password/3f2a9c1d8e7b4a6f9d0c1b2a3e4f5a6b",
"SecretProperties": {
"attributes": {
"enabled": true,
"recoveryLevel": "Recoverable"
}
}
}Attacks this event reveals
Detection rules that read this event:
Detection logic (hypotheses that join this event with others) for:
Frequently asked questions
Does the record contain the secret's value?
No. The table has columns for the secret's identifier and properties, not for its value. The record shows that a caller received the value, which is why reads of many different secrets matter.
Why do I see SecretGet records answered with 401?
Key Vault logs the unauthenticated requests that it answers with 401: requests without a bearer token, or with a malformed, expired or invalid one. They show that a client reached the vault, not that it read anything.