Search code examples
azureazure-web-app-serviceazure-powershell

what is poweshell script to create app service plan for P1mv3


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.sstatic.net/i5hFi.png)](https://i.sstatic.net/cxFDo.png)

haven't created as expected as mentioned above in the description


Solution

  • 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.

    enter image description here

    enter image description here

    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"
    

    enter image description here

    enter image description here