Added randomness of rg name, links to ref docs

This commit is contained in:
Tom Archer
2021-08-07 22:17:06 -07:00
parent abc1bd8bbe
commit 2c79eb6a23
4 changed files with 17 additions and 13 deletions

View File

@ -14,7 +14,9 @@ provider "azurerm" {
features {}
}
resource "random_uuid" "uuid" {}
resource "azurerm_resource_group" "rg" {
name = var.resource_group_name
location = var.resource_group_location
}
name = "${var.resource_group_name_prefix}-${random_uuid.uuid.result}"
location = var.resource_group_location
}