Search code examples
azureazure-resource-managerazure-rm-template

How to check the resource exists in the arm template


How do i identify the azure resource is exists or not in the ARM templates by the resource type and identifier


Solution

  • there is no way of doing that in an arm template. you can use some external source (like powershell) to determine that and pass in parameter with appropriate value, alternatively you can use tags to figure that out (have a tag that represents an existence\absence of a resource).