Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Azure Developer CLI

$ azd Official High Risk
Microsoft · Cloud & Infra · MIT · macos / linux / windows

Azure Developer CLI (azd) unifies local development, Bicep/Terraform infrastructure provisioning, and app deployment via azd up, azd provision, and azd deploy. Built-in --output json and --no-prompt (plus AZD_NON_INTERACTIVE) support predictable headless agent execution.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install azure-dev
CLI vs MCP Decision CLI Preferred vs MCP

azd directly runs local templates, Bicep/Terraform plans, and container builds on your repo; MCP servers cannot substitute for local build-and-deploy loops.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
✓ NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 22 / 25

Supports --output json, --no-prompt, automatic CI/agent non-interactive detection, and structured azd env get-values.

  • Global --output json and --no-prompt flags across core commands
  • Supports azd provision --preview for safe plan inspection
Trust & Safety 21 / 25

Supports Entra ID service principals, --preview what-if checks, and explicit --force gates on azd down, though live provisioning carries billing risk.

  • Service principal / federated credential auth for CI isolation
  • azd down --purge permanently destroys cloud resource groups
Setup & Portability 14 / 15

Single Go binary distributed via Homebrew, winget, apt, and official install scripts across macOS, Linux, and Windows.

  • Available via brew install azure-dev and official releases
Utility & Efficiency 13 / 15

Orchestrates scaffolding, infra provisioning, and service deployment in one workflow, avoiding fragmented az + bicep scripting.

  • Combines azd provision and azd deploy around azure.yaml
Maintenance & Lineage 9 / 10

First-party Microsoft tool (Azure/azure-dev) under MIT license with frequent releases.

  • Official Microsoft repository under MIT license
Docs & Verifiability 9 / 10

Comprehensive Microsoft Learn CLI reference and structured --help across subcommands.

  • Full command reference on Microsoft Learn

Security, Auth & Guardrails

Auth Modes
OAuth Browser Service Account Env API Key
Credential Storage

Stores MSAL tokens in OS keychain or ~/.azd/, and supports AZURE_CLIENT_ID / AZURE_CLIENT_SECRET / AZURE_TENANT_ID service principal env vars.

Side Effects
Read-Only Local Write Remote Write Destructive Billing Impact
Cost & Quotas

MIT open-source CLI; azd provision and azd up create billable Azure cloud resources.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# Azure Developer CLI (azd) Agent Rules
- Always pass `--no-prompt` and `--output json` where supported.
- Run `azd provision --preview --no-prompt` before `azd provision` or `azd up`.
- Never run `azd down --force --purge` without explicit user approval.

Agent-Ready Command Recipes

Safe Read-Only Queries

List azd environments as JSON
azd env list --output json --no-prompt

Inspects configured Azure environments and active defaults without prompting.

Show environment values as JSON
azd env get-values --output json --no-prompt

Exports provisioned resource outputs and environment variables for downstream scripts.

Controlled Writes & Previews

Preview infrastructure changes without applying
azd provision --preview --no-prompt

Runs a what-if preview of Bicep/Terraform infrastructure changes before provisioning billable Azure resources.

Strengths for Agents

  • + Built-in --no-prompt and --output json make non-interactive execution straightforward.
  • + azd provision --preview checks infrastructure diffs before mutating Azure resources.
  • + Single azure.yaml abstraction coordinates both IaC and application deploys.

Caveats & Pitfalls

  • ! Initial setup (azd init / azd auth login) may require interactive browser OAuth unless service principal env vars are configured.
  • ! azd down --force --purge irreversibly deletes resource groups and soft-deleted resources.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI