Azure Deployment
Synopsis​
Intended end result: Execute a repeatable infrastructure deployment with low operator error.
How this page gets you there: Start with the wrapper deployment script, then use manual commands only when deeper control or troubleshooting is needed.
Recommended deployment path​
Use the deployment wrapper script as the default entrypoint. It standardizes the build and deploy flow and reduces operator mistakes.
cd azure\infrastructure
.\scripts\deploy-AzureInfra.ps1
Before running deployment, publish the latest non-secret and secret parameter values:
cd azure\infrastructure
.\scripts\publish-AICondorDeploymentConfigToAppConfig.ps1
.\scripts\publish-AICondorDeploymentParamSecret.ps1
Use manual commands below only when you need granular control or targeted troubleshooting.
Manual deployment flow​
Compile Bicep and parameters before deploying:
cd azure\infrastructure
bicep build main.bicep
bicep build-params parameters.bicepparam
Authenticate and select the target subscription:
az login --use-device-code
az account show
az account set --subscription <subscription-name-or-id>
Preview changes:
az deployment sub what-if --location westus2 --template-file main.json --parameters "@parameters.json" 2>&1 | Tee-Object -FilePath ("whatif-output-{0}.txt" -f (Get-Date -Format "yyyyMMdd-HHmmss"))
Deploy with confirmation:
az deployment sub create --location westus2 --template-file main.json --parameters "@parameters.json" --confirm-with-what-if
Deploy immediately:
az deployment sub create --location westus2 --template-file main.json --parameters "@parameters.json"