azure-identity-dotnet
Azure Identity for .NET: DefaultAzureCredential, managed identity, service principals and developer credentials with Microsoft Entra ID.
- Kind
- Skill
- Works with
- Claude Code
- Languages
- C# / .NET
- Source
- microsoft/skills @ 2130750147de
- Path
- .github/plugins/azure-sdk-dotnet/skills/azure-identity-dotnet/SKILL.md
- License
- MIT
- Jobs
- Implementation
InstallCopy it from the source repository, or sign in and let the assistant adapt it for your project.
# Azure Identity library for .NET Authentication library for Azure SDK clients using Microsoft Entra ID. ## Installation ```bash dotnet add package Azure.Identity # For ASP.NET Core integration dotnet add package Microsoft.Extensions.Azure # For brokered authentication and Visual Studio Code credential support dotnet add package Azure.Identity.Broker ``` ## Environment Variables ### Service Principal with Secret ```bash AZURE_CLIENT_ID=<application-client-id> AZURE_TENANT_ID=<directory-tenant-id> AZURE_CLIENT_SECRET=<client-secret-value> ``` ### Service Principal with Certificate ```bash AZURE_CLIENT_ID=<application-client-id> AZURE_TENANT_ID=<directory-tenant-id> AZURE_CLIENT_CERTIFICATE_PATH=<path-to-pfx-or-pem> AZURE_CLIENT_CERTIFICATE_PASSWORD=<certificate-password> # Optional ``` ### Managed Identity ```bash AZURE_CLIENT_ID=<user-assigned-managed-identity-client-id> # Only for user-assigned ``` ## DefaultAzureCredential …