Replication

class Replication : KotlinCustomResource

An object that represents a replication for a container registry. Uses Azure REST API version 2024-11-01-preview. In version 2.x of the Azure Native provider, it used API version 2022-12-01. Other available API versions: 2019-12-01-preview, 2020-11-01-preview, 2021-06-01-preview, 2021-08-01-preview, 2021-09-01, 2021-12-01-preview, 2022-02-01-preview, 2022-12-01, 2023-01-01-preview, 2023-06-01-preview, 2023-07-01, 2023-08-01-preview, 2023-11-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native containerregistry [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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" },
},
});
});
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
})
}
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());
}
}

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,
});
});
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
})
}
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());
}
}

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}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The location of the resource. This cannot be changed after the resource is created.

Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard

The provisioning state of the replication at the time the operation was called.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
val status: Output<StatusResponse>

The status of the replication at the time the operation was called.

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

The tags of the resource.

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val zoneRedundancy: Output<String>?

Whether or not zone redundancy is enabled for this container registry replication