Environment Variables

May 11, 2026 ยท View on GitHub

Environment variables that configure Azure Developer CLI behavior. These can be set in your shell, CI/CD pipeline, or .env files.

Feature Flags

VariableDescription
AZD_ALPHA_ENABLE_<NAME>Enable a specific alpha feature

Configuration

VariableDescription
AZD_CONFIG_DIROverride the default user configuration directory
AZURE_DEV_COLLECT_TELEMETRYSet to no to disable telemetry collection

Behavior

VariableDescription
AZD_DEMO_MODEWhen set, hides PII (e.g., subscription IDs) in output
AZD_FORCE_TTYForce terminal detection mode (true forces TTY mode, false forces non-TTY mode)
AZD_IN_CLOUDSHELLIndicates azd is running in Azure Cloud Shell
AZD_SKIP_UPDATE_CHECKSkip the periodic update availability check
AZD_DEBUG_LOGEnable debug file logging

Tool Path Overrides

Override the path to external tools that azd invokes:

VariableDescription
AZD_BICEP_TOOL_PATHPath to the Bicep CLI binary
AZD_GH_TOOL_PATHPath to the GitHub CLI binary
AZD_PACK_TOOL_PATHPath to the Cloud Native Buildpacks (pack) binary

Build Configuration

VariableDescription
AZD_BUILDER_IMAGEBuilder image for Dockerfile-less container builds

Provisioning

VariableDescription
AZD_DEPLOYMENT_ID_FILEAbsolute path to a file where azd writes ARM deployment resource IDs in NDJSON format (one JSON line per layer) during Bicep provisioning. The file is truncated at the start of each run; each layer appends {"deploymentId":"...","layer":"<name>"}. Enables external tooling (e.g., VS Code extension) to track all in-flight deployments without scraping console output. See cli/azd/docs/environment-variables.md for the full contract.

IDE Integration

Set by IDE hosts (VS Code, Visual Studio) when spawning azd as a subprocess. Users do not set these manually.

VariableDescription
AZD_AUTH_ENDPOINTAuthentication endpoint URL set by IDE hosts for integrated authentication
AZD_AUTH_KEYAuthentication key set by IDE hosts for integrated authentication
AZD_AUTH_CERTAuthentication certificate/TLS trust configuration set by IDE hosts

For details on the external authentication protocol, see cli/azd/docs/external-authentication.md.

See Also

For the full reference with implementation details, see cli/azd/docs/environment-variables.md.