201-aks-rbac-dashboard-admin patch (#148)

* fix 201-aks-rbac-dashboard-admin

* remove azuread provider block

* rename aks resource to main

---------

Co-authored-by: zjhe <hezijie@microsoft.com>
This commit is contained in:
lonegunmanb
2023-02-22 09:32:13 +08:00
committed by GitHub
parent 6e59008b91
commit 343534d2ec
6 changed files with 78 additions and 71 deletions

View File

@ -1,18 +1,14 @@
# The Azure Active Resource Manager Terraform provider
provider "azurerm" {
version = "=1.36.1"
}
# The Azure Active Directory Terraform provider
provider "azuread" {
version = "=0.6.0"
}
# Reference to the current subscription. Used when creating role assignments
data "azurerm_subscription" "current" {}
resource "random_string" "rg" {
length = 8
special = false
upper = false
}
# The main resource group for this deployment
resource "azurerm_resource_group" "default" {
name = "${var.name}-${var.environment}-rg"
location = "${var.location}"
name = "${var.name}-${var.environment}-${random_string.rg.result}-rg"
location = var.location
}