0
votes

I Have two ARM templates to deploy resources in DEV and QA separately. Now my requirement is to create only one template to deploy resources in DEV and QA based on selected environment.

Someone help me how to create ARM template to deploy resources based on select Environment like DEV or QA.

1
What have you tried so far? Have you tried working with passing in a parameter to indicate the environment type and then using an variable object to lookup name patterns based on the environment parameter. For example, see stackoverflow.com/questions/64349356/… - Stringfellow

1 Answers

0
votes

Per my understanding, you could use Logical functions for ARM templates to create Azure resources with conditional action. Use the condition element to specify whether the resource is deployed. The value for this element resolves to true or false. When the value is true, the resource is created. When the value is false, the resource isn't created. The value can only be applied to the whole resource.

For more information, read the tutorial: Use condition in ARM templates and this.