---
title: "Azure Key Vault Keys SDK for .NET: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/microsoft-azure-security-keyvault-keys-dotnet/
description: "Microsoft's .NET guide to Azure.Security.KeyVault.Keys: creating RSA, EC and symmetric keys in Key Vault or Managed HSM, rotating them by policy, and running encrypt, wrap and sign operations through CryptographyClient."
---

# Azure Key Vault Keys SDK for .NET: review, setup & limitations · Undominated.ai

> Microsoft's .NET guide to Azure.Security.KeyVault.Keys: creating RSA, EC and symmetric keys in Key Vault or Managed HSM, rotating them by policy, and running encrypt, wrap and sign operations through CryptographyClient.

[← Explore all skills](/skills/)

CLOUD DEVELOPMENT / Microsoft

# Azure Key Vault Keys SDK for .NET

Microsoft's .NET guide to Azure.Security.KeyVault.Keys: creating RSA, EC and symmetric keys in Key Vault or Managed HSM, rotating them by policy, and running encrypt, wrap and sign operations through CryptographyClient.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/microsoft/skills/tree/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/skills/azure-security-keyvault-keys-dotnet)

SOURCE REVIEW

 Reviewed 2026-10-21
 Evidence 6 linked sources
 Publisher Microsoft
 Licence [MIT ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE)
 Revision fc164ba1d7a0
 [Read what was—and wasn’t—checked ↓](#review)

“Azure Key Vault Keys SDK for .NET. Client library for managing cryptographic keys in Azure Key Vault and Managed HSM. Use for key creation, rotation, encryption, decryption, signing, and verification. Triggers: "Key Vault keys", "KeyClient", "CryptographyClient", "RSA key", "EC key", "encrypt decrypt .NET", "key rotation", "HSM". ”

 [Microsoft · upstream description ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/skills/azure-security-keyvault-keys-dotnet/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - It walks the key lifecycle in one file: create RSA, EC and Oct keys, list versions, update properties, delete and purge, back up and restore, rotate, and set a policy that rotates 30 days before a 90-day expiry.
- It separates KeyClient management from CryptographyClient operations (encrypt and decrypt, wrap and unwrap, sign and verify) and tabulates the algorithms for each, marking Rsa15 as legacy.
- It names the RBAC roles Key Vault Crypto Officer, Key Vault Crypto User and Key Vault Reader, and handles 404 and 403 from RequestFailedException separately.

### A good fit for

 - Set a .NET rotation policy that rotates a Key Vault key before it expires
- Wrap a locally generated 256-bit AES key with an RSA-OAEP-256 Key Vault key and unwrap it again
- Sign data, or a precomputed SHA-256 hash, with RS256 and verify the signature in .NET
- Create an RSA key limited to encrypt and decrypt, with NotBefore and ExpiresOn dates

### Weigh up before choosing

 - Both install lines Microsoft prints for this skill, `npx skills add microsoft/skills --skill azure-sdk-dotnet` and `/plugin install azure-sdk-dotnet@skills`, install the whole azure-sdk-dotnet plugin rather than the Key Vault keys skill alone.
- The delete sample purges the key as soon as deletion completes, with no confirmation step.
- The backup sample writes the key backup to a local file, key-backup.bin, and restores from it.
- The Service Principal sample passes the client secret as a string argument, while practice 1 says to prefer DefaultAzureCredential over secrets.
- The file gives the package as Current Version 4.7.0 (stable); this review did not compare later package releases.
- The azure-security-keyvault-keys-dotnet directory holds SKILL.md only and was last changed at the pin by commit 073741f2, committed 2026-05-04 (2026-05-05T00:22:24Z UTC).

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - .github/plugins/azure-sdk-dotnet/skills/azure-security-keyvault-keys-dotnet/SKILL.md (all 417 lines)
- .github/plugins/azure-sdk-dotnet/README.md
- .github/plugins/azure-sdk-dotnet/.claude-plugin/plugin.json
- README.md
- LICENSE

### Our findings

 - The Authentication sample builds DefaultAzureCredential with DefaultAzureCredential.DefaultEnvironmentVariableName and says to set AZURE_TOKEN_CREDENTIALS=prod, or a specific credential, in production.
- KEY_VAULT_NAME is marked required and AZURE_KEYVAULT_URL optional; AZURE_TOKEN_CREDENTIALS is marked "Required only if DefaultAzureCredential is used in production".
- Practice 3 says to set HardwareProtected = true for sensitive keys. The EC and Oct samples set it; the RSA options sample sets it false with the comment "true for HSM-backed".
- KeyResolver turns a key ID URI into a CryptographyClient for later operations.
- The frontmatter declares license MIT, author Microsoft, version 1.0.0 and package Azure.Security.KeyVault.Keys. It declares no allowed-tools.

### Not established by this review

 - No key was created, rotated, deleted, purged, backed up or used for a cryptographic operation.
- No dotnet package was added to a project.
- Neither the azure-sdk-dotnet plugin nor azure-security-keyvault-keys-dotnet was installed.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/README.md)
 - The azure-sdk-dotnet plugin README prints `npx skills add microsoft/skills --skill azure-sdk-dotnet` under Install. It installs the whole azure-sdk-dotnet plugin, whose skill table lists azure-security-keyvault-keys-dotnet; it does not install that skill alone.
- The same README prints `/plugin install azure-sdk-dotnet@skills`, which also brings in azure-security-keyvault-keys-dotnet together with every other skill in the plugin. The repository README runs plugin commands inside Copilot CLI after `/plugin marketplace add microsoft/skills`.

### Before you start

 - The skill prints `dotnet add package Azure.Security.KeyVault.Keys` and `dotnet add package Azure.Identity`. This review ran neither.
- A Key Vault or Managed HSM named by KEY_VAULT_NAME or AZURE_KEYVAULT_URL, and an identity holding Key Vault Crypto Officer, Key Vault Crypto User or Key Vault Reader as the operation needs.
- Copilot CLI, where `/plugin install azure-sdk-dotnet@skills` adds this keys skill with the rest of the plugin.

### Compatibility

Copilot CLI · GitHub Copilot in VS Code

### Implementation

C#

### Reference text; Key Vault key changes happen only in code an operator executes

 - The azure-security-keyvault-keys-dotnet frontmatter declares no allowed-tools, and its directory holds SKILL.md alone, with no scripts.
- Samples authenticate with DefaultAzureCredential, a ManagedIdentityCredential or a service principal secret, and call the vault at https://{keyVaultName}.vault.azure.net.
- Run as written, they create, update, rotate, delete and purge keys and replace a key rotation policy in that vault.
- The backup sample writes key-backup.bin to local disk and reads it back.
- CryptographyClient and KeyResolver samples address keys by ID under https://myvault.vault.azure.net/keys/.

### Cost model

Free to copy under MIT. The file states no price for Key Vault or Managed HSM operations, and this review looked none up.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [azure-security-keyvault-keys-dotnet SKILL.md at the pin ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/skills/azure-security-keyvault-keys-dotnet/SKILL.md) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/skills/azure-security-keyvault-keys-dotnet/SKILL.md Supports: name, upstreamDescription, summary, whySelected, bestFor, limitations, review.findings, install.prerequisites, access.permissions
- [azure-sdk-dotnet plugin README ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/README.md) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/README.md Supports: install.sourceUrl, install.steps, limitations (install scope)
- [azure-sdk-dotnet plugin.json ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/.claude-plugin/plugin.json) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/.github/plugins/azure-sdk-dotnet/.claude-plugin/plugin.json Supports: publisher, license (plugin licence field)
- [Repository README ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/README.md) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/README.md Supports: compatibility, install.steps (Copilot CLI plugin commands)
- [Repository LICENSE ↗](https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE) Checked 2026-10-21 https://github.com/microsoft/skills/blob/fc164ba1d7a0c10377dbcc1c9ac07253b9329fdb/LICENSE Supports: license
- [Commit 073741f2, the last change to azure-security-keyvault-keys-dotnet at the pin ↗](https://github.com/microsoft/skills/commit/073741f2fc5628b22e8a5f8b56fb3878c418ecb6) Checked 2026-10-21 https://github.com/microsoft/skills/commit/073741f2fc5628b22e8a5f8b56fb3878c418ecb6 Supports: limitations (last commit date)

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Azure Key Vault Keys (Java) ↗ Microsoft's Java guide to com.azure:azure-security-keyvault-keys: creating RSA, EC and Managed HSM symmetric keys, importing key material, rotating by policy, and encrypting, signing and wrapping through CryptographyClient.](/skills/microsoft-azure-security-keyvault-keys-java/)[### Azure Key Vault Keys SDK for TypeScript ↗ Microsoft's TypeScript guide to @azure/keyvault-keys for creating, rotating and deleting Key Vault keys and for encrypt, sign and wrap operations through CryptographyClient; the same file also carries secret operations.](/skills/microsoft-azure-keyvault-keys-ts/)[### Azure Key Vault Certificates library for Rust ↗ Microsoft's Rust guide to azure_security_keyvault_certificates: creating a self-signed X.509 certificate as a long-running operation, updating, listing and deleting certificates, and signing with a certificate's key through the Key Vault keys crate.](/skills/microsoft-azure-keyvault-certificates-rust/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
