Agent skill · software engineering · aiskillstore

azure-identity-py

Azure Identity SDK for Python authentication. Use for DefaultAzureCredential, managed identity, service principals, and token caching.

Why this skill is useful

Provides specific authentication patterns and credential management techniques for Azure services that the AI wouldn't reliably generate on its own.

What it needs

Requires azure-identity installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

Azure Identity SDK for Python Authentication library for Azure SDK clients using Microsoft Entra ID (formerly Azure AD). Installation Environment Variables DefaultAzureCredential The recommended credential for most scenarios. Tries multiple authentication methods in order: Credential Chain Order Order Credential Environment ------- ----------- ------------- 1 EnvironmentCredential CI/CD, containers 2 WorkloadIdentityCredential Kubernetes 3 ManagedIdentityCredential Azure VMs, App Service, Functions 4 SharedTokenCacheCredential Windows only 5 VisualStudioCodeCredential VS Code with Azure extension 6 AzureCliCredential az login 7 AzurePowerShellCredential Connect-AzAccount 8 AzureDeveloperCliCredential azd auth login Customizing DefaultAzureCredential Specific Credential Types ManagedIdentityCredential For Azure-hosted resources (VMs, App Service, Functions, AKS): ClientSecretCredential For service principal with secret: AzureCliCredential Uses the account from az login: ChainedTokenCredential Custom credential chain: Credential Types Table Credential Use Case Auth Method ------------ ---------- ------------- DefaultAzureCredential Most scenarios Auto-detect ManagedIdentityCredential Azure-hosted apps Managed Identity ClientSecretCredential Service principal Client secret ClientCertificateCredential Service principal Certificate AzureCliCredential Local development Azure CLI AzureDeveloperCliCredential Local development Azure Developer CLI InteractiveBrowserCredential User sign-in Browser OAuth DeviceCodeCredential Headless/SSH Device code flow Getting Tokens Directly Async Client Best Practices 1. Use DefaultAzureCredential for code that runs locally and in Azure 2. Never hardcode credentials — use environment variables or managed identity 3. Prefer managed identity in production Azure deployments 4. Use ChainedTokenCredential when you need a custom credential order 5. Close async credentials explicitly or use context managers 6. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/azure-identity-py

View the source on GitHub

Browse the @skills marketplace