what is poweshell script to create app service plan for P1mv3

huangapple go评论65阅读模式
英文:

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 CLIRestAPI

使用 az appservice plan create CLI 命令:-

az appservice plan create --resource-group <resourcegroupname> --name newcliplan --sku P1mV3

注意: 您也可以使用不同的 sku 选项创建应用服务计划,例如 P0V3,它会像这样:--sku P0V3

what is poweshell script to create app service plan for P1mv3

what is poweshell script to create app service plan for P1mv3

New-AzAppServicePlan PowerShell 命令:-

我能够使用 PowerShell 设置其他 sku 层选项(例如:P1V3)

New-AzAppServicePlan -ResourceGroupName <ResourceGroup> -Name <planname> -Location westus -Tier "PremiumV3"

what is poweshell script to create app service plan for P1mv3

what is poweshell script to create app service plan for P1mv3

英文:

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 &lt;resourcegroupname&gt; --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.

what is poweshell script to create app service plan for P1mv3

what is poweshell script to create app service plan for P1mv3

New-AzAppServicePlan PowerShell command:-

I was able to set up the other sku tier options (for eg: P1V3) using PowerShell.

New-AzAppServicePlan -ResourceGroupName &lt;ResourceGroup&gt; -Name &lt;planname&gt; -Location westus -Tier &quot;PremiumV3&quot;

what is poweshell script to create app service plan for P1mv3

what is poweshell script to create app service plan for P1mv3

huangapple
  • 本文由 发表于 2023年7月10日 18:07:21
  • 转载请务必保留本文链接:https://go.coder-hub.com/76652707.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定