Skip to content

Do-it-yourself PowerShell deployment fails right at the start #795

Closed Answered by jtracey93
matthewjlevy asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like you are missing a backtick on the first and second lines?

Try:

New-AzManagementGroupDeployment -Name $DeploymentName -ManagementGroupId $TenantRootGroupId `
-Location $Location -TemplateFile .\eslzArm\managementGroupTemplates\mgmtGroupStructure\mgmtGroups.json `
-topLevelManagementGroupPrefix $ESLZPrefix `
-Verbose

Could you also try updating the Az PowerShell module to the latest and then re-launch the PowerShell session. The command to update is:

Update-Module -Name 'Az' -Force

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@matthewjlevy
Comment options

@jtracey93
Comment options

@matthewjlevy
Comment options

@jtracey93
Comment options

Answer selected by jtracey93
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants