azd provision and azd up accept subscription and location flags
Introduced 2026-02-21 · score 0.97
HOW TO USE IT
When provisioning or deploying a repository with a specific Azure subscription and location, pass both values to `azd provision` or `azd up`; the flags save them to the environment and skip the selection prompts.
azd provision --subscription <subscription-id> --location <location>azd up --subscription <subscription-id> --location <location>WHY THIS HELPS
Provision or deploy a repository using a specific Azure subscription and location.
BEFORE THIS CHANGE
Run the command and select a subscription and location at the interactive prompts.
REQUIREMENTS AND LIMITATIONS
- Version: 1.23.6
- --subscription <subscription-id>: Azure subscription ID to use for the environment; the value is saved to that environment.
- --location <location>: Azure location to use for the environment; the value is saved to that environment. Alias: `-l`.
- Prerequisite: Use an `azd` version that includes the flags (introduced in 1.23.6).
- Prerequisite: Authenticate with Azure and have access to the chosen subscription.
FIRST-PARTY EVIDENCE
- https://github.com/Azure/azure-dev/releases/tag/azure-dev-cli_1.23.6
- https://github.com/Azure/azure-dev/pull/6777
- https://learn.microsoft.com/en-us/azure/developer/azure-developer-cli/reference
Check the installed version and the source before using it. Entry JSON