Key Vault
Vault Keys
Microsoft.KeyVault/vaults/keys
- Control plane
- Supported
- Data plane
- Emulated
- API versions
- 19 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/keys.
| API version | Status | Control plane | Data 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 |
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.
Features
- RSA and EC keys, created or imported, with key size and curve validated.
- Encrypt and decrypt with
RSA1_5,RSA-OAEPandRSA-OAEP-256. - Sign and verify with RSA (PKCS#1 v1.5 and PSS), ECDSA and Ed25519.
- Wrap and unwrap with RSA.
- Key attributes: a disabled, not yet valid or expired key, or an operation missing from
key_ops, is refused. - Key rotation on demand, creating a new version.
- Rotation policies:
Rotateactions rotate the key automatically andNotifyactions raiseKeyNearExpiry. - Soft-delete: get, list, recover and purge deleted keys, with purge protection enforced.
- Backup and restore, keeping every version and its version ID.
- Role assignments on a single key are honoured, as well as those inherited from the vault.
- Event Grid events:
KeyNewVersionCreated,KeyNearExpiryandKeyExpired.
Limitations
- Releasing a key isn't supported, since there's no attestation to release it against.
Examples
Runnable examples from the examples library.
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.
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.
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.
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.
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.
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.