这是我想要实现的目标的一个基本示例。我有两个文件(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 blob 存储吗?我不想授予对我的存储帐户的公共访问权限。如果我允许公共访问,它工作正常,但是当我将访问限制为仅选定的 IP 时,它停止工作并且我无法连接到存储帐户。我附上了截图。