【问题标题】:Cannot delete Azure Function slot无法删除 Azure 函数槽
【发布时间】:2021-04-06 11:09:13
【问题描述】:

我想删除连接到 Elastic Premium 应用服务计划的 Azure Function 部署槽。但是,我似乎无法删除该广告位。

尝试使用 Azure CLI 手动删除它时,我收到以下错误:'Operation returned an invalid status code 'Precondition Failed'。在 Azure 门户中,它只是简单地说“无法删除插槽 name”。

我不知道发生了什么。任何人都可以帮忙吗? :)

更新:这是完整的回复:"Code":"PreconditionFailed","Message":"This slot has TestingInProduction rules and receives some production traffic and cannot be deleted."

【问题讨论】:

    标签: azure-functions


    【解决方案1】:

    我可以重现您的错误,您只需将TRAFFIC 设置为0。修改后别忘了点击Save

    那么就可以使用这个命令删除成功了:

    az functionapp deployment slot delete --name <your-functionapp-name> --resource-group <your-resource-group-name> --slot <slot-name>
    

    【讨论】:

      猜你喜欢
      • 2019-03-17
      • 2022-12-10
      • 1970-01-01
      • 2021-11-24
      • 1970-01-01
      • 1970-01-01
      • 2019-02-15
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多