我正在使用地形图管理订阅(子1)。
我有这个档案:
散射供应商。 tf
terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 2.25"
}
}
required_version = ">= 0.16.8"
backend "azurerm" {
resource_group_name = "my.resource_group"
storage_account_name = "my.storage_account_name "
container_name = "my.container_name"
key = "my.terraform.tfstate"
}
}
provider "azurerm" {
features {}
}
Inside my subscription (sub1) I have the resource group "my.resource_group" where I have my storage account "my.storage_account_name ", container "my.container_name" and where I keep my tfstates.
我想管理新的订阅(第2款),可能也做同样的事来保存这些笔记。 也就是说,在本次级2内设立一个新的资源小组,一个新的储存账户,一个新集装箱,并存放在该账户内。
我希望能够利用梯田在子1或次2内创造资源,并在我使用的订阅中保留斜线。
How can I achieve this and how do I have to change my providers.tf file to accomplish this?