Skip to content

Container Registry#

Template checks

Create or update a Container Registry.

Parameters#

Parameter name Required Description
registryName Yes Required. The name of the container registry.
location No Optional. The location to deploy the container registry.
registrySku No Optional. The container registry SKU.
tags No Optional. Tags to apply to the resource.

registryName#

Parameter Setting

Required. The name of the container registry.

location#

Parameter Setting

Optional. The location to deploy the container registry.

  • Default value: [resourceGroup().location]

registrySku#

Parameter Setting

Optional. The container registry SKU.

  • Default value: Basic

  • Allowed values: Basic, Standard, Premium

tags#

Parameter Setting

Optional. Tags to apply to the resource.

Snippets#

Parameter file#

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
    "contentVersion": "1.0.0.0",
    "metadata": {
        "template": "templates/acr/v1/template.json"
    },
    "parameters": {
        "registryName": {
            "value": "<name>"
        },
        "registrySku": {
            "value": "Basic"
        },
        "tags": {
            "value": {
                "service": "<service_name>",
                "env": "prod"
            }
        }
    }
}

Command line#

PowerShell#

New-AzResourceGroupDeployment -Name <deployment-name> -ResourceGroupName <resource-group-name> -TemplateFile <path-to-template> -TemplateParameterFile <path-to-templateparameter>

Azure CLI#

az group deployment create --name <deployment-name> --resource-group <resource-group-name> --template-file <path-to-template> --parameters @<path-to-templateparameterfile>

Last update: 2021-10-22