azure-identity-py

azure-identity-py is a skill for Claude Code from sickn33/agentic-awesome-skills. It costs 29 tokens per session (1,343 once invoked), scanned A, original, MIT.

A Python authentication library for Azure services using Microsoft Entra ID, Microsoft's identity and access system. It supports credentials such as managed identities, service principals, and cached access tokens.

In plain words
What is it for?
Use it to authenticate Python code to Azure SDK clients, configure service-principal or managed-identity access, and support token caching and environment-based credentials.
Why use it?
It removes the need to implement Azure token handling in each application. It also helps applications use different credentials in local development, automation, and cloud hosting while making the chosen production identity explicit.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentic-awesome-skills plugin — 197 skills, 1 plugin shipped together

Good fit Use it to authenticate Python code to Azure SDK clients, configure service-principal or managed-identity access, and support token caching and environment-based credentials.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sickn33/agentic-awesome-skills/azure-identity-py
About the project

AAS Core is a local control plane for coding agents that lets them search a large catalogue of skills, choose a stack, validate it, and create a reproducible plan. It is used to assemble and review agent workflows through its CLI, local MCP server, catalogue, plugins, and Workbench. The catalogue add-ons provide the skills, plugins, bundles, and workflows that AAS Core helps agents select and validate.

sickn33/agentic-awesome-skills · 50,561 stars · on GitHub · aaskills.tech

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sickn33/agentic-awesome-skills --skill azure-identity-py
Clone the repo
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills

Made for: Claude Code.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 197 skills, 1 plugin.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azure-identity-py

README.md
[![agentmods](https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/azure-identity-py/github.svg)](https://agentmods.dev/skills/sickn33/agentic-awesome-skills/azure-identity-py)
Your own site
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/azure-identity-py"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/azure-identity-py/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azure-identity-py

Your own site · 80×15
<a href="https://agentmods.dev/skills/sickn33/agentic-awesome-skills/azure-identity-py"><img src="https://agentmods.dev/badge/skills/sickn33/agentic-awesome-skills/azure-identity-py.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,343 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01343
Opus 5.5 $0.00012 $0.00537
Sonnet 5.5 $0.00006 $0.00269
Haiku 4.5 $0.00003 $0.00134

Measured 18d ago against content hash 4498e53de163, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

azure-identity-py scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 18d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

plugins/aasb-aas-devops-cloud/skills/azure-identity-py/SKILL.md · 205 lines

How it starts

The opening of the file, as written. The whole thing — 205 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Azure Identity SDK for Python

Authentication library for Azure SDK clients using Microsoft Entra ID (formerly Azure AD).

Installation

pip install azure-identity

Environment Variables

# Service Principal (for production/CI)
AZURE_TENANT_ID=<your-tenant-id>
AZURE_CLIENT_ID=<your-client-id>
AZURE_CLIENT_SECRET=<your-client-secret>

# User-assigned Managed Identity (optional)
AZURE_CLIENT_ID=<managed-identity-client-id>

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:

from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient

# Works in local dev AND production without code changes
credential = DefaultAzureCredential()

client = BlobServiceClient(
    account_url="https://<account>.blob.core.windows.net",
    credential=credential
)

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

# Exclude credentials you don't need
credential = DefaultAzureCredential(
    exclude_environment_credential=True,
    exclude_shared_token_cache_credential=True,
    managed_identity_client_id="<user-assigned-mi-client-id>"  # For user-assigned MI
)

# Enable interactive browser (disabled by default)
credential = DefaultAzureCredential(
    exclude_interactive_browser_credential=False
)

Read the full file on GitHub · 205 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 18d ago First seen · 205 lines · 29 tokens per session scan A 4498e53de163

Subscribe to this mod's changes

azure-identity-py is a skill published in the GitHub repository sickn33/agentic-awesome-skills (50,561 stars, last pushed yesterday), licensed MIT. It adds 29 tokens to every session and 1,343 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-12.

Related

azure-identity-py compared with skills from other repositories

azure-identity-py next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
azure-identity-pysickn33/agentic-awesome-skillsSkill51kyesterdayMITA29Claude Code
websocket-architectAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA33Claude Code, Codex
openapi-designerAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA33Claude Code, Codex
codeigniter-builderAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA33Claude Code, Codex
laravel-apiAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA34Claude Code, Codex
laravel-architectAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA31Claude Code, Codex
laravel-queuesAtulPurohit/Antigravity-Awesome-SkillsSkill64mo agononeA32Claude Code, Codex