Reviewed by 20X · No signed release verified
- Works with (as stated by the author)
- Claude Code
- Access stated by the author
- Runs local code · Needs network access · Needs secrets
Review details
- Human review
- Review recorded for these files
- Limited checks
- Limited checks recorded (v2.1.0)
- Source
- Source not verified
A verified signature checks published file bytes against a trusted publisher’s signed manifest. It does not verify safety, authorship, rights or assistant use.
Declarations and limited checks do not guarantee safety or sharing rights. Review the files before use. Access that the author has not stated is unknown.
How to use it
- 1Download the skill folder and keep its files together.
- 2Put the folder in your agent's skills directory (for Claude Code: ~/.claude/skills/ or .claude/skills/ in a project), or upload it as a skill in the Claude app.
- 3Start a new session so the skill is picked up.
- 4Ask for a compliance scan of your Azure subscription.
Community results
0 reportsNo one has shared a result yet.
16 files. Filenames and raw files are in Technical details.
Azure Authentication Best Practices
Source: Microsoft — Passwordless connections for Azure services and Azure Identity client libraries.
Golden Rule
Use managed identities and Azure RBAC in production. Reserve DefaultAzureCredential for local development only.
Authentication by Environment
| Environment | Recommended Credential | Why |
|---|---|---|
| Production (Azure-hosted) | ManagedIdentityCredential (system- or user-assigned) | No secrets to manage; auto-rotated by Azure |
| Production (on-premises) | ClientCertificateCredential or WorkloadIdentityCredential | Deterministic; no fallback chain overhead |
| CI/CD pipelines | AzurePipelinesCredential / WorkloadIdentityCredential | Scoped to pipeline identity |
| Local development | DefaultAzureCredential | Chains CLI, PowerShell, and VS Code credentials for convenience |
Why Not DefaultAzureCredential in Production?
- Unpredictable fallback chain — walks through multiple credential types, adding latency and making failures harder to diagnose.
- Broad surface area — checks environment variables, CLI tokens, and other sources that should not exist in production.
- Non-deterministic — which credential actually authenticates depends on the environment, making behavior inconsistent across deployments.
- Performance — each failed credential attempt adds network round-trips before falling back to the next.
Production Patterns
.NET
using Azure.Identity;
var credential = Environment.GetEnvironmentVariable("AZURE_FUNCTIONS_ENVIRONMENT") == "Development"
? new DefaultAzureCredential() // local dev — uses CLI/VS credentials
: new ManagedIdentityCredential(); // production — deterministic, no fallback chain
// For user-assigned identity: new ManagedIdentityCredential("<client-id>")
TypeScript / JavaScript
import { DefaultAzureCredential, ManagedIdentityCredential } from "@azure/identity";
const credential = process.env.NODE_ENV === "development"
? new DefaultAzureCredential() // local dev — uses CLI/VS credentials
: new ManagedIdentityCredential(); // production — deterministic, no fallback chain
// For user-assigned identity: new ManagedIdentityCredential("<client-id>")
Python
import os
from azure.identity import DefaultAzureCredential, ManagedIdentityCredential
credential = (
DefaultAzureCredential() # local dev — uses CLI/VS credentials
if os.getenv("AZURE_FUNCTIONS_ENVIRONMENT") == "Development"
else ManagedIdentityCredential() # production — deterministic, no fallback chain
)
# For user-assigned identity: ManagedIdentityCredential(client_id="<client-id>")
Java
import com.azure.identity.DefaultAzureCredentialBuilder;
import com.azure.identity.ManagedIdentityCredentialBuilder;
var credential = "Development".equals(System.getenv("AZURE_FUNCTIONS_ENVIRONMENT"))
? new DefaultAzureCredentialBuilder().build() // local dev — uses CLI/VS credentials
: new ManagedIdentityCredentialBuilder().build(); // production — deterministic, no fallback chain
// For user-assigned identity: new ManagedIdentityCredentialBuilder().clientId("<client-id>").build()
Local Development Setup
DefaultAzureCredential is ideal for local dev because it automatically picks up credentials from developer tools:
- Azure CLI —
az login - Azure Developer CLI —
azd auth login - Azure PowerShell —
Connect-AzAccount - Visual Studio / VS Code — sign in via Azure extension
import { DefaultAzureCredential } from "@azure/identity";
// Local development only — uses CLI/PowerShell/VS Code credentials
const credential = new DefaultAzureCredential();
Environment-Aware Pattern
Detect the runtime environment and select the appropriate credential. The key principle: use DefaultAzureCredential only when running locally, and a specific credential in production.
Tip: Azure Functions sets
AZURE_FUNCTIONS_ENVIRONMENTto"Development"when running locally. For App Service or containers, use any environment variable you control (e.g.NODE_ENV,ASPNETCORE_ENVIRONMENT).
import { DefaultAzureCredential, ManagedIdentityCredential } from "@azure/identity";
function getCredential() {
if (process.env.NODE_ENV === "development") {
return new DefaultAzureCredential(); // picks up az login / VS Code creds
}
return process.env.AZURE_CLIENT_ID
? new ManagedIdentityCredential(process.env.AZURE_CLIENT_ID) // user-assigned
: new ManagedIdentityCredential(); // system-assigned
}
Security Checklist
- Use managed identity for all Azure-hosted apps
- Never hardcode credentials, connection strings, or keys
- Apply least-privilege RBAC roles at the narrowest scope
- Use
ManagedIdentityCredential(notDefaultAzureCredential) in production - Store any required secrets in Azure Key Vault
- Rotate secrets and certificates on a schedule
- Enable Microsoft Defender for Cloud on production resources
Further Reading
Latest changes
Initial reviewed release.
Version history
v1.0.0
Initial reviewed release.
File access pausedFile verification
- File integrity
No signed release verified for this version.
This checks published bytes, not safety, authorship, rights or assistant use.
Full compatibility
As stated by the author: Claude Code
Included files
16 filesreferences/auth-best-practices.md
markdownreferences/azqr-recommendations.md
markdownreferences/azqr-remediation-patterns.md
markdownreferences/azure-keyvault-expiration-audit.md
markdownreferences/azure-quick-review.md
markdownreferences/azure-resource-graph.md
markdownreferences/sdk/azure-keyvault-certificates-rust.md
markdownreferences/sdk/azure-keyvault-keys-rust.md
markdownreferences/sdk/azure-keyvault-keys-ts.md
markdownreferences/sdk/azure-keyvault-py.md
markdownreferences/sdk/azure-keyvault-secrets-rust.md
markdownreferences/sdk/azure-keyvault-secrets-ts.md
markdownreferences/sdk/azure-security-keyvault-keys-dotnet.md
markdownreferences/sdk/azure-security-keyvault-keys-java.md
markdownreferences/sdk/azure-security-keyvault-secrets-java.md
markdownSKILL.md
markdownPublic file access is temporarily paused.
Use in your own tool
Save this resource and connect your assistant in the Use with flow before copying a test request.
Related resources
Writing Instructions for AI Agents
Guidance for writing skills, AGENTS.md, and CLAUDE.md files that AI agents actually follow.
Claude Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
Context Engineering Setup (Addy Osmani)
Optimises agent context setup: when to start fresh, configure rules files, and recover degraded output quality.
Claude Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11
SEO Audit and Implementation (ECC)
Audits and implements SEO: technical, on-page, structured data, Core Web Vitals, sitemaps, and keyword mapping.
Claude Code
- Rating
- Not rated
- Recorded downloads in the past 90 days
- 0
- Updated
- Nov 11