1. Packages
  2. Azure Classic
  3. API Docs
  4. storage
  5. ObjectReplication

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.storage.ObjectReplication

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    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=azure.storage.AccountBlobPropertiesArgs(
            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=azure.storage.AccountBlobPropertiesArgs(
            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=[azure.storage.ObjectReplicationRuleArgs(
            source_container_name=src_container.name,
            destination_container_name=dst_container.name,
        )])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v5/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

    new ObjectReplication(name: string, args: ObjectReplicationArgs, opts?: CustomResourceOptions);
    @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)
    @overload
    def ObjectReplication(resource_name: str,
                          args: ObjectReplicationArgs,
                          opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The ObjectReplication resource accepts the following input properties:

    DestinationStorageAccountId string
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    Rules List<ObjectReplicationRule>
    One or more rules blocks as defined below.
    SourceStorageAccountId string
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    DestinationStorageAccountId string
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    Rules []ObjectReplicationRuleArgs
    One or more rules blocks as defined below.
    SourceStorageAccountId string
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destinationStorageAccountId String
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    rules List<ObjectReplicationRule>
    One or more rules blocks as defined below.
    sourceStorageAccountId String
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destinationStorageAccountId string
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    rules ObjectReplicationRule[]
    One or more rules blocks as defined below.
    sourceStorageAccountId string
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destination_storage_account_id str
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    rules Sequence[ObjectReplicationRuleArgs]
    One or more rules blocks as defined below.
    source_storage_account_id str
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destinationStorageAccountId String
    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 rules blocks as defined below.
    sourceStorageAccountId String
    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:

    DestinationObjectReplicationId string
    The ID of the Object Replication in the destination storage account.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceObjectReplicationId string
    The ID of the Object Replication in the source storage account.
    DestinationObjectReplicationId string
    The ID of the Object Replication in the destination storage account.
    Id string
    The provider-assigned unique ID for this managed resource.
    SourceObjectReplicationId string
    The ID of the Object Replication in the source storage account.
    destinationObjectReplicationId String
    The ID of the Object Replication in the destination storage account.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceObjectReplicationId String
    The ID of the Object Replication in the source storage account.
    destinationObjectReplicationId string
    The ID of the Object Replication in the destination storage account.
    id string
    The provider-assigned unique ID for this managed resource.
    sourceObjectReplicationId string
    The ID of the Object Replication in the source storage account.
    destination_object_replication_id str
    The ID of the Object Replication in the destination storage account.
    id str
    The provider-assigned unique ID for this managed resource.
    source_object_replication_id str
    The ID of the Object Replication in the source storage account.
    destinationObjectReplicationId String
    The ID of the Object Replication in the destination storage account.
    id String
    The provider-assigned unique ID for this managed resource.
    sourceObjectReplicationId String
    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) -> ObjectReplication
    func 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)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    DestinationObjectReplicationId string
    The ID of the Object Replication in the destination storage account.
    DestinationStorageAccountId string
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    Rules List<ObjectReplicationRule>
    One or more rules blocks as defined below.
    SourceObjectReplicationId string
    The ID of the Object Replication in the source storage account.
    SourceStorageAccountId string
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    DestinationObjectReplicationId string
    The ID of the Object Replication in the destination storage account.
    DestinationStorageAccountId string
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    Rules []ObjectReplicationRuleArgs
    One or more rules blocks as defined below.
    SourceObjectReplicationId string
    The ID of the Object Replication in the source storage account.
    SourceStorageAccountId string
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destinationObjectReplicationId String
    The ID of the Object Replication in the destination storage account.
    destinationStorageAccountId String
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    rules List<ObjectReplicationRule>
    One or more rules blocks as defined below.
    sourceObjectReplicationId String
    The ID of the Object Replication in the source storage account.
    sourceStorageAccountId String
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destinationObjectReplicationId string
    The ID of the Object Replication in the destination storage account.
    destinationStorageAccountId string
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    rules ObjectReplicationRule[]
    One or more rules blocks as defined below.
    sourceObjectReplicationId string
    The ID of the Object Replication in the source storage account.
    sourceStorageAccountId string
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destination_object_replication_id str
    The ID of the Object Replication in the destination storage account.
    destination_storage_account_id str
    The ID of the destination storage account. Changing this forces a new Storage Object Replication to be created.
    rules Sequence[ObjectReplicationRuleArgs]
    One or more rules blocks as defined below.
    source_object_replication_id str
    The ID of the Object Replication in the source storage account.
    source_storage_account_id str
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.
    destinationObjectReplicationId String
    The ID of the Object Replication in the destination storage account.
    destinationStorageAccountId String
    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 rules blocks as defined below.
    sourceObjectReplicationId String
    The ID of the Object Replication in the source storage account.
    sourceStorageAccountId String
    The ID of the source storage account. Changing this forces a new Storage Object Replication to be created.

    Supporting Types

    ObjectReplicationRule, ObjectReplicationRuleArgs

    DestinationContainerName string
    The destination storage container name. Changing this forces a new Storage Object Replication to be created.
    SourceContainerName string
    The source storage container name. Changing this forces a new Storage Object Replication to be created.
    CopyBlobsCreatedAfter string
    The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects, Everything and time in RFC3339 format: 2006-01-02T15:04:00Z. Defaults to OnlyNewObjects.
    FilterOutBlobsWithPrefixes List<string>
    Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
    Name string
    DestinationContainerName string
    The destination storage container name. Changing this forces a new Storage Object Replication to be created.
    SourceContainerName string
    The source storage container name. Changing this forces a new Storage Object Replication to be created.
    CopyBlobsCreatedAfter string
    The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects, Everything and time in RFC3339 format: 2006-01-02T15:04:00Z. Defaults to OnlyNewObjects.
    FilterOutBlobsWithPrefixes []string
    Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
    Name string
    destinationContainerName String
    The destination storage container name. Changing this forces a new Storage Object Replication to be created.
    sourceContainerName String
    The source storage container name. Changing this forces a new Storage Object Replication to be created.
    copyBlobsCreatedAfter String
    The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects, Everything and time in RFC3339 format: 2006-01-02T15:04:00Z. Defaults to OnlyNewObjects.
    filterOutBlobsWithPrefixes List<String>
    Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
    name String
    destinationContainerName string
    The destination storage container name. Changing this forces a new Storage Object Replication to be created.
    sourceContainerName string
    The source storage container name. Changing this forces a new Storage Object Replication to be created.
    copyBlobsCreatedAfter string
    The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects, Everything and time in RFC3339 format: 2006-01-02T15:04:00Z. Defaults to OnlyNewObjects.
    filterOutBlobsWithPrefixes string[]
    Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
    name string
    destination_container_name str
    The destination storage container name. Changing this forces a new Storage Object Replication to be created.
    source_container_name str
    The source storage container name. Changing this forces a new Storage Object Replication to be created.
    copy_blobs_created_after str
    The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects, Everything and time in RFC3339 format: 2006-01-02T15:04:00Z. Defaults to OnlyNewObjects.
    filter_out_blobs_with_prefixes Sequence[str]
    Specifies a list of filters prefixes, the blobs whose names begin with which will be replicated.
    name str
    destinationContainerName String
    The destination storage container name. Changing this forces a new Storage Object Replication to be created.
    sourceContainerName String
    The source storage container name. Changing this forces a new Storage Object Replication to be created.
    copyBlobsCreatedAfter String
    The time after which the Block Blobs created will be copies to the destination. Possible values are OnlyNewObjects, Everything and time in RFC3339 format: 2006-01-02T15:04:00Z. Defaults to OnlyNewObjects.
    filterOutBlobsWithPrefixes List<String>
    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
    

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi