Difference between revisions of "Terraform resource: azurerm container registry"

From wikieduonline
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
* https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/container_registry
  
 +
* sku: [[Basic]], Standard and Premium
  
 +
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
 +
  }
 +
}
  
  
  
{{Registry}}
+
* {{ACR}}
 +
* {{Registry}}

Latest revision as of 18:23, 16 July 2024

  • sku: Basic, Standard and Premium
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: