我需要以编程方式更新插槽中的Function应用程序设置,最好使用Powershell Az模块或az cli。我可以看到功能Update-AzFunctionAppSetting
存在,但据我所知不可能在插槽上使用它。
有没有办法做到这一点?
答案 0 :(得分:0)
您可以使用az cli更新广告位应用设置:
az functionapp config appsettings set --name MyFunctionApp --resource-group MyResourceGroup --slot MySlot --slot-settings "Name1=Value1"