Agent skill · software engineering · sickn33

azure-identity-rust

Azure Identity SDK for Rust authentication. Use for DeveloperToolsCredential, ManagedIdentityCredential, ClientSecretCredential, and token-based authentication.

Why this skill is useful

Provides specific usage patterns and credential management strategies for Azure authentication in Rust that the AI wouldn't reliably generate on its own.

What it needs

Requires cargo installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 44,571 stars on the source repository.

What this skill does

Azure Identity SDK for Rust Authentication library for Azure SDK clients using Microsoft Entra ID (formerly Azure AD). The examples below require a reviewed compatible crate set and replacement of every resource placeholder. Do not use production data for demonstration writes. Installation Environment Variables DeveloperToolsCredential The recommended credential for local development. Tries developer tools in order (Azure CLI, Azure Developer CLI): Credential Chain Order Order Credential Environment ------- ----------- ------------- 1 AzureCliCredential az login 2 AzureDeveloperCliCredential azd auth login Credential Types Credential Usage ------------ ------- DeveloperToolsCredential Local development - tries CLI tools ManagedIdentityCredential Azure VMs, App Service, Functions, AKS WorkloadIdentityCredential Kubernetes workload identity ClientSecretCredential Service principal with secret ClientCertificateCredential Service principal with certificate AzureCliCredential Direct Azure CLI auth AzureDeveloperCliCredential Direct azd CLI auth AzurePipelinesCredential Azure Pipelines service connection ClientAssertionCredential Custom assertions (federated identity) ManagedIdentityCredential For Azure-hosted resources: ClientSecretCredential For service principal with secret: Best Practices 1. Use DeveloperToolsCredential for local dev — automatically picks up Azure CLI 2. Use ManagedIdentityCredential in production — no secrets to manage 3. Clone credentials — credentials are Arc-wrapped and cheap to clone 4. Reuse credential instances — same credential can be used with multiple clients 5. Provide the async runtime — add Tokio with the features required by your application; do not assume a crate-specific tokio feature exists The reviewed example set uses azureidentity 1.0.0 and compatible Azure core/credential crates. Record and commit Cargo.lock; source/API review is not a compiler or live-service test. …

How to use it

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

@skills sickn33/azure-identity-rust

View the source on GitHub

Browse the @skills marketplace