Dev & Engineering ✓ Microsoft · Official azure-key-vaultcryptographic-keysdotnetkey-rotationencryptiondigital-signaturesmanaged-hsm

Azure Key Vault Keys for .NET

Guides .NET developers in managing Azure Key Vault keys and performing cryptographic operations securely.

FollowSkills review · FSRS-2.0
Not recommended
45/ 100 5-point scale 2.3 / 5
1 2 3 4 5 6
1Trust12 / 25 · 2.4/5

The document recommends managed identity, restricted KeyOperations, soft delete, and key expiration, and includes RBAC and error-handling examples. However, deletion, purge, rotation, and local backup-file operations can create significant external or sensitive-data impact without explicit confirmation, least-privilege configuration, backup protection, data-flow disclosure, or rollback guidance, so points are deducted.

2Reliability7 / 20 · 1.8/5

The skill broadly covers client hierarchy, authentication, key management, cryptographic operations, rotation, and differentiated 404/403/general error handling. It provides no skill-specific tests, compatibility validation, abnormal-input handling, retry strategy, or reproducible key-path evidence; under static review this supports only a modest score.

3Adaptability8 / 15 · 2.7/5

The name, description, trigger terms, and .NET scenarios are fairly clear, covering key management and cryptographic operations. It does not define non-fit cases, service prerequisites, permission boundaries, or Chinese-language guidance, and its core function depends on reachable Azure Key Vault/Managed HSM services with no mainland-China reachability discussion, so points are deducted.

4Convention8 / 15 · 2.7/5

The document includes installation commands, layered sections, code examples, algorithm and RBAC tables, and declares MIT licensing, author, and version 1.0.0. It lacks a changelog, explicit maintenance owner and update path, an SDK/API compatibility matrix, troubleshooting guidance, and known limitations; the version is also undated, so points are deducted.

5Effectiveness6 / 15 · 2.0/5

It covers creation, retrieval, update, deletion, recovery, backup, encryption/decryption, signing, verification, and rotation, making it a useful starting point for common implementations. However, examples lack complete project context, permission setup, production-safe handling, and validation results, leaving manual review and rework; static calibration caps this dimension at 7.

6Verifiability4 / 10 · 2.0/5

The skill cites NuGet, API reference, quickstart, and GitHub source locations, providing some traceability. It contains no skill-specific tests, CI coverage, or third-party execution evidence, and the referenced external material was not verified in this static review, so only limited credit is justified.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not execute PurgeDeletedKeyAsync, deletion, or rotation without confirmation and a tested recovery process.
  • The example writes a key backup to local key-backup.bin; production use requires explicit encryption, access control, retention, and secure-deletion policies.
  • The ClientSecretCredential example contains a highly sensitive credential; clientSecret must not be hard-coded or logged.
  • Before use, verify the actual APIs, permissions, service capabilities, and compatibility of Azure.Security.KeyVault.Keys 4.7.0 with Azure.Identity, and confirm Azure endpoint reachability from mainland-China networks.
See the full review method →

What does this skill do, and when should you use it?

This skill is for .NET developers using the Azure.Security.KeyVault.Keys SDK with Azure Key Vault and Managed HSM. It covers creating, retrieving, updating, deleting, backing up, restoring, and rotating RSA, EC, and symmetric keys. It also shows how to use CryptographyClient for encryption, decryption, key wrapping, signing, and verification. The material includes Microsoft Entra credentials, service principals, RBAC roles, environment variables, and error handling.

It guides installation of Azure.Security.KeyVault.Keys and Azure.Identity, reads Key Vault configuration from environment variables, creates KeyClient and CryptographyClient instances, and calls Azure Key Vault operations. Examples cover key creation and version retrieval, property updates, soft-delete and recovery, backup and restore, rotation policies, and RSA, EC, and AES-related encryption, decryption, wrapping, unwrapping, signing, and verification. It also demonstrates writing key backups to files, reading them back, and handling 404, 403, and other RequestFailedException cases.

  1. A .NET engineer building Azure security features can use it to create RSA, EC, or HSM-backed keys with KeyClient.
  2. A developer implementing encryption, decryption, signing, or verification in a .NET service can follow its CryptographyClient examples.
  3. A team responsible for production key lifecycle management can use the rotation API and rotation-policy examples.
  4. A platform or operations engineer migrating or recovering keys can follow the backup, restore, soft-delete, and recovery examples.

What are this skill's strengths and limitations?

Pros
  • Covers key lifecycle management, cryptographic operations, rotation, backup and restore, and error handling.
  • Provides copyable asynchronous C# examples for KeyClient, CryptographyClient, and KeyResolver.
  • Documents DefaultAzureCredential, managed identity, HSM-backed keys, soft-delete, and RBAC practices.
  • Licensed under MIT and distributed as part of Microsoft's installable skills collection.
Limitations
  • Requires an accessible Azure Key Vault or Managed HSM, valid credentials, and appropriate RBAC permissions.
  • Depends on network calls to Azure services and cannot independently provide local key custody.
  • The source does not provide independent test results or platform-specific validation for this particular skill.
  • The README states that the repository is under active development, so the skill may change.

How do you install this skill?

Install the skill collection with npx skills add microsoft/skills, then select this skill in the wizard; the README does not document a dedicated single-skill installation command. Install the .NET packages with dotnet add package Azure.Security.KeyVault.Keys and dotnet add package Azure.Identity. The SKILL.md identifies Azure.Security.KeyVault.Keys version 4.7.0 as stable.

How do you use this skill?

In an agent with the skill installed, try: Create a .NET Azure Key Vault example using DefaultAzureCredential for RSA encryption, decryption, and key rotation. Set KEY_VAULT_NAME; when using DefaultAzureCredential in production, also set AZURE_TOKEN_CREDENTIALS=prod or configure a specific credential. Grant the required Key Vault Crypto Officer, Key Vault Crypto User, or Key Vault Reader RBAC role for the operations you need.

FAQ

What permissions are required?
Key Vault Reader is listed for reading key metadata, Key Vault Crypto User for cryptographic operations, and Key Vault Crypto Officer for full key management.
How does the skill address common failures?
Its examples handle 404 as a missing key, 403 as an access-denied condition, and other failures through RequestFailedException.
Does this skill require Azure Key Vault?
Yes. It targets Azure Key Vault and Managed HSM and uses clients such as KeyClient and CryptographyClient to call the service.
Does the source document pricing?
No. The source does not specify pricing; it documents package installation and Azure service requirements only.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for TypeScript

A practical TypeScript guide to creating, protecting, rotating, and using cryptographic keys in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for Java

Ground Java coding agents in secure Azure Key Vault and Managed HSM key-management workflows.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Keys for Rust

A practical Rust guide for creating, managing, and using RSA, EC, and HSM-protected keys in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for TypeScript

Securely store and retrieve application secrets in Azure Key Vault while managing key lifecycles from Node.js.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for Java

Guides Java developers through secure storage, retrieval, rotation, recovery, and backup of application secrets in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Certificates for Rust

Guides Rust applications in creating, managing, and using X.509 certificates in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault Secrets for Rust

Guides Rust applications in securely storing and managing passwords, API keys, and connection strings in Azure Key Vault.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Event Grid for .NET

Practical .NET guidance for publishing, receiving, and processing Azure Event Grid events.

Dev & Engineering ✓ Microsoft · Official

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Microsoft Docs Researcher

Ground coding agents in official Microsoft documentation for concepts, tutorials, configuration, limits, and best practices.

Dev & Engineering ✓ Microsoft · Official

MongoDB Atlas Azure ARM Manager

Helps .NET developers manage MongoDB Atlas organizations through Azure Marketplace and Azure ARM.

Dev & Engineering ✓ Microsoft · Official

Azure AI Search for .NET

Build .NET search applications with practical Azure AI Search patterns for full-text, vector, semantic, and hybrid retrieval.

Dev & Engineering ✓ Microsoft · Official

Arize AI Azure Management for .NET

Guides .NET developers through Azure-based management of Arize AI observability resources.

Dev & Engineering ✓ Microsoft · Official

Azure Durable Task ARM for .NET

Guides .NET developers through code-based provisioning and management of Durable Task Scheduler resources.

Dev & Engineering ✓ Microsoft · Official

MCP Server Development Guide

A practical guide to building clear, testable MCP servers that let LLMs work with external APIs.

Dev & Engineering ✓ Microsoft · Official

Azure Persistent Agents for .NET

A practical .NET playbook for building and operating Azure AI persistent agents.

Related skills