0

I have created first VM from Azure portal interface and it works good. I tried to deploy second VM using ARM template that is available from first VM. And I can't do it quickly. Primarily, I have to solve task with some dependency loops because I got message 'Circular dependency detected on resource: '/subscriptions/xxxxxxxxx/resourceGroups/MOD03VDSC/providers/Microsoft.Network/networkInterfaces/autoconfigvm7312'. It this a bag or feature? How can I quickly redeploy VM without analyze every time the dependencies?

Michael Hampton
  • 252,907

1 Answers1

1

It’s not a bug or feather, it’s an error of your template.

For example

if A is dependent on B, and B is also dependent on A, then they make a “Circular dependency” and they cannot continue to work.

Solution:

You should check the setting “dependsOn” of Network Interface in template. And then find the setting of dependent and check if the resource is also dependent on the Network Interface. If it is, that is the error “Circular dependency”.

You can analyses the resource dependency and remove in one side. I advise you check the whole template to ensure your template is OK.