Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Audit Azure resources for compliance, security best practices, and Key Vault expiration monitoring
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-keyvault-secrets-ts.md
1# Key Vault Secrets — TypeScript SDK Quick Reference23> Condensed from **azure-keyvault-secrets-ts**. Full patterns (key rotation,4> cryptographic operations, backup/restore, wrap/unwrap)5> in the **azure-keyvault-secrets-ts** plugin skill if installed.67## Install8npm install @azure/keyvault-secrets @azure/identity910## Quick Start11```typescript12import { DefaultAzureCredential } from "@azure/identity";13import { SecretClient } from "@azure/keyvault-secrets";14const client = new SecretClient("https://<vault>.vault.azure.net", new DefaultAzureCredential());15```1617## Best Practices18- Use DefaultAzureCredential for **local development only**. In production, use ManagedIdentityCredential — see [auth-best-practices.md](../auth-best-practices.md)19- Enable soft-delete — required for production vaults20- Set expiration dates on both keys and secrets21- Use key rotation policies — automate key rotation22- Limit key operations — only grant needed operations (encrypt, sign, etc.)23- Browser not supported — these SDKs are Node.js only24