Difference between revisions of "Terraform resource: azurerm container registry"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | resource "azurerm_container_registry" "example" { | ||
+ | location = local.resource_group.location | ||
+ | name = "aksacrtest${random_string.acr_suffix.result}" | ||
+ | resource_group_name = local.resource_group.name | ||
+ | sku = "Premium" | ||
+ | [[retention_policy]] { | ||
+ | days = 7 | ||
+ | enabled = true | ||
+ | } | ||
+ | } | ||
Revision as of 16:40, 15 July 2024
resource "azurerm_container_registry" "example" { location = local.resource_group.location name = "aksacrtest${random_string.acr_suffix.result}" resource_group_name = local.resource_group.name sku = "Premium"
retention_policy { days = 7 enabled = true } }
Advertising: