maruf-sherikar/antigravity-skills/azure-identity-py
- 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. Triggers: "azure-identity", "DefaultAzureCredential", "authentication", "managed identity", "service principal", "credential".
Install
npx vskill@latest install maruf-sherikar/antigravity-skills/azure-identity-pySKILL.md
The same SKILL.md was published earlier as francoscorporation/antigravity-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
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
- 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
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/azure-identity-py/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
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/maruf-sherikar/antigravity-skills/azure-identity-py)