Share via

Deployment template validation failed: 'Circular dependency detected

Ihsen Alaya 110 Reputation points
2024-01-23T00:36:03.2566667+00:00

Hi my name 'is Ihsen, I'm facing a problem with an ARM template I downloaded after creating 21 resources in one resource group. I needed to duplicate those resources so I downloaded the template from automation in the resource group and tried to redeploy but it failed and the error message "

Deployment template validation failed: 'Circular dependency detected on resource: '/subscriptions/cce101e5-47ab-456d-86bb-35d89664e720/resourceGroups/ihsentest/providers/Microsoft.Compute/virtualMachines/myVM1'. Please see https://aka.ms/arm-syntax-resources for usage details.'. (Code: InvalidTemplate)

". It's not my template, it's azure generated template and it failed.

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade
0 comments No comments

Answer accepted by question author

AllenLiu-MSFT 49,441 Reputation points Microsoft External Staff
2024-01-23T02:05:53.42+00:00

Hi, @Ihsen Alaya

Thank you for posting in Microsoft Q&A forum.

It seems the problem is NOT a MDT related problem, you may add the corresponding tag so that the experts who are familiar with that topic may help.

Personally, I searched this, you may check to see if it helps:

https://learn.microsoft.com/en-us/azure/azure-resource-manager/troubleshooting/error-invalid-template?tabs=bicep#solution-5-circular-dependency-detected


If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Add comment".

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.