小编ati*_*dra的帖子

使用 terraform,如何使用 Azure 的 list/count 创建具有唯一且不同名称的多个相同类型的资源?

这是我想要实现的目标的一个基本示例。我有两个文件(main.tf)和(variable.tf),我想创建两个资源组,变量文件中是我希望资源组占用的名称列表。第一个资源组的名字,以后类似。所以请帮助我了解如何实现它。我正在使用 terraform v0.13。

main.tf 文件:

provider "azurerm" {
 features {}
}


resource "azurerm_resource_group" "test" {
  count    = 2
  name     = var.resource_group_name
  location = var.location
}
Run Code Online (Sandbox Code Playgroud)

变量.tf 文件:

  variable "resource_group_name" {
  description = "Default resource group name that the network will be created in."
  type        = list
  default     = ["asd-rg","asd2-rg"]

}



variable "location" {
  description = "The location/region where the core network will be created.
  default     = "westus"
}
Run Code Online (Sandbox Code Playgroud)

azure terraform terraform-provider-azure

5
推荐指数
1
解决办法
3万
查看次数

如何在不启用存储帐户的公共访问的情况下将 Azure 存储帐户连接到逻辑应用程序?

有人知道如何使用逻辑应用连接器和触发器连接到 Azure blob 存储吗?我不想授予对我的存储帐户的公共访问权限。如果我允许公共访问,它工作正常,但是当我将访问限制为仅选定的 IP 时,它停止工作并且我无法连接到存储帐户。我附上了截图。

错误信息

azure-logic-apps azure-storage-account azure-blob-trigger

4
推荐指数
1
解决办法
932
查看次数