# Configure Azure Identity for Rust

Azure authentication choices can be difficult to match to each runtime. This skill provides focused Rust examples for local tools, managed identities, and service principals.

## Install

```bash
npx skillstore add sickn33/azure-identity-rust
```

## Metadata

- Status: approved
- Slug: sickn33-azure-identity-rust
- Skillstore revision: r2
- Version status: missing
- Tree hash: 23c61f057c244d30ee5895faec34140bdcf03227c74e9021e88e7f381bf9b89c
- Author: sickn33
- GitHub username: sickn33
- License: MIT
- Repository: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-identity-rust
- Ref: f9e2c34b4f19c7f3e6b0a1e93227b5f77cc12526
- Supported tools: Claude, Codex, Claude Code
- Audit status: complete
- Agent install advisory: allowed
- Manual install advisory: allowed
- Artifact signature: available
- Audit attestation: unavailable
- Human verification: not\_verified
- Risk factors: external\_commands, network, env\_access
- Quality score: 79
- Quality tier: bronze
- Public page: https://skillstore.pages.dev/skills/sickn33-azure-identity-rust
- Manifest: https://skillstore.pages.dev/api/skills/sickn33-azure-identity-rust/manifest

## Capabilities

- Shows how to install the azure\_identity crate with Cargo.
- Explains the DeveloperToolsCredential chain for local development.
- Configures system-assigned and user-assigned managed identities.
- Shows ClientSecretCredential setup with tenant, client, and secret placeholders.
- Compares supported credential types across development, CI, Kubernetes, and Azure hosting.
- Demonstrates credential reuse with Azure SDK clients.

## Use Cases

- Local Rust Development: Choose developer tool credentials for a Rust application using an authenticated Azure CLI session.
- Passwordless Azure Hosting: Configure a system-assigned or user-assigned managed identity for an Azure-hosted Rust service.
- CI Service Authentication: Evaluate workload identity, pipeline credentials, or a service principal for automated Rust builds.

## Prompt Templates

### Choose a Credential

```
I am building a Rust application for [environment]. Recommend an Azure Identity credential and explain the prerequisites.
```

### Add Local Authentication

```
Show how to add azure_identity and use DeveloperToolsCredential with [Azure SDK client]. Include prerequisites and error-handling notes.
```

### Configure Managed Identity

```
Adapt my Rust service for [Azure host] using [identity type] managed identity. Explain required Azure permissions.
```

### Design a Deployment Strategy

```
Compare Azure credentials for [local, CI, staging, production]. Recommend a secure mapping and explain migration steps.
```

## Limitations

- The skill does not execute authentication or verify Azure permissions.
- It does not provide complete certificate or custom assertion examples.
- Examples may require changes for different crate versions.
- Users must supply credentials securely and configure Azure role assignments.

## Best Practices

- Use DeveloperToolsCredential for local development with approved Azure CLI sessions.
- Prefer ManagedIdentityCredential for Azure-hosted production workloads.
- Reuse credential instances across clients and grant only required Azure roles.

## Anti Patterns

- Do not place real client secrets in prompts, code, logs, or source control.
- Do not use local CLI credentials in hosted production workloads.
- Do not assign broad Azure roles when a narrower role meets the requirement.

## Security Audit

- Audited at: 2026-07-23T21:56:42.608\+00:00
- Summary: All 25 external-command findings are Markdown code fences or inline code, not Ruby or shell backtick execution. The four URLs are examples or official references. The four Azure environment values are placeholders, with no prompt injection or exfiltration intent.

## Stats

- Views: 92
- Downloads: 10
- Favorites: 0
- Popularity score: 0
