Show / Hide Table of Contents

Class ReplicationPolicy

Manages a Azure Site Recovery replication policy within a recovery vault. Replication policies define the frequency at which recovery points are created and how long they are stored.

Example Usage

using Pulumi;
using Azure = Pulumi.Azure;

class MyStack : Stack
{
public MyStack()
{
    var secondary = new Azure.Core.ResourceGroup("secondary", new Azure.Core.ResourceGroupArgs
    {
        Location = "East US",
    });
    var vault = new Azure.RecoveryServices.Vault("vault", new Azure.RecoveryServices.VaultArgs
    {
        Location = secondary.Location,
        ResourceGroupName = secondary.Name,
        Sku = "Standard",
    });
    var policy = new Azure.SiteRecovery.ReplicationPolicy("policy", new Azure.SiteRecovery.ReplicationPolicyArgs
    {
        ResourceGroupName = secondary.Name,
        RecoveryVaultName = vault.Name,
        RecoveryPointRetentionInMinutes = 24 * 60,
        ApplicationConsistentSnapshotFrequencyInMinutes = 4 * 60,
    });
}

}
Inheritance
System.Object
Resource
CustomResource
ReplicationPolicy
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.SiteRecovery
Assembly: Pulumi.Azure.dll
Syntax
public class ReplicationPolicy : CustomResource

Constructors

View Source

ReplicationPolicy(String, ReplicationPolicyArgs, CustomResourceOptions)

Create a ReplicationPolicy resource with the given unique name, arguments, and options.

Declaration
public ReplicationPolicy(string name, ReplicationPolicyArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

ReplicationPolicyArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

ApplicationConsistentSnapshotFrequencyInMinutes

Specifies the frequency(in minutes) at which to create application consistent recovery points.

Declaration
public Output<int> ApplicationConsistentSnapshotFrequencyInMinutes { get; }
Property Value
Type Description
Output<System.Int32>
View Source

Name

The name of the network mapping.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

RecoveryPointRetentionInMinutes

The duration in minutes for which the recovery points need to be stored.

Declaration
public Output<int> RecoveryPointRetentionInMinutes { get; }
Property Value
Type Description
Output<System.Int32>
View Source

RecoveryVaultName

The name of the vault that should be updated.

Declaration
public Output<string> RecoveryVaultName { get; }
Property Value
Type Description
Output<System.String>
View Source

ResourceGroupName

Name of the resource group where the vault that should be updated is located.

Declaration
public Output<string> ResourceGroupName { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, ReplicationPolicyState, CustomResourceOptions)

Get an existing ReplicationPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static ReplicationPolicy Get(string name, Input<string> id, ReplicationPolicyState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

ReplicationPolicyState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
ReplicationPolicy
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.