aideb
asked on
Using Powershell on Azure to create resources keeping within the resource group limits
Hi,
I want to create a large number of App Services - circa 10,000 and I have scripted the creation of the App Services using a template.
I wasn't aware of a limit to the number of resources in a Resource group (800) until my script failed.
Therefore I need to modify my script to split up the new resources into a number of resource groups
Can someone tell me how to assign to ResourceGroupName 'asp02', 'asp03' etc. when reaching the 800 limit?
Thanks
Aidan
I want to create a large number of App Services - circa 10,000 and I have scripted the creation of the App Services using a template.
I wasn't aware of a limit to the number of resources in a Resource group (800) until my script failed.
Therefore I need to modify my script to split up the new resources into a number of resource groups
for ($i=1 ; $i -le 10000; $i++)
{
Write-Host $i
$GlowName = "GW00abtesting"+$i
write-host $GlowName
New-AzureRmResourceGroupDeployment -Name $GlowName -ResourceGroupName asp01 -TemplateUri https://kalideploy.blob.core.windows.net/scripts/PHPAppServiceStdtemplate.json -site_GlowLogin_name $GlowName
}
Can someone tell me how to assign to ResourceGroupName 'asp02', 'asp03' etc. when reaching the 800 limit?
Thanks
Aidan
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER