Skip to content

Commit

Permalink
interim checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
TomArcherMsft committed Nov 26, 2024
1 parent 43764a0 commit 4e09055
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ resource "azurerm_resource_group" "rg" {
name = random_pet.rg_name.id
}

resource "random_string" "name" {
length = 12
lower = true
upper = false
numeric = false
special = false
}
resource "azurerm_template_deployment" "example" {
name = "example-deployment"
name = coalesce(var.template_name, random_string.name.id)
resource_group_name = azurerm_resource_group.rg.name
deployment_mode = "Incremental"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,10 @@ variable "resource_group_location" {
type = string
default = "eastus"
description = "Location of the resource group."
}

variable "template_name" {
type = string
default = ""
description = "Name of the template deployment."
}

0 comments on commit 4e09055

Please sign in to comment.