azure-security-keyvault-keys-dotnet

Manage Azure Key Vault keys and perform cryptographic operations using .NET.

Updated Apr 12, 2026
One-click install
npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-security-keyvault-keys-dotnet-davidrrowley
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: azure-security-keyvault-keys-dotnet
Source: https://github.com/davidrrowley/CortexYouV3/tree/main/.agents/skills/azure-security-keyvault-keys-dotnet
Command: npx skills add https://github.com/davidrrowley/CortexYouV3 --skill azure-security-keyvault-keys-dotnet-davidrrowley

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill gives .NET developers a clear, production-ready reference for managing cryptographic keys and performing cryptographic operations in Azure Key Vault and Managed HSM, removing friction around key lifecycle, versioning, and runtime cryptography.

Core Features & Use Cases

  • Key Management: Create, update, list, delete, backup, restore, and recover RSA, EC, and symmetric (oct) keys.
  • Cryptographic Operations: Encrypt, decrypt, wrap/unwrap keys, sign and verify data via CryptographyClient or resolved key clients.
  • Key Rotation & Policies: Rotate keys, read and update rotation policies, and implement lifetime actions for automatic rotation.
  • HSM and Security: Guidance for HSM-backed keys, RBAC requirements, and best practices such as using DefaultAzureCredential and soft-delete protection.
  • Error Handling & Patterns: Examples for RequestFailedException handling, async vs sync patterns, and client reuse recommendations.

Quick Start

Create a KeyClient with Azure.Security.KeyVault.Keys and Azure.Identity using your vault URI or KEY_VAULT_NAME, then create or retrieve a key and use a CryptographyClient to encrypt or sign data.

Frequently Asked Questions about azure-security-keyvault-keys-dotnet

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage cryptographic keys in Azure Key Vault using .NET?

Manage cryptographic keys in Azure Key Vault using .NET by utilizing the KeyClient to create, update, list, and delete RSA, EC, or oct keys, while handling the entire key lifecycle including backup and restore operations.

How do I encrypt and decrypt data with Azure Key Vault keys in a .NET application?

Encrypt and decrypt data with Azure Key Vault keys in .NET by using the CryptographyClient to perform runtime cryptographic operations such as encryption, decryption, wrapping, and signing.

Can I use managed identities and RBAC for Azure Key Vault authentication in .NET?

Yes, you can use managed identities and RBAC for Azure Key Vault authentication in .NET by configuring DefaultAzureCredential from the Azure.Identity package to authorize client operations securely.

How do I rotate Azure Key Vault keys automatically using C#?

Rotate Azure Key Vault keys automatically using C# by reading and updating key rotation policies to implement lifetime actions, ensuring cryptographic keys are rotated on schedule within your .NET application.

Does Azure Key Vault support HSM-backed keys for .NET developers?

Yes, Azure Key Vault supports HSM-backed keys for .NET developers through Managed HSM, allowing you to create and manage hardware-secured RSA and EC keys with strict RBAC requirements.

How do I handle RequestFailedException when calling Azure Key Vault from .NET?

Handle RequestFailedException when calling Azure Key Vault from .NET by implementing specific error handling patterns around your KeyClient and CryptographyClient operations to gracefully catch and manage vault access failures.