Open mbfrahry opened 1 year ago
Hi Matthew,
In order to use a management group within a network manager scope, you must first register it with the Microsoft.Network resource provider namespace. More details here https://learn.microsoft.com/en-us/rest/api/resources/providers/register-at-management-group-scope.
In Azure Portal we are able to perform this registration behind the scenes when you create your network manager. But if you register manually, your above request should be able to succeed.
I can open a repair item for the AvNM service to return a more informative error message (suggest the customer register the scope, rather than this false assumption that the scope is not within the tenant); other than that this is by design.
Ohhh good to know @jago2136!
Changing that error message to be more informative would be appreciated!
I'm seeing an issue when trying to create a Network Manager scoped to a nested Management Group.
I'm passing in
and getting back the following error
That Management Group is under the specified tenant and if I go to the portal to create a Network Manager, that management group id is selectable and the network manager creates without issue.
After I do that initial creation in the portal, I am now free to create Network Managers with the specified management group.
Is there a way for the management group to be used as the network manager scope without having to first create the network manager with that scope through the portal?