【发布时间】:2020-07-02 10:44:50
【问题描述】:
如何通过 azure 中的 Terra-form 脚本检查 azure 资源组是否已经存在,如果不存在则创建 Terra-form 应该创建它?
通过 terraform 脚本检查 azure-resourcegroup 是否已经存在
【问题讨论】:
-
Terraform 是声明式的,而不是命令式的。使用 Terraform 时,您不需要检查现有资源,因为您正在创建一组具有相同生命周期的资源。您通常不会将资源添加到“可能”现有的资源组中。
标签: azure visual-studio-code azure-devops terraform terraform-provider-azure