有没有办法以编程方式更新 Azure 函数槽中的应用程序设置?
Is there a way to programmatically update an App Setting in an Azure Function slot?
我需要以编程方式更新插槽中的函数应用程序设置,最好使用 Powershell Az 模块或 az cli。我可以看到函数 Update-AzFunctionAppSetting
存在,但据我所知,它不可能在插槽上使用它。
有办法实现吗?
您可以使用 az cli 更新老虎机应用设置:
az functionapp config appsettings set --name MyFunctionApp --resource-group MyResourceGroup --slot MySlot --slot-settings "Name1=Value1"
我需要以编程方式更新插槽中的函数应用程序设置,最好使用 Powershell Az 模块或 az cli。我可以看到函数 Update-AzFunctionAppSetting
存在,但据我所知,它不可能在插槽上使用它。
有办法实现吗?
您可以使用 az cli 更新老虎机应用设置:
az functionapp config appsettings set --name MyFunctionApp --resource-group MyResourceGroup --slot MySlot --slot-settings "Name1=Value1"