Warm tip: This article is reproduced from stackoverflow.com, please click
azure azure-cli azure-function-app azure-functions

How do you toggle status of functions of a function app in a slot?

发布于 2020-04-21 11:09:17

In Azure Functions (runtime version 2.x), I can use Azure CLI to toggle the state of a function (enable/disable) by using the command az functionapp config appsettings set --name $functionAppName --resource-group $resourceGroupName --settings AzureWebJobs.functionName.Disabled=$disabled but this only toggles the production slot. What is the correct syntax to toggle functions in the other slots? What should the --name parameter be? I tried functionApp/stage and functionApp-stage but get errors as if they don't exist.

Questioner
Anthony Klotz
Viewed
35
Thiago Custodio 2020-02-06 04:22