Created
November 26, 2019 14:52
-
-
Save jeffhollan/ebe3fb1ea1a474583527551f92c6a46a to your computer and use it in GitHub Desktop.
Moving premium and consumption plans
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first I had to create a resource group with a premium plan so I knew the resource group / app service plan mapping supported both premium and consumption | |
# Get the plan ID for the plan you want to move to | |
planId=$(az resource show --resource-type Microsoft.Web/serverfarms -g $resourceGroupName -n $appServicePlanName --query id) | |
# Update the function app to move to that plan | |
az resource update --resource-type Microsoft.Web/sites -g $resourceGroupName -n $functionAppName --set properties.serverFarmId=$planId |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment