It's possible to create App Service Plans using Azure Powershell?

旧时模样 提交于 2019-12-09 19:43:46

问题


As the title say, I need to create App Service Plans programmatilly, The scenario:

  • N azure websites will be created (dynamically, using azure powershell too)
  • If someday the Premium App Service Plan can't handle the quantity of websites (even with autoscaling by cpu usage), another service plan must be created to hold new sites.

It is possible? Or Am I going to the wrong way to accomplish this?


回答1:


Unless your design doesn't permit it, when you create a new Premium App Service Plan, create it in a new resource group, as that will give it a greater chance to have enough capacity to scale.

Using Azure PowerShell version 1.1.0 you can use the following command to create new app service plans

New-AzureRmAppServicePlan -Location "South Central US" -ResourceGroupName DestinationAzureResourceGroup -Name NewAppServicePlan -Sku Premium



来源:https://stackoverflow.com/questions/30178043/its-possible-to-create-app-service-plans-using-azure-powershell

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!