{"id":767,"date":"2023-08-18T10:28:30","date_gmt":"2023-08-18T09:28:30","guid":{"rendered":"https:\/\/www.server1.dk\/?p=767"},"modified":"2023-08-18T10:28:30","modified_gmt":"2023-08-18T09:28:30","slug":"new-azsubscriptionalias-fails","status":"publish","type":"post","link":"http:\/\/www.server1.dk\/?p=767","title":{"rendered":"New-AzSubscriptionAlias fails"},"content":{"rendered":"\n<p>When using the PowerShell command New-AzSubscriptionAlias it might fail with errors not saying what the real issue is<\/p>\n\n\n\n<p>Errors like: &#8220;<strong>InvalidManagementGroupId<\/strong>&#8221; and &#8220;<strong>Subscription creation failed since provided management group id is not valid<\/strong>&#8221; could suggest that the ID is wrong.<\/p>\n\n\n\n<p>But the reason can actually be that the account that PowerShell is running in context of, is missing the right: <strong>&#8220;Management Group Contributor&#8221;<\/strong> on the management group.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2023\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"529\" height=\"106\" src=\"https:\/\/www.server1.dk\/wp-content\/uploads\/2023\/08\/image.png\" alt=\"\" class=\"wp-image-768\" srcset=\"http:\/\/www.server1.dk\/wp-content\/uploads\/2023\/08\/image.png 529w, http:\/\/www.server1.dk\/wp-content\/uploads\/2023\/08\/image-300x60.png 300w, http:\/\/www.server1.dk\/wp-content\/uploads\/2023\/08\/image-500x100.png 500w\" sizes=\"auto, (max-width: 529px) 100vw, 529px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>When using the PowerShell command New-AzSubscriptionAlias it might fail with errors not saying what the real issue is Errors like: &#8220;InvalidManagementGroupId&#8221; and &#8220;Subscription creation failed since provided management group id is not valid&#8221; could suggest that the ID is wrong. &hellip; <a href=\"http:\/\/www.server1.dk\/?p=767\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-767","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/767","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=767"}],"version-history":[{"count":1,"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/767\/revisions"}],"predecessor-version":[{"id":769,"href":"http:\/\/www.server1.dk\/index.php?rest_route=\/wp\/v2\/posts\/767\/revisions\/769"}],"wp:attachment":[{"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=767"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.server1.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}