Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,914 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I've been trying to set/change app service plan via az cli on an app service.
I've tried the following attempts, but neither of them worked, is there a way to change app service plan on an app service via az commands?
Thank you
#az webapp update -g $SRA_RESOURCE_GROUP --n $APP --set plan=$PRELIVE_ASP
#az webapp update -g $SRA_RESOURCE_GROUP --n $APP --set appServicePlanId=$PRELIVE_ASP_ID
Hi Zhanelya Subebayeva,,
Unfortunately, we can't change the App Service Plan through CLI, otherwise, it would have shown on documentation: https://learn.microsoft.com/en-us/azure/app-service/app-service-plan-manage#move-an-app-to-another-app-service-plan
az webapp update supports only following flags:
az webapp update [--add]
[--client-affinity-enabled {false, true}]
[--force-dns-registration {false, true}]
[--force-string]
[--https-only {false, true}]
[--ids]
[--minimum-elastic-instance-count]
[--name]
[--prewarmed-instance-count]
[--remove]
[--resource-group]
[--set]
[--skip-custom-domain-verification {false, true}]
[--skip-dns-registration {false, true}]
[--slot]
[--subscription]
[--ttl-in-seconds {false, true}]
Please Click "Accept as Answer" if this helps