Azure Developer CLI
$ azd Official High RiskAzure 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.
brew install azure-dev 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
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports --output json, --no-prompt, automatic CI/agent non-interactive detection, and structured azd env get-values.
- Global
--output jsonand--no-promptflags across core commands - Supports
azd provision --previewfor safe plan inspection
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 --purgepermanently destroys cloud resource groups
Single Go binary distributed via Homebrew, winget, apt, and official install scripts across macOS, Linux, and Windows.
- Available via
brew install azure-devand official releases
Orchestrates scaffolding, infra provisioning, and service deployment in one workflow, avoiding fragmented az + bicep scripting.
- Combines
azd provisionandazd deployaroundazure.yaml
First-party Microsoft tool (Azure/azure-dev) under MIT license with frequent releases.
- Official Microsoft repository under MIT license
Comprehensive Microsoft Learn CLI reference and structured --help across subcommands.
- Full command reference on Microsoft Learn
Security, Auth & Guardrails
Stores MSAL tokens in OS keychain or ~/.azd/, and supports AZURE_CLIENT_ID / AZURE_CLIENT_SECRET / AZURE_TENANT_ID service principal env vars.
MIT open-source CLI; azd provision and azd up create billable Azure cloud resources.
# 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
azd environments as JSON azd env list --output json --no-prompt
Inspects configured Azure environments and active defaults without prompting.
azd env get-values --output json --no-prompt
Exports provisioned resource outputs and environment variables for downstream scripts.
Controlled Writes & Previews
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-promptand--output jsonmake non-interactive execution straightforward. - +
azd provision --previewchecks infrastructure diffs before mutating Azure resources. - + Single
azure.yamlabstraction 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 --purgeirreversibly deletes resource groups and soft-deleted resources.