What problem does it solve?
Centralizes and standardizes authentication for Azure SDK clients in .NET projects so developers avoid hardcoded secrets, inconsistent credential selection, and brittle environment-specific setups. It clarifies how to authenticate using service principals, managed identities, developer tools, and credential chains across development and production.
Core Features & Use Cases
- Unified Credential Chain: Guidance for using DefaultAzureCredential and ChainedTokenCredential to cover local developer flows and cloud-hosted identities.
- Production-Grade Credentials: Patterns for ManagedIdentityCredential, ClientSecretCredential, and ClientCertificateCredential to securely authenticate production services.
- Integration & Best Practices: Dependency injection for ASP.NET Core, retry and logging recommendations, sovereign cloud authority host configuration, and robust error handling for authentication failures.
- Use Case: Retrieve secrets from Azure Key Vault from a local developer machine using DefaultAzureCredential and switch to ManagedIdentityCredential when deployed to AKS or an Azure VM.
Quick Start
Use the azure-identity-dotnet skill to generate a recommended .NET credential configuration and a concise code example that authenticates a SecretClient against Azure Key Vault for your development and production environments.