1. Packages
  2. Azure Native v2
  3. API Docs
  4. containerregistry
  5. Replication
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.containerregistry.Replication

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

An object that represents a replication for a container registry. Azure REST API version: 2022-12-01. Prior API version in Azure Native 1.x: 2019-05-01.

Other available API versions: 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview, 2024-11-01-preview.

Example Usage

ReplicationCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var replication = new AzureNative.ContainerRegistry.Replication("replication", new()
    {
        Location = "eastus",
        RegistryName = "myRegistry",
        ReplicationName = "myReplication",
        ResourceGroupName = "myResourceGroup",
        Tags = 
        {
            { "key", "value" },
        },
    });

});
Copy
package main

import (
	containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerregistry.NewReplication(ctx, "replication", &containerregistry.ReplicationArgs{
			Location:          pulumi.String("eastus"),
			RegistryName:      pulumi.String("myRegistry"),
			ReplicationName:   pulumi.String("myReplication"),
			ResourceGroupName: pulumi.String("myResourceGroup"),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerregistry.Replication;
import com.pulumi.azurenative.containerregistry.ReplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var replication = new Replication("replication", ReplicationArgs.builder()
            .location("eastus")
            .registryName("myRegistry")
            .replicationName("myReplication")
            .resourceGroupName("myResourceGroup")
            .tags(Map.of("key", "value"))
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const replication = new azure_native.containerregistry.Replication("replication", {
    location: "eastus",
    registryName: "myRegistry",
    replicationName: "myReplication",
    resourceGroupName: "myResourceGroup",
    tags: {
        key: "value",
    },
});
Copy
import pulumi
import pulumi_azure_native as azure_native

replication = azure_native.containerregistry.Replication("replication",
    location="eastus",
    registry_name="myRegistry",
    replication_name="myReplication",
    resource_group_name="myResourceGroup",
    tags={
        "key": "value",
    })
Copy
resources:
  replication:
    type: azure-native:containerregistry:Replication
    properties:
      location: eastus
      registryName: myRegistry
      replicationName: myReplication
      resourceGroupName: myResourceGroup
      tags:
        key: value
Copy

ReplicationCreateZoneRedundant

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var replication = new AzureNative.ContainerRegistry.Replication("replication", new()
    {
        Location = "eastus",
        RegionEndpointEnabled = true,
        RegistryName = "myRegistry",
        ReplicationName = "myReplication",
        ResourceGroupName = "myResourceGroup",
        Tags = 
        {
            { "key", "value" },
        },
        ZoneRedundancy = AzureNative.ContainerRegistry.ZoneRedundancy.Enabled,
    });

});
Copy
package main

import (
	containerregistry "github.com/pulumi/pulumi-azure-native-sdk/containerregistry/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := containerregistry.NewReplication(ctx, "replication", &containerregistry.ReplicationArgs{
			Location:              pulumi.String("eastus"),
			RegionEndpointEnabled: pulumi.Bool(true),
			RegistryName:          pulumi.String("myRegistry"),
			ReplicationName:       pulumi.String("myReplication"),
			ResourceGroupName:     pulumi.String("myResourceGroup"),
			Tags: pulumi.StringMap{
				"key": pulumi.String("value"),
			},
			ZoneRedundancy: pulumi.String(containerregistry.ZoneRedundancyEnabled),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.containerregistry.Replication;
import com.pulumi.azurenative.containerregistry.ReplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var replication = new Replication("replication", ReplicationArgs.builder()
            .location("eastus")
            .regionEndpointEnabled(true)
            .registryName("myRegistry")
            .replicationName("myReplication")
            .resourceGroupName("myResourceGroup")
            .tags(Map.of("key", "value"))
            .zoneRedundancy("Enabled")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const replication = new azure_native.containerregistry.Replication("replication", {
    location: "eastus",
    regionEndpointEnabled: true,
    registryName: "myRegistry",
    replicationName: "myReplication",
    resourceGroupName: "myResourceGroup",
    tags: {
        key: "value",
    },
    zoneRedundancy: azure_native.containerregistry.ZoneRedundancy.Enabled,
});
Copy
import pulumi
import pulumi_azure_native as azure_native

replication = azure_native.containerregistry.Replication("replication",
    location="eastus",
    region_endpoint_enabled=True,
    registry_name="myRegistry",
    replication_name="myReplication",
    resource_group_name="myResourceGroup",
    tags={
        "key": "value",
    },
    zone_redundancy=azure_native.containerregistry.ZoneRedundancy.ENABLED)
Copy
resources:
  replication:
    type: azure-native:containerregistry:Replication
    properties:
      location: eastus
      regionEndpointEnabled: true
      registryName: myRegistry
      replicationName: myReplication
      resourceGroupName: myResourceGroup
      tags:
        key: value
      zoneRedundancy: Enabled
Copy

Create Replication Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Replication(name: string, args: ReplicationArgs, opts?: CustomResourceOptions);
@overload
def Replication(resource_name: str,
                args: ReplicationArgs,
                opts: Optional[ResourceOptions] = None)

@overload
def Replication(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                registry_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                location: Optional[str] = None,
                region_endpoint_enabled: Optional[bool] = None,
                replication_name: Optional[str] = None,
                tags: Optional[Mapping[str, str]] = None,
                zone_redundancy: Optional[Union[str, ZoneRedundancy]] = None)
func NewReplication(ctx *Context, name string, args ReplicationArgs, opts ...ResourceOption) (*Replication, error)
public Replication(string name, ReplicationArgs args, CustomResourceOptions? opts = null)
public Replication(String name, ReplicationArgs args)
public Replication(String name, ReplicationArgs args, CustomResourceOptions options)
type: azure-native:containerregistry:Replication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ReplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ReplicationArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ReplicationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ReplicationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ReplicationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var replicationResource = new AzureNative.Containerregistry.Replication("replicationResource", new()
{
    RegistryName = "string",
    ResourceGroupName = "string",
    Location = "string",
    RegionEndpointEnabled = false,
    ReplicationName = "string",
    Tags = 
    {
        { "string", "string" },
    },
    ZoneRedundancy = "string",
});
Copy
example, err := containerregistry.NewReplication(ctx, "replicationResource", &containerregistry.ReplicationArgs{
	RegistryName:          "string",
	ResourceGroupName:     "string",
	Location:              "string",
	RegionEndpointEnabled: false,
	ReplicationName:       "string",
	Tags: map[string]interface{}{
		"string": "string",
	},
	ZoneRedundancy: "string",
})
Copy
var replicationResource = new Replication("replicationResource", ReplicationArgs.builder()
    .registryName("string")
    .resourceGroupName("string")
    .location("string")
    .regionEndpointEnabled(false)
    .replicationName("string")
    .tags(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
    .zoneRedundancy("string")
    .build());
Copy
replication_resource = azure_native.containerregistry.Replication("replicationResource",
    registry_name=string,
    resource_group_name=string,
    location=string,
    region_endpoint_enabled=False,
    replication_name=string,
    tags={
        string: string,
    },
    zone_redundancy=string)
Copy
const replicationResource = new azure_native.containerregistry.Replication("replicationResource", {
    registryName: "string",
    resourceGroupName: "string",
    location: "string",
    regionEndpointEnabled: false,
    replicationName: "string",
    tags: {
        string: "string",
    },
    zoneRedundancy: "string",
});
Copy
type: azure-native:containerregistry:Replication
properties:
    location: string
    regionEndpointEnabled: false
    registryName: string
    replicationName: string
    resourceGroupName: string
    tags:
        string: string
    zoneRedundancy: string
Copy

Replication Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The Replication resource accepts the following input properties:

RegistryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the container registry.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location Changes to this property will trigger replacement. string
The location of the resource. This cannot be changed after the resource is created.
RegionEndpointEnabled bool
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.
ReplicationName Changes to this property will trigger replacement. string
The name of the replication.
Tags Dictionary<string, string>
The tags of the resource.
ZoneRedundancy string | Pulumi.AzureNative.ContainerRegistry.ZoneRedundancy
Whether or not zone redundancy is enabled for this container registry replication
RegistryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the container registry.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
Location Changes to this property will trigger replacement. string
The location of the resource. This cannot be changed after the resource is created.
RegionEndpointEnabled bool
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.
ReplicationName Changes to this property will trigger replacement. string
The name of the replication.
Tags map[string]string
The tags of the resource.
ZoneRedundancy string | ZoneRedundancy
Whether or not zone redundancy is enabled for this container registry replication
registryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the container registry.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. String
The location of the resource. This cannot be changed after the resource is created.
regionEndpointEnabled Boolean
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.
replicationName Changes to this property will trigger replacement. String
The name of the replication.
tags Map<String,String>
The tags of the resource.
zoneRedundancy String | ZoneRedundancy
Whether or not zone redundancy is enabled for this container registry replication
registryName
This property is required.
Changes to this property will trigger replacement.
string
The name of the container registry.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. string
The location of the resource. This cannot be changed after the resource is created.
regionEndpointEnabled boolean
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.
replicationName Changes to this property will trigger replacement. string
The name of the replication.
tags {[key: string]: string}
The tags of the resource.
zoneRedundancy string | ZoneRedundancy
Whether or not zone redundancy is enabled for this container registry replication
registry_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the container registry.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. str
The location of the resource. This cannot be changed after the resource is created.
region_endpoint_enabled bool
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.
replication_name Changes to this property will trigger replacement. str
The name of the replication.
tags Mapping[str, str]
The tags of the resource.
zone_redundancy str | ZoneRedundancy
Whether or not zone redundancy is enabled for this container registry replication
registryName
This property is required.
Changes to this property will trigger replacement.
String
The name of the container registry.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
location Changes to this property will trigger replacement. String
The location of the resource. This cannot be changed after the resource is created.
regionEndpointEnabled Boolean
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.
replicationName Changes to this property will trigger replacement. String
The name of the replication.
tags Map<String>
The tags of the resource.
zoneRedundancy String | "Enabled" | "Disabled"
Whether or not zone redundancy is enabled for this container registry replication

Outputs

All input properties are implicitly available as output properties. Additionally, the Replication resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
ProvisioningState string
The provisioning state of the replication at the time the operation was called.
Status Pulumi.AzureNative.ContainerRegistry.Outputs.StatusResponse
The status of the replication at the time the operation was called.
SystemData Pulumi.AzureNative.ContainerRegistry.Outputs.SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The type of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource.
ProvisioningState string
The provisioning state of the replication at the time the operation was called.
Status StatusResponse
The status of the replication at the time the operation was called.
SystemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
Type string
The type of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
provisioningState String
The provisioning state of the replication at the time the operation was called.
status StatusResponse
The status of the replication at the time the operation was called.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type String
The type of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource.
provisioningState string
The provisioning state of the replication at the time the operation was called.
status StatusResponse
The status of the replication at the time the operation was called.
systemData SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type string
The type of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource.
provisioning_state str
The provisioning state of the replication at the time the operation was called.
status StatusResponse
The status of the replication at the time the operation was called.
system_data SystemDataResponse
Metadata pertaining to creation and last modification of the resource.
type str
The type of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource.
provisioningState String
The provisioning state of the replication at the time the operation was called.
status Property Map
The status of the replication at the time the operation was called.
systemData Property Map
Metadata pertaining to creation and last modification of the resource.
type String
The type of the resource.

Supporting Types

StatusResponse
, StatusResponseArgs

DisplayStatus This property is required. string
The short label for the status.
Message This property is required. string
The detailed message for the status, including alerts and error messages.
Timestamp This property is required. string
The timestamp when the status was changed to the current value.
DisplayStatus This property is required. string
The short label for the status.
Message This property is required. string
The detailed message for the status, including alerts and error messages.
Timestamp This property is required. string
The timestamp when the status was changed to the current value.
displayStatus This property is required. String
The short label for the status.
message This property is required. String
The detailed message for the status, including alerts and error messages.
timestamp This property is required. String
The timestamp when the status was changed to the current value.
displayStatus This property is required. string
The short label for the status.
message This property is required. string
The detailed message for the status, including alerts and error messages.
timestamp This property is required. string
The timestamp when the status was changed to the current value.
display_status This property is required. str
The short label for the status.
message This property is required. str
The detailed message for the status, including alerts and error messages.
timestamp This property is required. str
The timestamp when the status was changed to the current value.
displayStatus This property is required. String
The short label for the status.
message This property is required. String
The detailed message for the status, including alerts and error messages.
timestamp This property is required. String
The timestamp when the status was changed to the current value.

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource modification (UTC).
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource modification (UTC).
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource modification (UTC).
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource modification (UTC).
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource modification (UTC).
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource modification (UTC).
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

ZoneRedundancy
, ZoneRedundancyArgs

Enabled
Enabled
Disabled
Disabled
ZoneRedundancyEnabled
Enabled
ZoneRedundancyDisabled
Disabled
Enabled
Enabled
Disabled
Disabled
Enabled
Enabled
Disabled
Disabled
ENABLED
Enabled
DISABLED
Disabled
"Enabled"
Enabled
"Disabled"
Disabled

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:containerregistry:Replication myReplication /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerRegistry/registries/{registryName}/replications/{replicationName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi