1. Resources
  2. Detection sources
  3. VaultPut

VaultPut: A key vault was created or its settings were replaced

Recorded in the vault's own log when the vault is created or updated through Azure Resource Manager. Access policies, the permission model and the network rules are vault settings, so a change to any of them can arrive here.

Log source
Azure Key Vault resource logs
Detection value
Supporting
Volume
Low (estimate)
Last updated
Log
Azure Key Vault resource logs (Azure Key Vault resource logs, off by default)
Service
Azure Key Vault resource logs
Operation
VaultPut
Detects
1 attack (1 rule · 1 detection logic)
MITRE ATT&CK
1 technique in 2 tactics
Threat groups
3 groups that MITRE ATT&CK records using these techniques
Fields the rules read
OperationNameResultType

When it is written

The vault writes the record for the management operation that creates or updates a key vault (PUT on Microsoft.KeyVault/vaults/<name> through Azure Resource Manager), from the portal, a template or Bicep deployment, Terraform, Azure PowerShell or the Azure CLI. The request carries the vault's settings: its access policies, whether Azure RBAC authorizes data access (enableRbacAuthorization), its network rules, soft delete and purge protection, the retention period and the SKU. RequestUri is the vault's Resource Manager URI (https://management.azure.com/.../vaults/<name>).

The same change is in the Azure Activity log as MICROSOFT.KEYVAULT/VAULTS/WRITE, with the caller. The resource-specific table AZKVAuditLogs has columns for the vault's settings (below); Microsoft describes the columns but does not document which operations fill them, so compare with one of your own VaultPut records before relying on them.

How to turn it on

Azure Key Vault resource logs records VaultPut 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 to AzureDiagnostics with 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.
List the diagnostic settings of a vault and the categories they send (read only)
az monitor diagnostic-settings list --resource <key-vault-resource-id>
Based on vendor documentation.
List the resource IDs of the vaults in this subscription (read only)
az keyvault list --query "[].id" --output tsv
Based on vendor documentation.
Check soft delete, purge protection and the permission model of a vault (read only)
az keyvault show --name <vault-name> --query "properties.{softDelete:enableSoftDelete, purgeProtection:enablePurgeProtection, retentionDays:softDeleteRetentionInDays, rbac:enableRbacAuthorization}"
Based on vendor documentation.
Find recent VaultPut records (read only)
az monitor log-analytics query --workspace <workspace-guid> --timespan P7D --analytics-query "AZKVAuditLogs | where OperationName == 'VaultPut' | take 5"
Based on vendor documentation.

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.

FieldWhat it holds
IdThe vault's URI (https://<vault>.vault.azure.net/), as Microsoft's example record of a vault operation carries it, when the record has one.
VaultPropertiesThe vault's detailed properties, which Microsoft describes as including its access policies, IP rules and virtual network rules. Microsoft does not document the exact layout of the column.
EnableRbacAuthorizationWhether Azure RBAC authorizes data access. When true, role assignments decide who can read secrets, keys and certificates and access policies are ignored; when false, the access policies decide. Management actions always use Azure RBAC.
NetworkAclsThe network rules that govern access to the vault: the default action (Allow or Deny) when no IP or virtual network rule matches, whether trusted Azure services may bypass the rules, and the rules themselves.
EnableSoftDeleteWhether soft delete is on. Once on, it cannot be turned off.
EnablePurgeProtectionWhether purge protection is on. Once on, it cannot be turned off, and deleted objects cannot be purged before their retention period ends.
SoftDeleteRetentionInDaysThe retention period of deleted objects, 7 to 90 days, which can only be set when the vault is created.
SkuThe vault's pricing tier (family and name, standard or premium).
Fields every Azure Key Vault resource logs record has (20)
FieldWhat it holds
TimeGeneratedWhen the operation occurred, in UTC (time in the resource log JSON).
ResourceIdResource 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 ruleThe 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.
OperationVersionThe REST API version the client asked for.
ResultTypeRead by 1 ruleResult of the REST API request (Success in Microsoft's example). The rules match Success.
ResultSignatureThe HTTP status of the response as text (OK, Forbidden...).
ResultDescriptionMore detail about the result, when the service gives one.
HttpStatusCodeThe HTTP status code of the response (200, 401, 403...).
DurationMsHow long the vault took to serve the request, in milliseconds, without network latency.
CallerIpAddressThe address of the client that made the request. The rules count per address because the identity claims are not mapped as fields.
IdentityThe 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.
ClientInfoThe user agent string the client sent.
RequestUriThe 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.
CorrelationIdAn optional GUID the client can pass to match its own logs with the vault's.
IsRbacAuthorizedWhether an Azure RBAC access check granted the request.
IsAccessPolicyMatchWhether 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).
IsAddressAuthorizedWhether the request came from an address or network the vault's firewall allows.
SubnetIdThe subnet the request came from, when it came from a known subnet.
AppliedAssignmentIdThe role assignment that granted or denied the request in the access check (vaults that use Azure RBAC).
AddressAuthorizationTypeHow the source address was classed (public IP, subnet or private connection).

Values to know

EnableRbacAuthorization

ValueMeaningSignal
trueData access is decided by Azure RBAC role assignmentsSwitching to this model invalidates every access policy permission; data access then comes from role assignments on the vault or above it, which need role assignment rights (Owner, User Access Administrator, Key Vault Data Access Administrator).Worth knowing
falseData access is decided by the vault's access policiesIn this model any identity with Microsoft.KeyVault/vaults/write (Contributor, Key Vault Contributor) can grant itself data access through an access policy. A switch back to it deserves a question.Worth knowing

NetworkAcls

ValueMeaningSignal
defaultAction: AllowRequests that match no rule are allowedA change from Deny to Allow opens the vault to every network; review it with the caller.Worth knowing
defaultAction: DenyOnly the listed addresses and networks (and trusted services, if allowed) can reach the vaultExpected

Volume and noise

Medium where pipelines redeploy vaults on every run, low elsewhere. Tags, soft delete and purge protection settings and vault creation all arrive as this operation, so most records are routine. The detection rule matches every successful one and is meant for review; the changes that matter are the permission model switching, access policies that grant data access to a new identity, and network rules that open the vault.

Keeping it manageable

  • Exclude the addresses or identities of known deployment pipelines once confirmed, and review changes made from the portal or by people first.
  • Compare the settings columns with the previous record of the same vault: EnableRbacAuthorization changing in either direction changes who can read the data, and NetworkAcls with a default action of Allow opens the vault to every network.
  • Match the record to the MICROSOFT.KEYVAULT/VAULTS/WRITE event of the same vault and time in the Azure Activity log to see the caller and the request.

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": "VaultPut",
  "OperationVersion": "2026-02-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": "azure-resource-manager/2.0",
  "RequestUri": "https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000001/resourceGroups/rg-prod-apps/providers/Microsoft.KeyVault/vaults/kv-corp-apps?api-version=2026-02-01",
  "CorrelationId": "00000000-1111-2222-3333-444444444444",
  "IsRbacAuthorized": true,
  "IsAccessPolicyMatch": false,
  "IsAddressAuthorized": true,
  "Id": "https://kv-corp-apps.vault.azure.net/",
  "VaultProperties": {
    "accesspolicy": [],
    "iprule": [
      {
        "value": "198.51.100.0/24"
      }
    ],
    "virtualnetwork": []
  },
  "EnableRbacAuthorization": true,
  "NetworkAcls": {
    "defaultAction": "Deny",
    "bypass": "AzureServices",
    "ipRules": [
      {
        "value": "198.51.100.0/24"
      }
    ]
  },
  "EnableSoftDelete": true,
  "EnablePurgeProtection": true,
  "SoftDeleteRetentionInDays": 90,
  "Sku": {
    "family": "A",
    "name": "standard"
  }
}

Attacks this event reveals

Detection rules that read this event:

References