1.Configuration Settings
You can create any number of application settings required by your function code. There are also predefined application settings used by Functions. These settings are stored encrypted.
...
Code Block | ||
---|---|---|
| ||
$FunctionApp = '<FUNCTION_APP_NAME>' $ResourceGroup = '<RESOURCE_GROUP>' $PlanID = (Get-AzFunctionApp -ResourceGroupName $ResourceGroup -Name $FunctionApp).AppServicePlan (Get-AzFunctionAppPlan -Name $PlanID -ResourceGroupName $ResourceGroup).SkuTier |
4.Hosting plan migration
From Consumption to Premium : first, create; secondly, update; finally, delete the first one.
Code Block | ||
---|---|---|
| ||
az functionapp plan create --name <NEW_PREMIUM_PLAN_NAME> --resource-group <MY_RESOURCE_GROUP> --location <REGION> --sku EP1
az functionapp update --name <MY_APP_NAME> --resource-group <MY_RESOURCE_GROUP> --plan <NEW_PREMIUM_PLAN>
az functionapp plan list --resource-group <MY_RESOURCE_GROUP> --query "[?sku.family=='Y'].{PlanName:name,Sites:numberOfSites}" -o table
--We can safely delete the plan with zero sites, which is the one we migrated from.
az functionapp plan delete --name <CONSUMPTION_PLAN_NAME> --resource-group <MY_RESOURCE_GROUP> |
From Premium to Consumption : first, create; secondly, update; finally, delete the first one.