Home > Software design >  Resource [parameters('mgName')] Location must be an expression or 'global'
Resource [parameters('mgName')] Location must be an expression or 'global'

Time:03-04

I am experimenting with Azure Management Groups Arm template.

As you can see in this enter image description here

Now when I remove "location": "eastus", line form Arm template, the test does not fail and pass the test.

My Question:

Is this location in Management Group Arm required or not required? And why it is failing when it is part of Microsoft documentation! Any idea?

CodePudding user response:

Location is not required in Management Group. As you can check this Azure Create Management Group REST API documentation, location is not needed here.

That's why in the template either you can remove the location or you can provide 'global' as the value, as the test command output specifies.

  • Related