Initial out

This commit is contained in:
Tom Archer
2024-10-24 13:58:26 -07:00
parent 7579e9323c
commit d425200e96
5 changed files with 82 additions and 0 deletions

View File

@ -0,0 +1,23 @@
resource "random_pet" "rg_name" {
prefix = var.resource_group_name_prefix
}
resource "azurerm_resource_group" "rg" {
location = var.resource_group_location
name = random_pet.rg_name.id
}
resource "random_string" "acr_name" {
length = 5
lower = true
numeric = false
special = false
upper = false
}
resource "azurerm_container_registry" "example" {
name = "${random_string.acr_name.result}registry"
resource_group_name = azurerm_resource_group.rg.name
location = azurerm_resource_group.rg.location
sku = "Standard"
}