Setup & Installation
Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:
What This Skill Does
Python authentication library for Azure SDK clients, using Microsoft Entra ID (formerly Azure AD). Supports DefaultAzureCredential for automatic credential detection, plus specific credential types for managed identity, service principals, and CLI-based auth.
DefaultAzureCredential's ordered credential chain means one line of code works in local dev, containers, and Azure-hosted environments without any conditional logic.
When to use it
- Authenticate to Azure Blob Storage without hardcoded credentials
- Run the same auth code locally with az login and in production with managed identity
- Authenticate a CI/CD pipeline to Azure using service principal environment variables
- Give an AKS pod access to Azure resources via workload identity
- Get short-lived access tokens for Azure Database for PostgreSQL
Example Workflow
Here's how your AI assistant might use this skill in practice.
User asks: Connect to Azure Blob Storage using managed identity in production
- 1Import DefaultAzureCredential from azure.identity
- 2Instantiate DefaultAzureCredential without arguments
- 3Pass credential to BlobServiceClient constructor
- 4SDK automatically uses ManagedIdentityCredential when running in Azure
- 5Falls back to AzureCliCredential when running locally with az login
Authenticated BlobServiceClient that works in both local dev and Azure production without code changes
Requirements
Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.