Skip to content

Need help for subscription creation at azure tenant enterprise scale set #4715

Discussion options

You must be logged in to vote

@Mohansharma84

So I think I understand what you are asking ... I will do this in 2 parts

  1. extract and deploy management groups
  2. extract and deploy subscriptions under management groups

you have something like below

i.e. a list of Management Groups.

You can export these to a hierarchy with PowerShell

Get-AzManagementGroup -WarningAction SilentlyContinue | 
foreach {Get-AzManagementGroup -WarningAction SilentlyContinue -GroupName $_.Name -Expand } | 
select Name,ParentName 

Name                                 ParentName
----                                 ----------
11cb9e1b-bd08-4f80-bb8f-f71940c39079 
HA-APP                               11cb9e1b-bd08-4f80-bb8f-f71940c39079
HA-APP-dec…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@brwilkinson
Comment options

Comment options

You must be logged in to vote
1 reply
@Mohansharma84
Comment options

Comment options

You must be logged in to vote
2 replies
@brwilkinson
Comment options

@brwilkinson
Comment options

Answer selected by brwilkinson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants