ReplicationPolicyArgs

data class ReplicationPolicyArgs(val applicationConsistentSnapshotFrequencyInMinutes: Output<Int>? = null, val name: Output<String>? = null, val recoveryPointRetentionInMinutes: Output<Int>? = null, val recoveryVaultName: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ReplicationPolicyArgs>

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

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.recoveryservices.Vault;
import com.pulumi.azure.recoveryservices.VaultArgs;
import com.pulumi.azure.siterecovery.ReplicationPolicy;
import com.pulumi.azure.siterecovery.ReplicationPolicyArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.location("East US")
.build());
var vault = new Vault("vault", VaultArgs.builder()
.location(example.location())
.resourceGroupName(example.name())
.sku("Standard")
.build());
var policy = new ReplicationPolicy("policy", ReplicationPolicyArgs.builder()
.resourceGroupName(example.name())
.recoveryVaultName(vault.name())
.recoveryPointRetentionInMinutes(24 * 60)
.applicationConsistentSnapshotFrequencyInMinutes(4 * 60)
.build());
}
}

Import

Site Recovery Replication Policies can be imported using the resource id, e.g.

$ pulumi import azure:siterecovery/replicationPolicy:ReplicationPolicy mypolicy /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resource-group-name/providers/Microsoft.RecoveryServices/vaults/recovery-vault-name/replicationPolicies/policy-name

Constructors

Link copied to clipboard
fun ReplicationPolicyArgs(applicationConsistentSnapshotFrequencyInMinutes: Output<Int>? = null, name: Output<String>? = null, recoveryPointRetentionInMinutes: Output<Int>? = null, recoveryVaultName: Output<String>? = null, resourceGroupName: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): ReplicationPolicyArgs

Properties

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

Link copied to clipboard
val name: Output<String>? = null

The name of the replication policy. Changing this forces a new resource to be created.

Link copied to clipboard

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

Link copied to clipboard
val recoveryVaultName: Output<String>? = null

The name of the vault that should be updated. Changing this forces a new resource to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

Name of the resource group where the vault that should be updated is located. Changing this forces a new resource to be created.