HyperVReplicationPolicy

class HyperVReplicationPolicy : KotlinCustomResource

Manages a Azure Site Recovery replication policy for HyperV 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.HyperVReplicationPolicy;
import com.pulumi.azure.siterecovery.HyperVReplicationPolicyArgs;
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 HyperVReplicationPolicy("policy", HyperVReplicationPolicyArgs.builder()
.recoveryVaultId(vault.id())
.recoveryPointRetentionInHours(2)
.applicationConsistentSnapshotFrequencyInHours(1)
.replicationIntervalInSeconds(300)
.build());
}
}

Import

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

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

Properties

Specifies the frequency at which to create application consistent recovery points.

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

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

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

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

Link copied to clipboard
val recoveryVaultId: Output<String>
Link copied to clipboard

Specifies how frequently data should be synchronized between source and target locations. Possible values are 30 and 300.

Link copied to clipboard
val urn: Output<String>