Azure Fluent Management API:删除应用设置

Azure Fluent Management API: Remove an app setting

我正在尝试从使用 fluent management API

配置的 Function App 中删除 AzureWebJobsDashboard 应用程序设置
    var fnApp = await azure.AppServices.FunctionApps
         .Define("fnappname")
         .WithExistingAppServicePlan(fnAppPlan)
         .WithExistingResourceGroup(resourceGroup)
         .WithExistingStorageAccount(fnStorage)
         .WithRuntimeVersion("~2")
         .WithHttp20Enabled(true)
         .WithAppSetting("AzureWebJobsDashboard", null)
         .WithTags(tags)
         .CreateAsync();

我已经尝试将应用程序设置设置为 null 和空字符串,但这似乎没有任何区别,而且我没有看到明确删除设置的方法。

您可以使用 WithoutAppSetting("AzureWebJobsDashboard").