skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

azure-identity-dotnet

Microsoft Entra ID authentication

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/microsoft/skills --skill azure-identity-dotnet

Overview

What This Skill Does

Azure Identity is the authentication library for .NET Azure SDK clients. It handles credential acquisition against Microsoft Entra ID, supporting managed identities, service principals, developer tools, and interactive flows through a unified API. DefaultAzureCredential automatically tries multiple auth methods in sequence, so the same code works in local dev and production.

Application

When to use this Skill

Documentation

Show Skills.md file

Azure Identity library for .NET

Authentication library for Azure SDK clients using Microsoft Entra ID.

Installation

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

AZURE_CLIENT_ID=<application-client-id>
AZURE_TENANT_ID=<directory-tenant-id>
AZURE_CLIENT_SECRET=<client-secret-value>
Lines 1 - 25 of 325

Recommendations

Explore other random skills

All skillsMy patterns