fix example (#176)

This commit is contained in:
Dingjia Chen
2023-02-24 01:23:15 -06:00
committed by GitHub
parent 2bbd727b41
commit b2d0dbc2e7
6 changed files with 58 additions and 36 deletions

View File

@ -1,11 +1,12 @@
provider "azurerm" {
version = "=1.36.1"
}
# Reference to the current subscription. Used when creating role assignments
data "azurerm_subscription" "current" {}
resource "azurerm_resource_group" "default" {
name = "${var.name}-${var.environment}-rg"
location = "${var.location}"
name = "${random_pet.prefix.id}-${var.environment}-rg"
location = var.location
}
resource "random_pet" "prefix" {
prefix = var.prefix
length = 2
}