Reputation: 520
I'm attempting to set the functionAppScaleLimit
to 1 according to the documentation here:
https://learn.microsoft.com/en-us/azure/azure-functions/functions-scale#limit-scale-out
Using the az resource update --resource-type Microsoft.Web/sites -g <resource_group> -n <function_app_name>/config/web --set properties.functionAppScaleLimit=<scale_limit>
command appears like it's working, but if I look at the Azure Function app settings using az resource show --ids <subscription_id>
the functionAppScaleLimit
is set to null.
After I do the update
command, the output shows properties.functionAppScaleLimit
is set to 1
. However, when I check with az resource show
the functionAppScaleLimit
setting appears to be in properties.siteConfig.functionAppScaleLimit
.
Why do the settings look different after the update and when I check with az resource show
? If I try to update instead using --set properties.siteConfig.functionAppScaleLimit=1
I get an error. I'll be doing some testing to see if the setting is actually working, but this seems a little strange.
Upvotes: 0
Views: 746
Reputation: 3398
It seems the format of az resource show
is different, sorry I didn't find the reason, but we can sure that we can do this command to limit scale out:
az resource update --resource-type Microsoft.Web/sites -g <resource_group> -n <function_app_name>/config/web --set properties.functionAppScaleLimit=<scale_limit>
for ensuring it works or not, better use portal or the command I post instead --ids
option.
az resource show --resource-type Microsoft.Web/sites -g <ResourceGroup> -n <FunctionName>/config/web
Upvotes: 1