Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare applications for Azure deployment by generating infrastructure code, Dockerfiles, and config files.
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/sdk/azure-identity-dotnet.md
1# Authentication — .NET SDK Quick Reference23> Condensed from **azure-identity-dotnet**. Full patterns (ASP.NET DI,4> sovereign clouds, brokered auth, certificate credentials)5> in the **azure-identity-dotnet** plugin skill if installed.67## Install8dotnet add package Azure.Identity910## Quick Start1112> **Auth:** `DefaultAzureCredential` is for local development. See [auth-best-practices.md](../auth-best-practices.md) for production patterns.1314```csharp15using Azure.Identity;16var credential = new DefaultAzureCredential();17```1819## Best Practices20- Use DefaultAzureCredential for **local development only**. In production, use deterministic credentials (ManagedIdentityCredential) — see [auth-best-practices.md](../auth-best-practices.md)21- Reuse credential instances — single instance shared across clients22- Configure retry policies for credential operations23- Enable logging with AzureEventSourceListener for debugging auth issues24