When it is written
The vault writes the record when a client calls Backup Secret (POST <vault>/secrets/<name>/backup), from the portal's Download Backup button, an SDK, Azure PowerShell or the Azure CLI. It needs the secrets/backup access policy permission or, in a vault that uses Azure RBAC, the data action Microsoft.KeyVault/vaults/secrets/backup/action, which the built-in roles Key Vault Administrator and Key Vault Secrets Officer carry and Key Vault Secrets User does not. The response is a blob that holds every version of the secret, encrypted so that it cannot be decrypted outside Azure.
A backup is meant as an offline copy in case a secret is lost, or to copy a secret into another vault. Microsoft documents that it can only be restored into a vault in the same Azure subscription and Azure geography, that each object is backed up on its own (there is no backup of a whole vault), and that objects with more than 500 versions cannot be backed up. The record shows who took the backup (Identity) and from where (CallerIpAddress); what happens to the blob afterwards is not in the log, only a later SecretRestore in a vault that writes this log. Microsoft documents that a backup blob cannot be revoked or invalidated once it exists and that a restored copy is independent of the original: disabling or deleting the secret afterwards does not affect it.
Read the secret's name from RequestUri (/secrets/<name>/backup). Microsoft documents the Id column as the identifier of the object a request returns, and a backup returns a blob; it describes SecretProperties as the secret's type and attributes without saying which operations fill it. Neither is confirmed for a backup record, so this page lists no field of the operation's own.
How to turn it on
Azure Key Vault resource logs records SecretBackup 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 == 'SecretBackup' | take 5"Fields
The vendor documents no fields of this operation’s own, so none are listed: read one record of your own to see what it carries. The fields every Azure Key Vault resource logs record has are below; their names are the JSON paths of the record as the vendor documents it.
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). |
ResourceId | 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. |
CallerIpAddress | 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
ResultType
| Value | Meaning | Signal |
|---|---|---|
Success | The backup blob was returned to the callerEvery successful backup is what the detection rule reports. Confirm that the caller is expected to keep copies of this vault's secrets. | Attack signal |
Volume and noise
Low in most vaults. Expected callers are the people who administer the vault, automation that keeps a copy of its secrets in another vault of the same subscription, and, in a vault that holds Azure Disk Encryption secrets, Azure Backup: Microsoft documents that VM backup uses the Backup Management Service application with the secret and key backup permissions to back up the disk encryption secrets and keys with the VM. Expect that application as a regular caller there and tell it apart by its application ID in Identity, not by address. A backup by an application identity that normally only reads the secret, by someone outside the vault's administrators, or of many secrets in a row is the case the detection rule is there for.
Keeping it manageable
- Name the caller from
Identityand compare it with the vault's administrators and any documented backup or synchronisation job. - Look for a run of backups of different secrets, keys and certificates from one address or identity in a short time; one object at a time is the usual pattern.
- Look for the matching
SecretRestorein the vaults you collect; a restore into a vault you do not know about, or none at all, is worth a question. - When a backup is not explained, remove the caller's backup and restore permissions and change the secret's value at its source (the database, service or API that issued it). The blob keeps the values it was taken with and cannot be recalled.
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": "SecretBackup",
"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/backup?api-version=2025-07-01",
"CorrelationId": "00000000-1111-2222-3333-444444444444",
"IsRbacAuthorized": true,
"IsAccessPolicyMatch": false,
"IsAddressAuthorized": true
}Attacks this event reveals
Detection rules that read this event:
Frequently asked questions
Can someone read the secret's value from the backup blob?
Microsoft documents that the blob cannot be decrypted outside Azure; to use it, it has to be restored into a key vault in the same subscription and Azure geography. Whoever can restore it there can then read the secret.