Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,196 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
how do we change the parameter value location from east us to west us ( for ARM Template) in the azure pipelines without touching changing the code in the repo?
To change the location value of an ARM template deployment without modifying the code in the repo, you can pass the parameter value in your Azure DevOps pipeline. You can do this using the overrideParameters property of the AzureResourceManagerTemplateDeployment@3 task in your Azure pipeline YAML file. Example YAML:
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: AzureResourceManagerTemplateDeployment@3
inputs:
azureResourceManagerConnection: 'YourAzureConnectionName'
subscriptionId: 'your-subscription-id'
resourceGroupName: 'your-resource-group-name'
location: 'West US'
csmFile: 'path/to/your/arm/template.json'
csmParametersFile: 'path/to/your/arm/parameters.json'
overrideParameters: '-location "West US"'
deploymentMode: 'Incremental'