Reputation: 1985
I want to create a template that deploys a VM. However I want to create a condition to check if a virtual network exists first before deploying. Whats the best way of coding this? For example say I want to create a VM called Server01 which needs to connect to a virtual network called VNET1 in resource group RESOURCEGROUP01. Whats the best way of checking this exists first before deploying the VM using the ARM template which creates the VM Server01?
Upvotes: 3
Views: 2730
Reputation: 72171
There is no way of doing this with ARM Template. Two remarks:
Upvotes: 1