brokenchapt3r/astralnexus/azure-identity-rust
Claude Code and agent skill by brokenchapt3r/astralnexus
- community
Checking that the SKILL.md file is still in the repository.
Azure Identity library for Rust. Microsoft Entra ID authentication for all Azure SDK clients. Triggers: "azure identity rust", "DeveloperToolsCredential", "authentication rust", "managed identity rust", "credential rust", "Entra ID rust".
Install
npx vskill@latest install brokenchapt3r/astralnexus/azure-identity-rustSKILL.md
The same SKILL.md was published earlier as gunnerylee4756/gunnerylee4756/azure-identity-rust.
Azure Identity library for Rust
Microsoft Entra ID authentication for Azure SDK clients.
Use this skill when:
- An app needs to authenticate to Azure services from Rust
- You need
DeveloperToolsCredentialfor local development - You need
ManagedIdentityCredentialfor Azure-hosted workloads - You need service principal auth with secret or certificate
IMPORTANT: Only use officialazure_*crates published by the azure-sdk crates.io user. Do NOT use the deprecatedazure_sdk_*crates (MindFlavor/AzureSDKForRust) or community crates. Official crates use underscores in names and none have version 0.21.0.
Note: The Rust SDK does not haveDefaultAzureCredential. UseDeveloperToolsCredentialfor local development andManagedIdentityCredentialfor production.
Installation
If your code usesazure_coretypes directly, addazure_coretoCargo.toml. If you only use service-crate re-exports, directazure_coredependency is optional.
Environment Variables
Authentication
DeveloperToolsCredential (Local Development)
Tries Azure CLI then Azure Developer CLI:
Ensure you are logged in:
| Order | Credential | Login Command | |
|---|---|---|---|
| 1 | AzureCliCredential | az login | |
| 2 | AzureDeveloperCliCredential | azd auth login |
ManagedIdentityCredential (Production)
For Azure-hosted resources (VMs, App Service, Functions, AKS):
ClientSecretCredential (Service Principal)
For CI/CD pipelines and service accounts:
Credential Types
| Credential | Use Case | |
|---|---|---|
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) |
Best Practices
- Use `cargo add` to manage dependencies, never edit `Cargo.toml` directly. Add and remove Rust SDK dependencies with cargo commands instead of manual manifest edits.
- Add `azure_core` only when importing `azure_core` types directly. If your code imports
azure_core::http::Url,azure_core::http::RequestContent, orazure_core::error::ErrorKind, includeazure_core; otherwise a direct dependency is optional. - Use `DeveloperToolsCredential` for local dev, `ManagedIdentityCredential` for production — Rust does not provide a single
DefaultAzureCredentialtype - Never hardcode credentials — use environment variables for service principals
- Clone credentials — pass
credential.clone()when constructing multiple clients; credentials areArc-wrapped - Reuse clients — clients are thread-safe; create once, share across tasks
- Assign RBAC roles — ensure the identity has appropriate roles for the target service (e.g., "Key Vault Secrets User" for secret reads)
- Run `cargo clippy -- -D warnings` when the prompt, eval, or CI expects lint-clean output; Rust trajectory graders can fail on style lints even after compiler errors are fixed
- Future-proof `#[non_exhaustive]` SDK models — when constructing SDK model/options structs, end the initializer with
..Default::default()(add#[allow(clippy::needless_update)]) and use a_wildcard arm when matching SDK enums, so new service-added fields/variants don't break your build
Reference Links
| Resource | Link | |
|---|---|---|
| API Reference | https://docs.rs/azure_identity/latest/azure_identity | |
| crates.io | https://crates.io/crates/azure_identity | |
| Source Code | https://github.com/Azure/azure-sdk-for-rust/tree/main/sdk/identity/azure_identity |
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 repositoryCheckingsrc/AstralNexus/skills/vendor/microsoft/azure-identity-rust/SKILL.md
Popularity
- 7-day trend score
- 0
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/brokenchapt3r/astralnexus/azure-identity-rust)