Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Springstone committed Nov 29, 2024
1 parent 27de017 commit 6faf58c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion eslzArm/prerequisites/deployPrerequisites.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@
$eslzRootName
)

#One initial call to register the provider for good measure
Invoke-AzRestMethod -Method POST -Uri \"https://management.azure.com/providers/Microsoft.Management/managementGroups/$eslzRootName/providers/Microsoft.Network/register?api-version=2021-04-01\"

#Sleep for XX minutes to wait for Management Groups to load to cache before assignments
Start-Sleep -Duration (New-TimeSpan -Minutes 10)

Expand All @@ -163,7 +166,7 @@
$result = Invoke-AzRestMethod -Method POST -Uri \"https://management.azure.com/providers/Microsoft.Management/managementGroups/$eslzRootName/providers/Microsoft.Network/register?api-version=2021-04-01\"
$count++
Start-Sleep -Seconds 30
Write-Output 'Status Code: ' $result.StatusCode ' Count: ' $count
#Write-Output 'Status Code: ' $result.StatusCode ' Count: ' $count
} while ($result.StatusCode -ne 200 -and $count -lt 10)
"
},
Expand Down

0 comments on commit 6faf58c

Please sign in to comment.