如何删除或更新二头肌模板及其已部署的所有资源?就像我们可以删除或更新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/