Dev & Engineering ✓ Microsoft · Official azure-identity.netmicrosoft-entra-iddefault-azure-credentialmanaged-identityservice-principalazure-sdk

Azure Identity for .NET

Guides .NET applications in authenticating Azure SDK clients with Microsoft Entra ID.

FollowSkills review · FSRS-2.0
Use with care
50/ 100 5-point scale 2.5 / 5
1 2 3 4 5 6
1Trust14 / 25 · 2.8/5

The document covers managed identity, service principals, certificates, and developer credentials, and uses placeholders; however, it does not explain least privilege, user confirmation, credential data flows, secret-at-rest handling, or log redaction. It shows client secrets and certificate passwords without external-effect or rollback guidance, so points are deducted.

2Reliability8 / 20 · 2.0/5

Installation, credential-chain examples, exception types, and retry configuration are reasonably consistent; however, there are no skill-specific tests, dependency versions, environment prerequisites, or reproducible diagnostic procedures. API and SDK-version compatibility cannot be confirmed statically, limiting the score.

3Adaptability9 / 15 · 3.0/5

Triggers, the .NET/Azure Identity audience, and major development, production, managed-identity, and sovereign-cloud scenarios are clear; non-fit boundaries, input/output expectations, permission prerequisites, Chinese-language support, and network reachability are not stated, so points are deducted.

4Convention8 / 15 · 2.7/5

The document is well organized and includes installation, environment variables, examples, exceptions, related packages, MIT licensing, author, and a version field; it lacks a changelog, explicit maintenance owner and update path, dependency versions, and fuller limitation notes, so points are deducted.

5Effectiveness7 / 15 · 2.3/5

The examples provide a directly useful starting point for Azure .NET authentication and cover common credential types and dependency injection; there is no skill-specific execution evidence, complete end-to-end workflow, permission setup guidance, or comparison with alternatives. The static-review cap therefore applies.

6Verifiability4 / 10 · 2.0/5

Microsoft/Azure SDK, NuGet, API, and best-practice links provide some primary-source traceability; however, the skill has no committed dedicated tests or execution results, and repository-level CI/test material does not establish coverage of this path's key examples, so evidence remains limited.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not use DefaultAzureCredential in production without reviewing its chain, tenant, and permission scope.
  • Never commit AZURE_CLIENT_SECRET, certificate passwords, or authentication logs to a repository or shared log sink.
  • Pin and verify Azure.Identity and related package versions before relying on the examples with the target .NET runtime.
  • The document does not state mainland-China network, enterprise-proxy, or sovereign-cloud prerequisites; validate these separately before deployment.
See the full review method →

What does this skill do, and when should you use it?

This Agent Skill focuses on the Azure.Identity authentication library for .NET. It helps coding agents install the relevant packages and configure DefaultAzureCredential, managed identities, service principals, and developer credentials. The guidance also covers environment variables, ASP.NET Core dependency injection, sovereign clouds, custom credential chains, retries, diagnostics, and exception handling. It fits teams building .NET applications that access Azure SDK clients through Microsoft Entra ID.

Provides installation commands for Azure.Identity, Microsoft.Extensions.Azure, and Azure.Identity.Broker; shows environment-variable configuration for secret-based and certificate-based service principals and managed identities; supplies C# examples for DefaultAzureCredential, ManagedIdentityCredential, ClientSecretCredential, ClientCertificateCredential, ChainedTokenCredential, and developer credentials; demonstrates ASP.NET Core dependency injection, sovereign-cloud authority hosts, retry configuration, Azure Identity logging, exception handling, and credential reuse; catalogs credential types, related packages, reference links, and Azure services supporting managed identity.

  1. A .NET developer integrating Blob Storage or Key Vault needs a standard DefaultAzureCredential setup.
  2. A team deploying to App Service, Functions, AKS, or virtual machines needs system-assigned or user-assigned managed identity authentication.
  3. A local developer needs to switch among Azure CLI, Azure PowerShell, Azure Developer CLI, Visual Studio, and browser credentials.
  4. An ASP.NET Core team needs to register Azure clients and credentials through Microsoft.Extensions.Azure.
  5. A developer targeting Azure Government or Azure China needs to configure the appropriate authority host.

What are this skill's strengths and limitations?

Pros
  • Covers common Microsoft Entra ID credentials from local development through Azure-hosted workloads.
  • Includes copyable C# and shell examples for common Azure SDK client integrations.
  • Addresses production credential selection, credential reuse, retries, diagnostics, and exception handling.
  • Includes ASP.NET Core dependency injection and sovereign-cloud configuration guidance.
Limitations
  • The skill provides guidance and examples, not executable scripts or a test suite.
  • The current DefaultAzureCredential chain order is delegated to external official documentation rather than fully reproduced here.
  • Examples use placeholders; Entra ID application registration, role assignment, and permission setup are outside the documented scope.
  • The source does not specify a .NET SDK version or a verified platform matrix.

How do you install this skill?

Run npx skills add microsoft/skills in an Agent Skills-compatible client and select the needed skill in the wizard. This skill is located at .github/plugins/azure-sdk-dotnet/skills/azure-identity-dotnet/SKILL.md. The repository does not document a dedicated single-skill installation command. For the .NET packages described by the skill, run dotnet add package Azure.Identity; optionally add Microsoft.Extensions.Azure for ASP.NET Core integration or Azure.Identity.Broker for brokered authentication and Visual Studio Code credential support.

How do you use this skill?

Ask a coding agent for a request containing terms such as “Azure Identity,” DefaultAzureCredential, ManagedIdentityCredential, ClientSecretCredential, “.NET authentication,” or “credential chain.” Example: Configure credentials for my .NET BlobServiceClient for local development and Azure App Service. The agent should produce package commands, C# credential configuration, environment variables, error handling, and production-oriented guidance.

How does this skill compare with similar options?

The skill presents DefaultAzureCredential as the recommended choice for most scenarios, while recommending a deterministic credential such as ManagedIdentityCredential for production. ChainedTokenCredential is presented for custom authentication chains.

FAQ

Does this skill create Entra ID applications or assign Azure permissions?
No. It explains how to authenticate with configured credentials and identities; application registration, permissions, and role assignments are not covered.
Is DefaultAzureCredential recommended for production?
The skill recommends it for development and favors a specific credential, such as ManagedIdentityCredential, for production.
Which authentication failures are covered?
The examples catch AuthenticationFailedException and CredentialUnavailableException, and the reference table also lists AuthenticationRequiredException.
Does this skill require MCP?
No. The provided skill content declares no MCP server or MCP tool dependency.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Python

A practical skill for securing Python Azure applications with Microsoft Entra ID credentials.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Java

Configure secure Microsoft Entra ID authentication for Java applications using Azure SDKs.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for Rust

Configure Microsoft Entra ID authentication for Azure SDK clients written in Rust.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage TypeScript Skill

Build Azure Queue Storage workers that send, receive, inspect, and manage messages in TypeScript or JavaScript.

Dev & Engineering ✓ Microsoft · Official

Azure AI Persistent Agents for Java

Guides Java developers through building and managing Azure AI agents with persistent threads, messages, runs, and tools.

Dev & Engineering ✓ Microsoft · Official

Microsoft Entra App Registration

A practical guide to Entra app registration and OAuth integration.

Dev & Engineering ✓ Microsoft · Official

Azure Tables for Python

A practical guide to building authenticated Azure Tables applications with Python entity CRUD, queries, and partition-scoped batch operations.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage for Python

Gives coding agents reliable Python patterns for secure Azure Queue Storage messaging and asynchronous task processing.

Dev & Engineering ✓ Microsoft · Official

Azure API Management for Python

Gives coding agents practical Python SDK patterns for managing Azure API Management services, APIs, products, subscriptions, and policies.

Dev & Engineering ✓ Microsoft · Official

Fabric Capacity Manager for .NET

Manage Microsoft Fabric capacities programmatically through Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service Python Manager

Create, manage, and configure Azure Bot Service resources and channels from Python.

Dev & Engineering ✓ Microsoft · Official

Azure Bot Service ARM SDK for .NET

Helps .NET developers provision Azure Bots and configure their channels through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Monitor Log Ingestion for Java

Guides Java applications in sending structured custom logs to Azure Monitor through DCRs.

Dev & Engineering ✓ Microsoft · Official

Microsoft Foundry Python Projects Skill

Gives coding agents dependable patterns for building Foundry AI applications with the Azure AI Projects Python SDK.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for Python

Practical Python guidance for reliable Azure Service Bus queues and publish-subscribe messaging.

Dev & Engineering ✓ Microsoft · Official

Azure AI Foundry Projects for .NET

Guides .NET developers through Foundry project, agent, and evaluation operations.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub for Python

Build Azure WebSocket messaging and publish-subscribe workflows for Python applications.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs for Python

A practical guide to high-throughput event ingestion, consumption, and checkpointing in Python.

Related skills