sickn33/antigravity-awesome-skills/azure-security-keyvault-keys-dotnet
- community
Checking that the SKILL.md file is still in the repository.
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.
Install
npx vskill@latest install sickn33/antigravity-awesome-skills/azure-security-keyvault-keys-dotnetSKILL.md
Azure.Security.KeyVault.Keys (.NET)
Client library for managing cryptographic keys in Azure Key Vault and Managed HSM.
Confirm vault/Managed HSM capability, tenant/RBAC, key name/version and lifecycle scope before changes. Symmetric Oct keys and hardware protection require a compatible service/tier; do not assume all examples work on an ordinary vault. Key operations must match the actual algorithm; narrow RSA Encrypt/Decrypt options cannot also sign/wrap without the corresponding allowed operations. Preserve version IDs with ciphertext/signatures and retain old keys until data no longer needs them. Backup files are sensitive and have service restore restrictions. RSA is for small payloads; use authenticated envelope encryption for bulk data.
Installation
Example SDK version: 4.7.0; verify the supported package version/API for the target project.
Environment Variables
Client Hierarchy
Authentication
DefaultAzureCredential (Recommended)
Service Principal
Key Management
Create Keys
Retrieve Keys
Update Key Properties
Delete and Purge Keys
Backup and Restore
Cryptographic Operations
Get CryptographyClient
Encrypt and Decrypt
Wrap and Unwrap Keys
Sign and Verify
Key Resolver
Key Rotation
Key Types Reference
| Type | Purpose | |
|---|---|---|
KeyClient | Key management operations | |
CryptographyClient | Cryptographic operations | |
KeyResolver | Resolve key ID to CryptographyClient | |
KeyVaultKey | Key with cryptographic material | |
KeyProperties | Key metadata (no crypto material) | |
CreateRsaKeyOptions | RSA key creation options | |
CreateEcKeyOptions | EC key creation options | |
CreateOctKeyOptions | Symmetric key options | |
EncryptResult | Encryption result | |
DecryptResult | Decryption result | |
SignResult | Signing result | |
VerifyResult | Verification result | |
WrapResult | Key wrap result | |
UnwrapResult | Key unwrap result |
Algorithms Reference
Encryption Algorithms
| Algorithm | Key Type | Description | |
|---|---|---|---|
RsaOaep | RSA | RSA-OAEP | |
RsaOaep256 | RSA | RSA-OAEP-256 | |
Rsa15 | RSA | RSA 1.5 (legacy) | |
A128Gcm | Oct | AES-128-GCM | |
A256Gcm | Oct | AES-256-GCM |
Signature Algorithms
| Algorithm | Key Type | Description | |
|---|---|---|---|
RS256 | RSA | RSASSA-PKCS1-v1_5 SHA-256 | |
RS384 | RSA | RSASSA-PKCS1-v1_5 SHA-384 | |
RS512 | RSA | RSASSA-PKCS1-v1_5 SHA-512 | |
PS256 | RSA | RSASSA-PSS SHA-256 | |
ES256 | EC | ECDSA P-256 SHA-256 | |
ES384 | EC | ECDSA P-384 SHA-384 | |
ES512 | EC | ECDSA P-521 SHA-512 |
Key Wrap Algorithms
| Algorithm | Key Type | Description | |
|---|---|---|---|
RsaOaep | RSA | RSA-OAEP | |
RsaOaep256 | RSA | RSA-OAEP-256 | |
A128KW | Oct | AES-128 Key Wrap | |
A256KW | Oct | AES-256 Key Wrap |
Best Practices
- Use Managed Identity — Prefer
DefaultAzureCredentialover secrets - Enable soft-delete — Protect against accidental deletion
- Use HSM-backed keys — Set
HardwareProtected = truefor sensitive keys - Implement key rotation — Use automatic rotation policies
- Limit key operations — Only enable required
KeyOperations - Set expiration dates — Always set
ExpiresOnfor keys - Use specific versions — Pin to versions in production
- Cache CryptographyClient — Reuse for multiple operations
Error Handling
Required RBAC Roles
| Role | Permissions | |
|---|---|---|
| Key Vault Crypto Officer | Full key management | |
| Key Vault Crypto User | Use keys for crypto operations | |
| Key Vault Reader | Read key metadata |
Related SDKs
| SDK | Purpose | Install | |
|---|---|---|---|
Azure.Security.KeyVault.Keys | Keys (this SDK) | dotnet add package Azure.Security.KeyVault.Keys | |
Azure.Security.KeyVault.Secrets | Secrets | dotnet add package Azure.Security.KeyVault.Secrets | |
Azure.Security.KeyVault.Certificates | Certificates | dotnet add package Azure.Security.KeyVault.Certificates | |
Azure.Identity | Authentication | dotnet add package Azure.Identity |
Reference Links
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNeutral, 75 of 100Ineffective. 1 run. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingskills/azure-security-keyvault-keys-dotnet/SKILL.md
Popularity
- Repository stars
- 24,362
- Repository forks
- 4,190
- Repository npm downloads, 7 days
- 11,772
- 7-day trend score
- 72
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/antigravity-awesome-skills/azure-security-keyvault-keys-dotnet)