Microsoft.ContainerRegistry registries/replications

Bicep resource definition

The registries/replications resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerRegistry/registries/replications resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ContainerRegistry/registries/replications@2024-11-01-preview' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    regionEndpointEnabled: bool
    zoneRedundancy: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

Microsoft.ContainerRegistry/registries/replications

Name Description Value
location The location of the resource. This cannot be changed after the resource is created. string (required)
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9]*$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: registries
properties The properties of the replication. ReplicationProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

ReplicationProperties

Name Description Value
regionEndpointEnabled Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications. bool
zoneRedundancy Whether or not zone redundancy is enabled for this container registry replication 'Disabled'
'Enabled'

ResourceTags

Name Description Value

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
Azure Container Registry with Geo-replication Template A template for creating a new Azure Container Registry with geo-replication

ARM template resource definition

The registries/replications resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

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

{
  "type": "Microsoft.ContainerRegistry/registries/replications",
  "apiVersion": "2024-11-01-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "regionEndpointEnabled": "bool",
    "zoneRedundancy": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

Microsoft.ContainerRegistry/registries/replications

Name Description Value
apiVersion The api version '2024-11-01-preview'
location The location of the resource. This cannot be changed after the resource is created. string (required)
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9]*$ (required)
properties The properties of the replication. ReplicationProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ContainerRegistry/registries/replications'

ReplicationProperties

Name Description Value
regionEndpointEnabled Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications. bool
zoneRedundancy Whether or not zone redundancy is enabled for this container registry replication 'Disabled'
'Enabled'

ResourceTags

Name Description Value

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Azure Container Registry with Geo-replication Template

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

Terraform (AzAPI provider) resource definition

The registries/replications resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerRegistry/registries/replications resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerRegistry/registries/replications@2024-11-01-preview"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      regionEndpointEnabled = bool
      zoneRedundancy = "string"
    }
  })
}

Property values

Microsoft.ContainerRegistry/registries/replications

Name Description Value
location The location of the resource. This cannot be changed after the resource is created. string (required)
name The resource name string

Constraints:
Min length = 5
Max length = 5
Pattern = ^[a-zA-Z0-9]*$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: registries
properties The properties of the replication. ReplicationProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ContainerRegistry/registries/replications@2024-11-01-preview"

ReplicationProperties

Name Description Value
regionEndpointEnabled Specifies whether the replication's regional endpoint is enabled. Requests will not be routed to a replication whose regional endpoint is disabled, however its data will continue to be synced with other replications. bool
zoneRedundancy Whether or not zone redundancy is enabled for this container registry replication 'Disabled'
'Enabled'

ResourceTags

Name Description Value