Key Vault

Vaults

Microsoft.KeyVault/vaults

Control plane
Supported
Data plane
Emulated
API versions
20 2 stable
Ships in
Plugin Microsoft.KeyVault 2026.11.01
Plan
Starter and above

Data as of 2026-11-20

API versions

The API versions Locally supports for Microsoft.KeyVault/vaults.

API versionStatusControl planeData plane
2026-10-01-preview preview Supported Emulated
2026-06-01-preview preview Supported Emulated
2026-05-15 stable Supported Emulated
2026-03-01-preview preview Supported Emulated
2026-02-01 stable Supported Emulated
2025-05-01 deprecated Supported Emulated
2024-12-01-preview deprecated Supported Emulated
2024-11-01 deprecated Supported Emulated
2024-04-01-preview deprecated Supported Emulated
2023-07-01 deprecated Supported Emulated
2023-02-01 deprecated Supported Emulated
2022-11-01 deprecated Supported Emulated
2022-07-01 deprecated Supported Emulated
2022-02-01-preview deprecated Supported Emulated
2021-11-01-preview deprecated Supported Emulated
2021-10-01 deprecated Supported Emulated
2021-06-01-preview deprecated Supported Emulated
2021-04-01-preview deprecated Supported Emulated
2019-09-01 deprecated Supported Emulated
2016-10-01 deprecated Supported Emulated

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.

Nested resource types

The resource types nested under Microsoft.KeyVault/vaults. Click one to see more information.

Features

  • Azure RBAC on the data plane, with roles such as Key Vault Secrets User, assigned on the vault or on a single secret, key or certificate.
  • Access policies for vaults that don't use Azure RBAC, with list and get permissions kept separate.
  • Soft-delete: a deleted vault keeps its name reserved until it's purged.
  • Certificates: self-signed X.509 certificates created from a policy, covering key type, subject, validity, key usage and SANs.
  • Certificate import from PEM or PFX, including password-protected PFX files.
  • Certificate contacts
  • Premium SKU: RSA-HSM and EC-HSM keys need a premium vault, as in Azure.
  • Public network access can be switched off, and the data plane honours it.
  • Event Grid events for secrets, keys and certificates, plus VaultAccessPolicyChanged.
  • Key Vault references resolve in the Web App and Function App emulators using the app's managed identity.
  • Chaos Engineering Team

Limitations

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.

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.

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.