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
Not recommended
50/ 100 5-point scale 2.5 / 5
Trust14 / 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.

Reliability8 / 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.

Adaptability9 / 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.

Convention8 / 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.

Effectiveness7 / 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.

Verifiability4 / 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 it does & when to 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.

Pros & cons

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 to install

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 to use

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.

Compared to similar skills

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 Event Hubs Java Skill

Build production-oriented Java event streaming applications on Azure Event Hubs.

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 Identity for TypeScript

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

Automation & Ops ✓ Microsoft · Official

Azure Reliability Advisor

Assess and improve reliability for Azure Functions and App Service.

Dev & Engineering ✓ Microsoft · Official

Azure Cloud Architect

Guides coding agents through production-grade Azure architecture design and review using Azure Architecture Center practices.

Dev & Engineering ✓ Microsoft · Official

Azure AI Text Analytics for Python

Guides Python developers through Azure-powered text analysis and NLP workflows.

Automation & Ops ✓ Microsoft · Official

Azure Resource Architecture Visualizer

Analyze Azure resource groups and turn their dependencies into detailed Mermaid architecture diagrams.

Dev & Engineering ✓ Microsoft · Official

Azure Maps for .NET

Build .NET location features for search, routing, maps, geolocation, and weather.

Dev & Engineering ✓ Microsoft · Official

Azure AI Vision Image Analysis

Guides Python coding agents in implementing Azure AI Vision image understanding.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for Python

Guides secure, production-minded Blob Storage operations in Python.

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.

Automation & Ops ✓ Microsoft · Official

Azure AI Gateway Governance

Use Azure API Management to govern traffic across AI models, MCP tools, and agents.

Automation & Ops ✓ Microsoft · Official

AKS Automatic Readiness

Assess Kubernetes workloads for AKS Automatic compatibility and identify migration blockers before you switch.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB ARM for .NET

Provision and manage Azure Cosmos DB resources from .NET through ARM.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Workspace Manager

Provision and manage Microsoft Playwright Testing workspaces with .NET and Azure Resource Manager.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB for Python

A practical guide for building reliable Python applications on Azure Cosmos DB’s NoSQL API.

Dev & Engineering ✓ Microsoft · Official

Azure Key Vault SDK for Python

Gives Python coding agents practical guidance for securely managing Azure Key Vault secrets, keys, and certificates.

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

Azure Monitor Query for Python

Generate Python code for querying Azure Monitor logs and metrics.

Related skills