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

The following quickstart templates deploy this resource type.

Template Description
Azure Container Registry Template

Deploy to Azure
A template for creating a new Azure Container Registry.
Azure Container Registry with Geo-replication Template

Deploy to Azure
A template for creating a new Azure Container Registry with geo-replication
Jenkins to Azure Container Registry

Deploy to Azure
This template allows you to deploy an instance of Jenkins on a DS1_v2 size Linux Ubuntu 14.04 LTS VM and an Azure Container Registry. It also includes an optional ACR pipeline.
Advanced template for Azure Machine Learning workspace

Deploy to Azure
A template that creates Azure Machine Learning workspace with private endpoints and resources behind VNET
Enable encryption at rest for Azure Machine Learning

Deploy to Azure
A template that creates a new Azure Machine Learning workspace. Optionally, you can enable encryption for data at rest in the workspace, and data stored by the workspace in Azure Cosmos DB.
Create an AKS compute target with a Private IP address.

Deploy to Azure
This template creates an AKS compute target in given Azure Machine Learning service workspace with a private IP address.
Azure Spinnaker to Kubernetes

Deploy to Azure
[DEPRECATED] Please use the 'Azure Spinnaker' or 'Continuous Deployment to Kubernetes' template instead.
Continuous Deployment to Kubernetes

Deploy to Azure
This template allows you to deploy and configure a DevOps pipeline from an Azure Container Registry to a Kubernetes cluster. It deploys an instance of Jenkins on a Linux Ubuntu 14.04 LTS VM and an instance of Spinnaker on the same Kubernetes cluster that your pipeline will target. The Jenkins instance will include a basic pipeline that checks out a user-provided git repository, builds the Docker container based on the Dockerfile at the root of the repo, and pushes the image to the provisioned Azure Container Registry. The Spinnaker instance will include a basic pipeline that is triggered by any new tag in the registry and deploys the image to the provisioned Kubernetes cluster.
CI/CD using Jenkins on Azure Container Service (AKS)

Deploy to Azure
Containers make it very easy for you to continuously build and deploy your applications. By orchestrating deployment of those containers using Kubernetes in Azure Container Service, you can achieve replicable, manageable clusters of containers. By setting up a continuous build to produce your container images and orchestration, you can increase the speed and reliability of your deployment.