sickn33/agentic-awesome-skills/azure-identity-py
Claude Code and agent skill by sickn33/agentic-awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Azure Identity SDK for Python authentication. Use for DefaultAzureCredential, managed identity, service principals, and token caching.
Install
npx vskill@latest install sickn33/agentic-awesome-skills/azure-identity-pySKILL.md
The same SKILL.md was published earlier as sickn33/agentic-awesome-skills/azure-identity-py.
Azure Identity SDK for Python
Authentication library for Azure SDK clients using Microsoft Entra ID (formerly Azure AD).
Installation
Environment Variables
DefaultAzureCredential
Useful for development and flexible environments. Production should select an explicit intended credential (such as workload/managed identity) rather than unexpectedly falling back to another account. The chain below is illustrative and version/configuration-dependent:
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
Before token acquisition, verify tenant, client/principal, cloud and required audience/scope without printing tokens. Avoid secrets in dotenv examples committed to a repo or pasted into shell history; prefer managed/workload identity where supported. Close credentials/clients in failure paths. Review the current credential-chain guidance for the selected package, including optional broker/developer credentials.
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
- Use DefaultAzureCredential for code that runs locally and in Azure
- Never hardcode credentials — use environment variables or managed identity
- Prefer managed identity in production Azure deployments
- Use ChainedTokenCredential when you need a custom credential order
- Close async credentials explicitly or use context managers
- Set AZURE_CLIENT_ID for user-assigned managed identities
- Exclude unused credentials to speed up authentication
When to Use
This skill is applicable to execute the workflow or actions described in the overview.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/agentic-awesome-skills/skills/azure-identity-py/SKILL.md
Popularity
- Repository stars
- 47,167
- Repository forks
- 6,871
- 7-day trend score
- 54
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/agentic-awesome-skills/azure-identity-py)