Conditions in ARM Templates to deploy specific resource block
Now ARM support condition property in resource so that we can use condition and if the condition is true then only that resource will get deployed.
Add condition property to a resource object, the resource object will only be deployed when the condition is met. The following sample code will show this:
Download simple ARM template and execute the same using New-AzureRmResourceGroupDeployment command.
below is example of powershell to deploy ARM template.
New-AzureRmResourceGroupDeployment -ResourceGroupName “omsworkspaceRG” -TemplateFile “C:vedTechOMSTemplate.json” -TemplateParameterFile “C:vedTechOMSParameters.json”
(Visited 960 times, 1 visits today)