Skip to content

Instantly share code, notes, and snippets.

@jeffhollan
Created November 26, 2019 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffhollan/ebe3fb1ea1a474583527551f92c6a46a to your computer and use it in GitHub Desktop.
Save jeffhollan/ebe3fb1ea1a474583527551f92c6a46a to your computer and use it in GitHub Desktop.
Moving premium and consumption plans
# 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