question

STy-0001 avatar image
0 Votes"
STy-0001 asked AlexWhittenberg-2691 answered

Azure: Cannot delete a child management group (AZ104 Lab 2)

Hello,

I am working on the AZ104 exercise Lab 2 (link) and I am literally at the FINAL STEP of the exercise (Clean Up Resources Step 11) but I could not delete the 'az104-02-mg1' management group - screenshot below shows the 'hierarchy' of the management groups - the 'az104-02-mg1' is currently UNDER the Tenant Root Group.

126830-fig-1.png


So I am using my main azure account to log on to the Azure Portal to attempt to delete that management group. So I clicked on the 'az104-02-mg1' which brings me to its details page. However, I see that the "Delete" icon is greyed out screenshot below)

126840-fig-2.png


So I tried to run the Azure CLI in the Powershell - and here is the error message when I tried to delete it using the Powershell Azure CLI -

 > PS /home/s>  az account management-group delete --name 'az104-02-mg1'    
 >     
 > AuthorizationFailed: The client '<account>' with object id '65a8ff19-9f21-4ad1-a93b-dc94e2ee37bc' does not have authorization to perform action 'Microsoft.Management/managementGroups/delete' over scope '/providers/Microsoft.Management/managementGroups/**az104-02-mg1**' or the scope is invalid. If access was recently granted, please refresh your credentials.      

I followed the AZ104 Lab 2 (link) instructions faithfully. I couldn't get why I am getting this issue. I re-read the instructions a few times and there is no other privilege or access settings change other than the following:


126933-fig-3.png


The error says "Authorization error" - what did I miss?

Appreciate your help and inputs!


azure-ad-group-management
fig-1.png (182.3 KiB)
fig-2.png (238.5 KiB)
fig-3.png (214.8 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DSPatrick avatar image
0 Votes"
DSPatrick answered

Microsoft Certification Program is supported on their own forums. I'd try asking for help with course issues in dedicated forums here. (Participate\Ask A Question)
Courses and Course Content/Course Content Issue

--please don't forget to upvote and Accept as answer if the reply is helpful--




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

STy-0001 avatar image
0 Votes"
STy-0001 answered DSPatrick commented

Thank you! I will post this over to the other forum.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Sounds good, you're welcome.



0 Votes 0 ·
AlexWhittenberg-2691 avatar image
0 Votes"
AlexWhittenberg-2691 answered

If anyone ever got the answer to this please let me know I am still unable to delete my child management group.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlexWhittenberg-2691 avatar image
0 Votes"
AlexWhittenberg-2691 answered

Finally figured it out. For some reason my subscription was still tied to my Child Management group. Once I moved the subscription from the child management group back onto my Root management group it allowed me to delete the management group. Finally.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.