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
Trust12 / 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.

Reliability7 / 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.

Adaptability8 / 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.

Convention8 / 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.

Effectiveness6 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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 to install

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 to use

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 Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

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

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

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 Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

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 API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills