fix 201-aks-acr-identity

This commit is contained in:
hezijie
2023-02-21 10:14:26 +08:00
parent 30ab022102
commit ed79d1aa3b
5 changed files with 31 additions and 22 deletions

View File

@ -1,18 +1,27 @@
# The Azure Active Resource Manager Terraform provider
provider "azurerm" {
version = "=1.36.0"
}
# The Azure Active Directory Terraform provider
provider "azuread" {
version = "=0.6.0"
terraform {
required_version = ">= 1.3"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "1.36.0"
}
azuread = {
source = "hashicorp/azuread"
version = "0.6.0"
}
}
}
# Reference to the current subscription. Used when creating role assignments
data "azurerm_subscription" "current" {}
resource "random_pet" "rg" {
length = 1
prefix = var.name
}
# The main resource group for this deployment
resource "azurerm_resource_group" "default" {
name = "${var.name}-${var.environment}-rg"
location = "${var.location}"
name = "${random_pet.rg.id}-${var.environment}-rg"
location = var.location
}