azure - 如何删除二头肌模板及其已部署的资源

标签 azure azure-devops azure-cli azure-bicep

如何删除或更新二头肌模板及其已部署的所有资源?就像我们可以删除或更新cloudformation和terraform模板

az 部署命令没有更新选项,并且在使用 az 部署删除时它不会删除资源

最佳答案

有。您需要使用Complete模式

az deployment group create -f ./main.bicep -g my-rg --mode Complete

正如所写here

In complete mode, Resource Manager deletes resources that exist in the resource group but aren't specified in the template.

关于azure - 如何删除二头肌模板及其已部署的资源,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68007894/

相关文章:

bash - 回车符添加到 Azure CLI -o tsv 输出 - 400 客户端错误 : Bad Request for url

Azure WebApp - 单个请求中的多个自定义域

azure - 是否可以在Release中获取Artifact Name?

Azure DevOps - Maven Pipeline 发布 Artifact

azure-devops - VSTS CI/CD 管道 NetStandard 子目录

azure - 无法通过 Azure 管理门户增加虚拟机大小

azure - 我们能否将 Azure blob 从一个存储帐户并行地从同一台计算机复制到其他存储帐户?

azure - 如何仅将 Azure Active Directory 身份验证添加到 Web 应用程序中的某些 Razor 页面?

azure - 无法通过 Cypress 加载我的 Azure 托管 Web 应用程序

json - 如何使用 Azure CLI 命令为 Azure Datafactory 创建 SQL 链接服务?