Redefining resources in the same template

By now, you already know that it is not possible to define two resources in the same template having the same name. This means that if we define a resource in the template and later in the deployment execution we want to change any of its configurations, then it is not possible to do this.

The first question that might arise is why we cannot configure the resource with the end state, rather than reconfiguring. This is because there are situations, as we learned in the previous section, where it might not be possible to have all the values at the time of deployment; however, as template execution progresses and resources generate additional information, some of the resources might need reconfiguration. ...

Get Azure Resource Manager Templates Quick Start Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.