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".
SkillScore100Maintained
Automatic
◆Coding pack
Last verified 8/12/2026
What it changes
Passed 22 of 22 test cases with the skill, and 17 of 22 without it.
Without skill77%
With skill100%
Checks it passed that the model alone missed
The code does not use DefaultAzureCredential.
The code uses DeveloperToolsCredential for local authentication.
The code uses ManagedIdentityCredential for cloud authentication.
and 4 more in the full report
5 fixed17 passed either way0 still failing0 broke
Pass-rate lift
+23 pp
Tokens
+29%
Agent turns
0%
Response time
-48%
Model gemini-3.6-flashMeasured 8/12/2026v122 of 22 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
When using developer tooling credentials for local Rust development, in what order does the credential attempt developer CLI authentications?
What was checked, without and with the skill
Checked
Without skill
With skill
The response specifies AzureCliCredential is tried before AzureDeveloperCliCredential.
Missed
Passed
case-14 · gemini-3.6-flash · 8/12/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md133 linessingle file
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 DeveloperToolsCredential for local development
You need ManagedIdentityCredential for Azure-hosted workloads
You need service principal auth with secret or certificate
IMPORTANT: Only use official azure_* crates published by the azure-sdk crates.io user. Do NOT use the deprecated azure_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 have DefaultAzureCredential. Use DeveloperToolsCredential for local development and ManagedIdentityCredential for production.
// Incorrect in Rust: this type does not exist in azure_identity
use azure_identity::DefaultAzureCredential;
Installation
cargo add azure_identity azure_core tokio
If your code uses azure_core types directly, add azure_core to Cargo.toml. If you only use service-crate re-exports, direct azure_core dependency is optional.
Environment Variables
AZURE_TENANT_ID=<your-tenant-id> # Required for service principal auth
AZURE_CLIENT_ID=<your-client-id> # Required for service principal or user-assigned managed identity
AZURE_CLIENT_SECRET=<your-client-secret> # Required for ClientSecretCredential