Identity & Security

Key Vault

Microsoft.KeyVault

Resource types
7 of 7 supported
Data plane
5 types emulated
API versions
20 newest 2026-05-15
Ships as
Plugin 2026.11.01
Plan
Starter and above

Data as of 2026-11-20

Resource types

The Resource Types supported by Locally for the Microsoft.KeyVault plugin are shown below. You can click into a type to see more information.

Note: This is generated from the latest version of the plugin (2026.11.01) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.

API versions

The latest API version that Locally supports for Microsoft.KeyVault is 2026-05-15. All 20 versions it supports are listed below.

Stable2

2026-05-15 2026-02-01

Preview3

2026-10-01-preview 2026-06-01-preview 2026-03-01-preview

Deprecated15

2025-05-01 2024-12-01-preview 2024-11-01 2024-04-01-preview 2023-07-01 2023-02-01 2022-11-01 2022-07-01 2022-02-01-preview 2021-11-01-preview 2021-10-01 2021-06-01-preview 2021-04-01-preview 2019-09-01 2016-10-01

Features

  • Secrets, with versions, attributes and tags.
  • Keys: RSA and EC keys, plus symmetric keys in a Managed HSM, created or imported.
  • Cryptographic operations: encrypt, decrypt, sign, verify, wrap and unwrap use real cryptography.
  • Certificates: real self-signed X.509 certificates, plus PEM and PFX import.
  • Key rotation, on demand or from a rotation policy.
  • Soft-delete and purge protection, with recover, purge and automatic purging at the scheduled purge date.
  • Backup and restore of secrets, keys and certificates.
  • Managed HSM, with keys, local RBAC, and full backup and restore to a storage container.
  • Security Domain download, upload and transfer for a Managed HSM, split across the quorum of certificates you supply. Key operations are refused until the HSM is activated by a download or upload.
  • Microsoft Entra authentication, with Azure RBAC roles such as Key Vault Secrets User and Key Vault Crypto User.
  • Access policies for vaults that don't use Azure RBAC.
  • Event Grid events for new versions, near expiry and expiry of secrets, keys and certificates.
  • Key Vault references resolve in the Web App and Function App emulators using the app's managed identity.
  • Chaos Engineering can throttle, fail, slow down or drop requests, hold a deleted or recovered object in a conflicting state, or simulate a vault or regional outage. Team

Limitations

General

  • The Data Plane API behaves the same in all API versions at this time. We plan to fix this in a future release.

Managed HSM Keys

  • A backup can only be written to, or restored from, a storage account in Locally.
  • Keys aren't held in hardware (they're held in software, in Locally's own key store), and the security domain protects a key Locally generated.
  • Releasing a key isn't supported, since there's no attestation to release it against.
  • The AllowKeyManagementOperationsThroughARM setting is stored, but has no effect.

Vault Keys

  • Releasing a key isn't supported, since there's no attestation to release it against.

Vault Private Endpoint Connections

  • Private endpoints aren't applied to the vault's data plane.

Vaults

  • A vault's host name resolves whether or not the vault exists, so a request to one that doesn't returns an HTTP 503. In Azure, the host name doesn't resolve.
  • Certificate issuers can be configured but never issue anything. Certificates are always self-signed.
  • Firewall rules (networkAcls) aren't applied to the data plane. Only public network access is.
  • Managed storage accounts and their SAS definitions are stored, but don't do anything at this time.
  • Only Bearer tokens are accepted at this time. Proof-of-Possession tokens aren't.

Examples

Runnable examples from the examples library.

Reading Key Vault secrets from App Service Deploy a TypeScript app to App Service with Terraform that reads a Key Vault secret two ways, through a Key Vault reference and directly with the SDK, using a managed identity, then rotate the secret to see when each one picks up the new version. app-serviceazurerm-providercontainer-registryhashicorp-terraformkey-vaultopentofu Deploy a Key Vault to Locally using an ARM Template Provisions a Key Vault (Standard SKU), into a Resource Group of your choosing. arm-template Deploy a Key Vault Key to Locally using an ARM Template Provisions a Key Vault and an RSA Key stored within it, into a Resource Group of your choosing. arm-template Deploy a Key Vault Secret to Locally using an ARM Template Provisions a Key Vault and a Secret stored within it, into a Resource Group of your choosing. arm-template Deploy a Key Vault to Locally using a Bicep Template Provisions a Key Vault (Standard SKU), into a Resource Group of your choosing. bicep Deploy a Key Vault Key to Locally using a Bicep Template Provisions a Key Vault and an RSA Key stored within it, into a Resource Group of your choosing. bicep Deploy a Key Vault Secret to Locally using a Bicep Template Provisions a Key Vault and a Secret stored within it, into a Resource Group of your choosing. bicep Deploy a Key Vault to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing a Key Vault (Standard SKU). azapi-providerhashicorp-terraform Deploy a Key Vault Key to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing a Key Vault and an RSA Key stored within it. azapi-providerhashicorp-terraform Deploy a Key Vault Secret to Locally using Terraform and the Azure/azapi provider Provisions a Resource Group containing a Key Vault and a Secret stored within it. azapi-providerhashicorp-terraform Deploy a Key Vault to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing a Key Vault (Standard SKU). azurerm-providerhashicorp-terraform Deploy a Key Vault Key to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing a Key Vault and an RSA Key stored within it. azurerm-providerhashicorp-terraform Deploy a Key Vault Secret to Locally using Terraform and the hashicorp/azurerm provider Provisions a Resource Group containing a Key Vault and a Secret stored within it. azurerm-providerhashicorp-terraform Deploy a Key Vault to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing a Key Vault (Standard SKU). azapi-provideropentofu Deploy a Key Vault Key to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing a Key Vault and an RSA Key stored within it. azapi-provideropentofu Deploy a Key Vault Secret to Locally using OpenTofu and the Azure/azapi provider Provisions a Resource Group containing a Key Vault and a Secret stored within it. azapi-provideropentofu Deploy a Key Vault to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing a Key Vault (Standard SKU). azurerm-provideropentofu Deploy a Key Vault Key to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing a Key Vault and an RSA Key stored within it. azurerm-provideropentofu Deploy a Key Vault Secret to Locally using OpenTofu and the opentofu/azurerm provider Provisions a Resource Group containing a Key Vault and a Secret stored within it. azurerm-provideropentofu

Documentation

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.