英文:
what is poweshell script to create app service plan for P1mv3
问题
New-AzAppServicePlan -Name "app-service-plan-name" -ResourceGroupName "rg-name" -Location "East US" -Tier P1mv3 -WorkerSize Small
英文:
we are trying to create an Azure app service plan using Power shell script with pricing tier Premium p1mV3, but always creating as Premium P1 and the same issue happens while we creating Premium P0V3
PS script -
New-AzAppServicePlan -Name "app-service-plan-name" -ResourceGroupName "rg-name" -Location "East US" -Tier P1mv3 -WorkerSize Small
Note= We could able to create an app service plan with Premium v3 P1mv3 manually from the Azure portal in the new RG.
Please help on creating an exact script to create Premium P1mv3 and Premium P0V3 using Powershell
Actual result: actual.img
Expected Result: expected1.img, expected2.img[expected1][actual]expected2](https://i.stack.imgur.com/i5hFi.png)](https://i.stack.imgur.com/cxFDo.png)
haven't created as expected as mentioned above in the description
答案1
得分: 0
这是与 p1mv3 定价计划相关的问题,是使用 PowerShell 命令识别出的,如在此 Microsoft Q&A 中所确认的。替代方法是使用 Az CLI
或 RestAPI
。
使用 az appservice plan create
CLI 命令:-
az appservice plan create --resource-group <resourcegroupname> --name newcliplan --sku P1mV3
注意: 您也可以使用不同的 sku
选项创建应用服务计划,例如 P0V3,它会像这样:--sku P0V3
。
New-AzAppServicePlan
PowerShell 命令:-
我能够使用 PowerShell 设置其他 sku
层选项(例如:P1V3)。
New-AzAppServicePlan -ResourceGroupName <ResourceGroup> -Name <planname> -Location westus -Tier "PremiumV3"
英文:
This is an issue with the p1mv3 pricing plan that was identified using a powershell command, as confirmed in this Microsoft Q&A. Alternative approaches are to use either Az CLI
or RestAPI
.
Using az appservice plan create
CLI command:-
az appservice plan create --resource-group <resourcegroupname> --name newcliplan --sku P1mV3
Note: You can create an app service plan with different sku
options as well. For P0V3, it will look like--sku P0V3
.
New-AzAppServicePlan
PowerShell command:-
I was able to set up the other sku
tier options (for eg: P1V3) using PowerShell.
New-AzAppServicePlan -ResourceGroupName <ResourceGroup> -Name <planname> -Location westus -Tier "PremiumV3"
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论