#provider azurem.mgmt is Subscription A.
#prodiver azurem.corpapps is Subscription B.
我正在尝试Subscription A
使用 Provider创建 nsg 规则azurerm.mgmt
。这destination application security group
是 此订阅中Subscription B
的提供者。azurerm.corpapps
provider "azurerm" {
client_id = "${var.client_id}"
client_secret = "${var.client_secret}"
tenant_id = "${var.tenant_id}"
subscription_id = "${var.subscription}"
alias = "mgmt"
}
provider "azurerm" {
client_id = "${var.client_id}"
client_secret = "${var.client_secret}"
tenant_id = "${var.tenant_id}"
subscription_id = "${var.subscription_B}"
alias = "corpapps"
}