Deploying with existing Azure resources
March 23, 2026 ยท View on GitHub
If you already have existing Azure resources, or if you want to specify the exact name of new Azure Resource, you can do so by setting azd environment values.
You should set these values before running azd up. Once you've set them, return to the deployment steps.
Resource group
- Run
azd env set AZURE_RESOURCE_GROUP {Name of existing resource group} - Run
azd env set AZURE_LOCATION {Location of existing resource group}
OpenAI resource
If you already have an OpenAI resource and would like to re-use it, run azd env set to specify the values for the existing OpenAI resource.
azd env set AZURE_OPENAI_RESOURCE {name of OpenAI resource}
azd env set AZURE_OPENAI_RESOURCE_GROUP {name of resource group that it's inside}
azd env set AZURE_OPENAI_RESOURCE_GROUP_LOCATION {location for that group}