We recommend using Azure Native.
azure.storage.ObjectReplication
Explore with Pulumi AI
Manages a Storage Object Replication.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const src = new azure.core.ResourceGroup("src", {
    name: "srcResourceGroupName",
    location: "West Europe",
});
const srcAccount = new azure.storage.Account("src", {
    name: "srcstorageaccount",
    resourceGroupName: src.name,
    location: src.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
    blobProperties: {
        versioningEnabled: true,
        changeFeedEnabled: true,
    },
});
const srcContainer = new azure.storage.Container("src", {
    name: "srcstrcontainer",
    storageAccountName: srcAccount.name,
    containerAccessType: "private",
});
const dst = new azure.core.ResourceGroup("dst", {
    name: "dstResourceGroupName",
    location: "East US",
});
const dstAccount = new azure.storage.Account("dst", {
    name: "dststorageaccount",
    resourceGroupName: dst.name,
    location: dst.location,
    accountTier: "Standard",
    accountReplicationType: "LRS",
    blobProperties: {
        versioningEnabled: true,
        changeFeedEnabled: true,
    },
});
const dstContainer = new azure.storage.Container("dst", {
    name: "dststrcontainer",
    storageAccountName: dstAccount.name,
    containerAccessType: "private",
});
const example = new azure.storage.ObjectReplication("example", {
    sourceStorageAccountId: srcAccount.id,
    destinationStorageAccountId: dstAccount.id,
    rules: [{
        sourceContainerName: srcContainer.name,
        destinationContainerName: dstContainer.name,
    }],
});
import pulumi
import pulumi_azure as azure
src = azure.core.ResourceGroup("src",
    name="srcResourceGroupName",
    location="West Europe")
src_account = azure.storage.Account("src",
    name="srcstorageaccount",
    resource_group_name=src.name,
    location=src.location,
    account_tier="Standard",
    account_replication_type="LRS",
    blob_properties={
        "versioning_enabled": True,
        "change_feed_enabled": True,
    })
src_container = azure.storage.Container("src",
    name="srcstrcontainer",
    storage_account_name=src_account.name,
    container_access_type="private")
dst = azure.core.ResourceGroup("dst",
    name="dstResourceGroupName",
    location="East US")
dst_account = azure.storage.Account("dst",
    name="dststorageaccount",
    resource_group_name=dst.name,
    location=dst.location,
    account_tier="Standard",
    account_replication_type="LRS",
    blob_properties={
        "versioning_enabled": True,
        "change_feed_enabled": True,
    })
dst_container = azure.storage.Container("dst",
    name="dststrcontainer",
    storage_account_name=dst_account.name,
    container_access_type="private")
example = azure.storage.ObjectReplication("example",
    source_storage_account_id=src_account.id,
    destination_storage_account_id=dst_account.id,
    rules=[{
        "source_container_name": src_container.name,
        "destination_container_name": dst_container.name,
    }])
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/storage"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		src, err := core.NewResourceGroup(ctx, "src", &core.ResourceGroupArgs{
			Name:     pulumi.String("srcResourceGroupName"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		srcAccount, err := storage.NewAccount(ctx, "src", &storage.AccountArgs{
			Name:                   pulumi.String("srcstorageaccount"),
			ResourceGroupName:      src.Name,
			Location:               src.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
			BlobProperties: &storage.AccountBlobPropertiesArgs{
				VersioningEnabled: pulumi.Bool(true),
				ChangeFeedEnabled: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		srcContainer, err := storage.NewContainer(ctx, "src", &storage.ContainerArgs{
			Name:                pulumi.String("srcstrcontainer"),
			StorageAccountName:  srcAccount.Name,
			ContainerAccessType: pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		dst, err := core.NewResourceGroup(ctx, "dst", &core.ResourceGroupArgs{
			Name:     pulumi.String("dstResourceGroupName"),
			Location: pulumi.String("East US"),
		})
		if err != nil {
			return err
		}
		dstAccount, err := storage.NewAccount(ctx, "dst", &storage.AccountArgs{
			Name:                   pulumi.String("dststorageaccount"),
			ResourceGroupName:      dst.Name,
			Location:               dst.Location,
			AccountTier:            pulumi.String("Standard"),
			AccountReplicationType: pulumi.String("LRS"),
			BlobProperties: &storage.AccountBlobPropertiesArgs{
				VersioningEnabled: pulumi.Bool(true),
				ChangeFeedEnabled: pulumi.Bool(true),
			},
		})
		if err != nil {
			return err
		}
		dstContainer, err := storage.NewContainer(ctx, "dst", &storage.ContainerArgs{
			Name:                pulumi.String("dststrcontainer"),
			StorageAccountName:  dstAccount.Name,
			ContainerAccessType: pulumi.String("private"),
		})
		if err != nil {
			return err
		}
		_, err = storage.NewObjectReplication(ctx, "example", &storage.ObjectReplicationArgs{
			SourceStorageAccountId:      srcAccount.ID(),
			DestinationStorageAccountId: dstAccount.ID(),
			Rules: storage.ObjectReplicationRuleArray{
				&storage.ObjectReplicationRuleArgs{
					SourceContainerName:      srcContainer.Name,
					DestinationContainerName: dstContainer.Name,
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var src = new Azure.Core.ResourceGroup("src", new()
    {
        Name = "srcResourceGroupName",
        Location = "West Europe",
    });
    var srcAccount = new Azure.Storage.Account("src", new()
    {
        Name = "srcstorageaccount",
        ResourceGroupName = src.Name,
        Location = src.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
        BlobProperties = new Azure.Storage.Inputs.AccountBlobPropertiesArgs
        {
            VersioningEnabled = true,
            ChangeFeedEnabled = true,
        },
    });
    var srcContainer = new Azure.Storage.Container("src", new()
    {
        Name = "srcstrcontainer",
        StorageAccountName = srcAccount.Name,
        ContainerAccessType = "private",
    });
    var dst = new Azure.Core.ResourceGroup("dst", new()
    {
        Name = "dstResourceGroupName",
        Location = "East US",
    });
    var dstAccount = new Azure.Storage.Account("dst", new()
    {
        Name = "dststorageaccount",
        ResourceGroupName = dst.Name,
        Location = dst.Location,
        AccountTier = "Standard",
        AccountReplicationType = "LRS",
        BlobProperties = new Azure.Storage.Inputs.AccountBlobPropertiesArgs
        {
            VersioningEnabled = true,
            ChangeFeedEnabled = true,
        },
    });
    var dstContainer = new Azure.Storage.Container("dst", new()
    {
        Name = "dststrcontainer",
        StorageAccountName = dstAccount.Name,
        ContainerAccessType = "private",
    });
    var example = new Azure.Storage.ObjectReplication("example", new()
    {
        SourceStorageAccountId = srcAccount.Id,
        DestinationStorageAccountId = dstAccount.Id,
        Rules = new[]
        {
            new Azure.Storage.Inputs.ObjectReplicationRuleArgs
            {
                SourceContainerName = srcContainer.Name,
                DestinationContainerName = dstContainer.Name,
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.storage.Account;
import com.pulumi.azure.storage.AccountArgs;
import com.pulumi.azure.storage.inputs.AccountBlobPropertiesArgs;
import com.pulumi.azure.storage.Container;
import com.pulumi.azure.storage.ContainerArgs;
import com.pulumi.azure.storage.ObjectReplication;
import com.pulumi.azure.storage.ObjectReplicationArgs;
import com.pulumi.azure.storage.inputs.ObjectReplicationRuleArgs;
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 src = new ResourceGroup("src", ResourceGroupArgs.builder()
            .name("srcResourceGroupName")
            .location("West Europe")
            .build());
        var srcAccount = new Account("srcAccount", AccountArgs.builder()
            .name("srcstorageaccount")
            .resourceGroupName(src.name())
            .location(src.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .blobProperties(AccountBlobPropertiesArgs.builder()
                .versioningEnabled(true)
                .changeFeedEnabled(true)
                .build())
            .build());
        var srcContainer = new Container("srcContainer", ContainerArgs.builder()
            .name("srcstrcontainer")
            .storageAccountName(srcAccount.name())
            .containerAccessType("private")
            .build());
        var dst = new ResourceGroup("dst", ResourceGroupArgs.builder()
            .name("dstResourceGroupName")
            .location("East US")
            .build());
        var dstAccount = new Account("dstAccount", AccountArgs.builder()
            .name("dststorageaccount")
            .resourceGroupName(dst.name())
            .location(dst.location())
            .accountTier("Standard")
            .accountReplicationType("LRS")
            .blobProperties(AccountBlobPropertiesArgs.builder()
                .versioningEnabled(true)
                .changeFeedEnabled(true)
                .build())
            .build());
        var dstContainer = new Container("dstContainer", ContainerArgs.builder()
            .name("dststrcontainer")
            .storageAccountName(dstAccount.name())
            .containerAccessType("private")
            .build());
        var example = new ObjectReplication("example", ObjectReplicationArgs.builder()
            .sourceStorageAccountId(srcAccount.id())
            .destinationStorageAccountId(dstAccount.id())
            .rules(ObjectReplicationRuleArgs.builder()
                .sourceContainerName(srcContainer.name())
                .destinationContainerName(dstContainer.name())
                .build())
            .build());
    }
}
resources:
  src:
    type: azure:core:ResourceGroup
    properties:
      name: srcResourceGroupName
      location: West Europe
  srcAccount:
    type: azure:storage:Account
    name: src
    properties:
      name: srcstorageaccount
      resourceGroupName: ${src.name}
      location: ${src.location}
      accountTier: Standard
      accountReplicationType: LRS
      blobProperties:
        versioningEnabled: true
        changeFeedEnabled: true
  srcContainer:
    type: azure:storage:Container
    name: src
    properties:
      name: srcstrcontainer
      storageAccountName: ${srcAccount.name}
      containerAccessType: private
  dst:
    type: azure:core:ResourceGroup
    properties:
      name: dstResourceGroupName
      location: East US
  dstAccount:
    type: azure:storage:Account
    name: dst
    properties:
      name: dststorageaccount
      resourceGroupName: ${dst.name}
      location: ${dst.location}
      accountTier: Standard
      accountReplicationType: LRS
      blobProperties:
        versioningEnabled: true
        changeFeedEnabled: true
  dstContainer:
    type: azure:storage:Container
    name: dst
    properties:
      name: dststrcontainer
      storageAccountName: ${dstAccount.name}
      containerAccessType: private
  example:
    type: azure:storage:ObjectReplication
    properties:
      sourceStorageAccountId: ${srcAccount.id}
      destinationStorageAccountId: ${dstAccount.id}
      rules:
        - sourceContainerName: ${srcContainer.name}
          destinationContainerName: ${dstContainer.name}
Create ObjectReplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ObjectReplication(name: string, args: ObjectReplicationArgs, opts?: CustomResourceOptions);@overload
def ObjectReplication(resource_name: str,
                      args: ObjectReplicationArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def ObjectReplication(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      destination_storage_account_id: Optional[str] = None,
                      rules: Optional[Sequence[ObjectReplicationRuleArgs]] = None,
                      source_storage_account_id: Optional[str] = None)func NewObjectReplication(ctx *Context, name string, args ObjectReplicationArgs, opts ...ResourceOption) (*ObjectReplication, error)public ObjectReplication(string name, ObjectReplicationArgs args, CustomResourceOptions? opts = null)
public ObjectReplication(String name, ObjectReplicationArgs args)
public ObjectReplication(String name, ObjectReplicationArgs args, CustomResourceOptions options)
type: azure:storage:ObjectReplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ObjectReplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ObjectReplicationArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ObjectReplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectReplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectReplicationArgs
- 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 objectReplicationResource = new Azure.Storage.ObjectReplication("objectReplicationResource", new()
{
    DestinationStorageAccountId = "string",
    Rules = new[]
    {
        new Azure.Storage.Inputs.ObjectReplicationRuleArgs
        {
            DestinationContainerName = "string",
            SourceContainerName = "string",
            CopyBlobsCreatedAfter = "string",
            FilterOutBlobsWithPrefixes = new[]
            {
                "string",
            },
            Name = "string",
        },
    },
    SourceStorageAccountId = "string",
});
example, err := storage.NewObjectReplication(ctx, "objectReplicationResource", &storage.ObjectReplicationArgs{
	DestinationStorageAccountId: pulumi.String("string"),
	Rules: storage.ObjectReplicationRuleArray{
		&storage.ObjectReplicationRuleArgs{
			DestinationContainerName: pulumi.String("string"),
			SourceContainerName:      pulumi.String("string"),
			CopyBlobsCreatedAfter:    pulumi.String("string"),
			FilterOutBlobsWithPrefixes: pulumi.StringArray{
				pulumi.String("string"),
			},
			Name: pulumi.String("string"),
		},
	},
	SourceStorageAccountId: pulumi.String("string"),
})
var objectReplicationResource = new ObjectReplication("objectReplicationResource", ObjectReplicationArgs.builder()
    .destinationStorageAccountId("string")
    .rules(ObjectReplicationRuleArgs.builder()
        .destinationContainerName("string")
        .sourceContainerName("string")
        .copyBlobsCreatedAfter("string")
        .filterOutBlobsWithPrefixes("string")
        .name("string")
        .build())
    .sourceStorageAccountId("string")
    .build());
object_replication_resource = azure.storage.ObjectReplication("objectReplicationResource",
    destination_storage_account_id="string",
    rules=[{
        "destination_container_name": "string",
        "source_container_name": "string",
        "copy_blobs_created_after": "string",
        "filter_out_blobs_with_prefixes": ["string"],
        "name": "string",
    }],
    source_storage_account_id="string")
const objectReplicationResource = new azure.storage.ObjectReplication("objectReplicationResource", {
    destinationStorageAccountId: "string",
    rules: [{
        destinationContainerName: "string",
        sourceContainerName: "string",
        copyBlobsCreatedAfter: "string",
        filterOutBlobsWithPrefixes: ["string"],
        name: "string",
    }],
    sourceStorageAccountId: "string",
});
type: azure:storage:ObjectReplication
properties:
    destinationStorageAccountId: string
    rules:
        - copyBlobsCreatedAfter: string
          destinationContainerName: string
          filterOutBlobsWithPrefixes:
            - string
          name: string
          sourceContainerName: string
    sourceStorageAccountId: string
ObjectReplication 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 ObjectReplication resource accepts the following input properties:
- DestinationStorage stringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- Rules
List<ObjectReplication Rule> 
- One or more rulesblocks as defined below.
- SourceStorage stringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- DestinationStorage stringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- Rules
[]ObjectReplication Rule Args 
- One or more rulesblocks as defined below.
- SourceStorage stringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destinationStorage StringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules
List<ObjectReplication Rule> 
- One or more rulesblocks as defined below.
- sourceStorage StringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destinationStorage stringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules
ObjectReplication Rule[] 
- One or more rulesblocks as defined below.
- sourceStorage stringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destination_storage_ straccount_ id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules
Sequence[ObjectReplication Rule Args] 
- One or more rulesblocks as defined below.
- source_storage_ straccount_ id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destinationStorage StringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules List<Property Map>
- One or more rulesblocks as defined below.
- sourceStorage StringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the ObjectReplication resource produces the following output properties:
- DestinationObject stringReplication Id 
- The ID of the Object Replication in the destination storage account.
- Id string
- The provider-assigned unique ID for this managed resource.
- SourceObject stringReplication Id 
- The ID of the Object Replication in the source storage account.
- DestinationObject stringReplication Id 
- The ID of the Object Replication in the destination storage account.
- Id string
- The provider-assigned unique ID for this managed resource.
- SourceObject stringReplication Id 
- The ID of the Object Replication in the source storage account.
- destinationObject StringReplication Id 
- The ID of the Object Replication in the destination storage account.
- id String
- The provider-assigned unique ID for this managed resource.
- sourceObject StringReplication Id 
- The ID of the Object Replication in the source storage account.
- destinationObject stringReplication Id 
- The ID of the Object Replication in the destination storage account.
- id string
- The provider-assigned unique ID for this managed resource.
- sourceObject stringReplication Id 
- The ID of the Object Replication in the source storage account.
- destination_object_ strreplication_ id 
- The ID of the Object Replication in the destination storage account.
- id str
- The provider-assigned unique ID for this managed resource.
- source_object_ strreplication_ id 
- The ID of the Object Replication in the source storage account.
- destinationObject StringReplication Id 
- The ID of the Object Replication in the destination storage account.
- id String
- The provider-assigned unique ID for this managed resource.
- sourceObject StringReplication Id 
- The ID of the Object Replication in the source storage account.
Look up Existing ObjectReplication Resource
Get an existing ObjectReplication resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ObjectReplicationState, opts?: CustomResourceOptions): ObjectReplication@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        destination_object_replication_id: Optional[str] = None,
        destination_storage_account_id: Optional[str] = None,
        rules: Optional[Sequence[ObjectReplicationRuleArgs]] = None,
        source_object_replication_id: Optional[str] = None,
        source_storage_account_id: Optional[str] = None) -> ObjectReplicationfunc GetObjectReplication(ctx *Context, name string, id IDInput, state *ObjectReplicationState, opts ...ResourceOption) (*ObjectReplication, error)public static ObjectReplication Get(string name, Input<string> id, ObjectReplicationState? state, CustomResourceOptions? opts = null)public static ObjectReplication get(String name, Output<String> id, ObjectReplicationState state, CustomResourceOptions options)resources:  _:    type: azure:storage:ObjectReplication    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- DestinationObject stringReplication Id 
- The ID of the Object Replication in the destination storage account.
- DestinationStorage stringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- Rules
List<ObjectReplication Rule> 
- One or more rulesblocks as defined below.
- SourceObject stringReplication Id 
- The ID of the Object Replication in the source storage account.
- SourceStorage stringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- DestinationObject stringReplication Id 
- The ID of the Object Replication in the destination storage account.
- DestinationStorage stringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- Rules
[]ObjectReplication Rule Args 
- One or more rulesblocks as defined below.
- SourceObject stringReplication Id 
- The ID of the Object Replication in the source storage account.
- SourceStorage stringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destinationObject StringReplication Id 
- The ID of the Object Replication in the destination storage account.
- destinationStorage StringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules
List<ObjectReplication Rule> 
- One or more rulesblocks as defined below.
- sourceObject StringReplication Id 
- The ID of the Object Replication in the source storage account.
- sourceStorage StringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destinationObject stringReplication Id 
- The ID of the Object Replication in the destination storage account.
- destinationStorage stringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules
ObjectReplication Rule[] 
- One or more rulesblocks as defined below.
- sourceObject stringReplication Id 
- The ID of the Object Replication in the source storage account.
- sourceStorage stringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destination_object_ strreplication_ id 
- The ID of the Object Replication in the destination storage account.
- destination_storage_ straccount_ id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules
Sequence[ObjectReplication Rule Args] 
- One or more rulesblocks as defined below.
- source_object_ strreplication_ id 
- The ID of the Object Replication in the source storage account.
- source_storage_ straccount_ id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
- destinationObject StringReplication Id 
- The ID of the Object Replication in the destination storage account.
- destinationStorage StringAccount Id 
- The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
- rules List<Property Map>
- One or more rulesblocks as defined below.
- sourceObject StringReplication Id 
- The ID of the Object Replication in the source storage account.
- sourceStorage StringAccount Id 
- The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
Supporting Types
ObjectReplicationRule, ObjectReplicationRuleArgs      
- DestinationContainer stringName 
- The destination storage container name.
- SourceContainer stringName 
- The source storage container name.
- CopyBlobs stringCreated After 
- The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects,Everythingand time in RFC3339 format:2006-01-02T15:04:00Z. Defaults toOnlyNewObjects.
- FilterOut List<string>Blobs With Prefixes 
- Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
- Name string
- DestinationContainer stringName 
- The destination storage container name.
- SourceContainer stringName 
- The source storage container name.
- CopyBlobs stringCreated After 
- The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects,Everythingand time in RFC3339 format:2006-01-02T15:04:00Z. Defaults toOnlyNewObjects.
- FilterOut []stringBlobs With Prefixes 
- Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
- Name string
- destinationContainer StringName 
- The destination storage container name.
- sourceContainer StringName 
- The source storage container name.
- copyBlobs StringCreated After 
- The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects,Everythingand time in RFC3339 format:2006-01-02T15:04:00Z. Defaults toOnlyNewObjects.
- filterOut List<String>Blobs With Prefixes 
- Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
- name String
- destinationContainer stringName 
- The destination storage container name.
- sourceContainer stringName 
- The source storage container name.
- copyBlobs stringCreated After 
- The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects,Everythingand time in RFC3339 format:2006-01-02T15:04:00Z. Defaults toOnlyNewObjects.
- filterOut string[]Blobs With Prefixes 
- Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
- name string
- destination_container_ strname 
- The destination storage container name.
- source_container_ strname 
- The source storage container name.
- copy_blobs_ strcreated_ after 
- The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects,Everythingand time in RFC3339 format:2006-01-02T15:04:00Z. Defaults toOnlyNewObjects.
- filter_out_ Sequence[str]blobs_ with_ prefixes 
- Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
- name str
- destinationContainer StringName 
- The destination storage container name.
- sourceContainer StringName 
- The source storage container name.
- copyBlobs StringCreated After 
- The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects,Everythingand time in RFC3339 format:2006-01-02T15:04:00Z. Defaults toOnlyNewObjects.
- filterOut List<String>Blobs With Prefixes 
- Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
- name String
Import
Storage Object Replication Policies can be imported using the resource id, e.g.
$ pulumi import azure:storage/objectReplication:ObjectReplication example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Storage/storageAccounts/storageAccount1/objectReplicationPolicies/objectReplicationPolicy1;/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group2/providers/Microsoft.Storage/storageAccounts/storageAccount2/objectReplicationPolicies/objectReplicationPolicy2
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.