Microsoft.ContainerRegistry registries template reference

Template format

To create a Microsoft.ContainerRegistry/registries resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.ContainerRegistry/registries",
  "apiVersion": "2017-10-01",
  "location": "string",
  "tags": {},
  "sku": {
    "name": "string"
  },
  "properties": {
    "adminUserEnabled": boolean,
    "storageAccount": {
      "id": "string"
    },
    "networkRuleSet": {
      "defaultAction": "string",
      "virtualNetworkRules": [
        {
          "action": "Allow",
          "id": "string"
        }
      ],
      "ipRules": [
        {
          "action": "Allow",
          "value": "string"
        }
      ]
    }
  },
  "resources": []
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.ContainerRegistry/registries object

Name Type Required Value
name string Yes The name of the container registry.
type enum Yes Microsoft.ContainerRegistry/registries
apiVersion enum Yes 2017-10-01
location string Yes The location of the resource. This cannot be changed after the resource is created.
tags object No The tags of the resource.
sku object Yes The SKU of the container registry. - Sku object
properties object Yes The properties of the container registry. - RegistryProperties object
resources array No webhooks replications

Sku object

Name Type Required Value
name enum Yes The SKU name of the container registry. Required for registry creation. - Classic, Basic, Standard, Premium

RegistryProperties object

Name Type Required Value
adminUserEnabled boolean No The value that indicates whether the admin user is enabled.
storageAccount object No The properties of the storage account for the container registry. Only applicable to Classic SKU. - StorageAccountProperties object
networkRuleSet object No The network rule set for a container registry. - NetworkRuleSet object

StorageAccountProperties object

Name Type Required Value
id string Yes The resource ID of the storage account.

NetworkRuleSet object

Name Type Required Value
defaultAction enum Yes The default action of allow or deny when no other rules match. - Allow or Deny
virtualNetworkRules array No The virtual network rules. - VirtualNetworkRule object
ipRules array No The IP ACL rules. - IPRule object

VirtualNetworkRule object

Name Type Required Value
action enum No The action of virtual network rule. - Allow
id string Yes Resource ID of a subnet, for example: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.

IPRule object

Name Type Required Value
action enum No The action of IP ACL rule. - Allow
value string Yes Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.

Quickstart templates

See Microsoft.Containerregistry templates in Azure Quickstart templates.