Container Registry

Overview

{
	"container_registry": {
		"name": "crtest{env}",
		"sku": "Basic",

		"anonymous_pull": false,
		"admin_user": true,
		"keyvault": {
				"@key_vault_name": "kv-testcr-{env}",
				"secrets": {
					"url": "cr-url",
					"username": "cr-username",
					"password": "cr-passwd"
				}
		},
		"location": "northeurope",
		"external": false,
		"resource_group_name": "my-rg-name",
		"tags": { "example": "S0" }
	}
}

Container Registry Reference

KeyTypeDescription
name (required)stringThe name of the Container Regsitry (see how to name)
sku (required)Container Registry SKUThe name of the container registry SKU to use
zone_redundancyboolWhether or not zone redundancy is enabled (defaults to false)
anonymous_pullboolEnables registry-wide pull from unauthenticated clients (defaults to false)
admin_userboolWhether the admin user is enabled (defaults to true)
locationstringResource Location (defaults to the resource group location)
externalboolA reference to an existing Container Registry (defaults to false)
resource_group_namestringThe name of the resource group where the resource is located, only with external resources (defaults to the resource group of the deployment)
tagsobjectAdditional tags for the resource (defaults to no additional tags)

ContainerRegistrySku

ValueDescription
BasicBasic Container Registry
ClassicClassic Container Registry
StandardStandard Container Registry
PremiumPremium Container Registry

KeyVault

KeyTypeDescription
@key_vault_name (required)stringA reference to a key vault resource
secrets (required)SecretsThe secrets configuration

Secrets

KeyTypeDescription
url (required)stringThe name of the secret to hold the url of the container registry
username (required)stringThe name of the secret to hold the admin username of the container registry
password (required)stringThe name of the secret to hold the admin password of the container registry