trigger:- mastername:Deploy Bicep filesvariables:vmImageName:'ubuntu-latest'azureServiceConnection:'<your-connection-name>'resourceGroupName:'exampleRG'location:'<your-resource-group-location>'templateFile:'main.bicep'pool:vmImage:$(vmImageName)steps:- task:AzureCLI@2inputs:azureSubscription:$(azureServiceConnection)scriptType:bashscriptLocation:inlineScriptuseGlobalConfig:falseinlineScript:| az --version az group create --name $(resourceGroupName) --location $(location) az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile)
To override the parameters, update the last line of inlineScript to:
az deployment group create --resource-group $(resourceGroupName) --template-file $(templateFile) --parameters storageAccountType='Standard_GRS' location='eastus'