question

JyotiPrakashMallick-1882 avatar image
0 Votes"
JyotiPrakashMallick-1882 asked SamaraSoucyMSFT edited

Upgrade Azure App Service with Powershell for Tier "Premium v3"

I am trying to upgrade an app service plan(ASP) to the specific premium tier P2V3 from S1.
I am using the following piece of code:


 Set-AzAppServicePlan -ResourceGroupName "<RG Group Name>" -Name "<App service Name>" -Tier "PremiumV3" -WorkerSize Medium | Out-null;

How to achieve this ?

azure-webapps-scaling
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AlanKinane avatar image
0 Votes"
AlanKinane answered AlanKinane commented

This command should work. Are you sure that you are specifying the app service plan name and not the name of the web app?

· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Yeah the App service name is working fine, I am able to change it to P2V2 which is falling under -Tier PremiumV2

0 Votes 0 ·
AlanKinane avatar image AlanKinane JyotiPrakashMallick-1882 ·

Is it just the Premium v3 tier that's the issue? Can you confirm if you can manually change the app service plan to v3? If not, there may be availability issues for this tier in your region - https://docs.microsoft.com/en-us/azure/app-service/app-service-configure-premium-tier#availability

https://docs.microsoft.com/en-us/azure/app-service/app-service-configure-premium-tier#unsupported

I am able to resize successfully from Standard tier to Premium V3 with the code above.

1 Vote 1 ·
LimitlessTechnology-2700 avatar image
0 Votes"
LimitlessTechnology-2700 answered

Hi @JyotiPrakashMallick-1882

The main issue here are the denominations for each Tier, for example:

I tried to upgrade an AppServicePlan from P1v2 to P2v2. However, this translates to:

Set-AzAppServicePlan -Name $appServicePlanName -ResourceGroupName $resourceGroupName -Tier "PremiumV2" -NumberofWorkers 1 -WorkerSize "Medium"

Note that -Tier points to the Tier familiy and the -WorkerSize points to the size (in the Portal or az cli this is P1, P2, P3 but in AzPowershell this is small/medium/large).

P1v2 = -WorkerSize "Small" and P3v2 = -WorkerSize "Large"

More references: https://docs.microsoft.com/en-us/azure/app-service/app-service-configure-premium-tier#automate-with-scripts

Hope this helps with your query,

--If the reply is helpful, please Upvote and Accept as answer--

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.