Initial out
This commit is contained in:
23
quickstart/101-azure-container-registry/main.tf
Normal file
23
quickstart/101-azure-container-registry/main.tf
Normal 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"
|
||||
}
|
Reference in New Issue
Block a user