Add-VBRCloudCDPPolicy
Short Description
Creates a cloud CDP policy.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRCloudCDPPolicy -Entity <IViItem[]> -Server <VBRCloudServer> -Datastore <VBRCloudDatastore> [-Name <String>] [-Description <String>] [-Suffix <String>] [-SourceProxy <VBRCDPProxy[]>] [-NotificationOptions <VBRNotificationOptions>] [-RetentionOptions <VBRCDPPolicyRetentionOptions>] [-GuestProcessingOptions <VBRReplicaApplicationProcessingOptions>] [-SourceNetwork <VBRViNetworkInfo[]>] [-TargetNetwork <VBRCloudServerNetworkInfo[]>] [-RepositorySeed <CBackupRepository>] [-OriginalVM <CViVmItem[]>] [-ReplicaVM <VBRViCloudVM[]>] [-DiskType <EDiskCreationMode>] [-Force] [-HighPriority] [<CommonParameters>] |
Detailed Description
This cmdlet creates a cloud CDP policy.
Note |
|
The cmdlet will create a cloud CDP policy in the disabled state unless you enable a policy schedule. Run the |
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Datastore |
Returns datastores or disk volumes allocated under cloud resources. The cmdlet will keep cloud CDP replicas in this datastore.
Accepts the |
True |
Named |
False |
|
|
Description |
Specifies a description of a cloud CDP policy. |
|
False |
Named |
False |
|
DiskType |
Specifies the format that will be used to restore replica disk files:
Default: |
|
False |
Named |
False |
|
Entity |
Specifies the array of VMs you want to add to the policy.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
Force |
Defines that the cmdlet will create a cloud CDP policy without showing warnings in the PowerShell console. |
|
False |
Named |
False |
|
GuestProcessingOptions |
Specifies guest processing settings of a cloud CDP policy.
Accepts the |
|
False |
Named |
False |
|
HighPriority |
Defines that Veeam Backup & Replication will prioritize this job higher than other similar jobs and will allocate resources to it in the first place. |
|
False |
Named |
False |
|
Name |
Specifies a name you want to assign to a cloud CDP policy. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification settings of a cloud CDP policy.
Accepts the |
False |
Named |
False |
|
|
OriginalVM |
For replica mapping. Specifies an array of production VMs that you want to replicate using replica mapping. The cloud CDP policy will map this VM to the VM in the disaster recovery site.
Use the
Accepts the |
|
False |
Named |
False |
|
ReplicaVM |
For replica mapping. Specifies an array of VMs in the disaster recovery site. The cmdlet will map the production VM to this VM.
Use the
Accepts the |
|
False |
Named |
False |
|
RepositorySeed |
For replica seeding. Specifies a backup repository that keeps a full backup of VMs that you want to replicate.
Accepts the |
|
False |
Named |
False |
|
RetentionOptions |
Specifies retention settings of a cloud CDP policy.
Accepts the |
|
False |
Named |
False |
|
Server |
Specifies a cloud host allocated by a service provider through the hardware plan. The cloud CDP replicas will be created in this host.
Accepts the |
True |
Named |
False |
|
|
SourceNetwork |
For network mapping. Specifies an array of production networks to which the VMs added to a cloud CDP policy are connected. Note: The number of source networks must match the number of target networks.
Accepts the |
False |
Named |
False |
|
|
SourceProxy |
Specifies the array of CDP source proxies added to the backup infrastructure. The cmdlet will use these proxies to transfer data. Default: Automatic selection.
Accepts the |
|
False |
Named |
False |
|
Suffix |
Specifies the suffix that will be appended to the name of the VM you are replicating. This name will be used to register the replicated VM on the target server.
Note: If you omit this parameter, the replicated VMs will get the |
|
False |
Named |
False |
|
TargetNetwork |
For network mapping. Specifies an array of networks in the disaster recovery site. VMs that are replicated with the cloud CDP policy will be connected to these networks. Note: The number of source networks must match the number of target networks.
Accepts the |
False |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
The cmdlet returns the VBRCloudCDPPolicy object that contains cloud CDP policy settings.
Examples
Creating Cloud CDP Policy
This example shows how to create the DB_replication cloud CDP policy.
|
$vm = Find-VBRViEntity -Name "DB server" $host = Get-VBRCloudServer $datastore = Get-VBRCloudDatastore Add-VBRCloudCDPPolicy -Entity $vm -Server $host[3] -Datastore $datastore[3] -Name "DB_replication" |
Perform the following steps:
- Run the
Find-VBRViEntityLooks for VMware objects. cmdlet. Specify theNameparameter value. Save the result to the$vmvariable. - Run the
Get-VBRCloudServerReturns cloud hosts allocated by a service provider. cmdlet. Save the result to the$hostvariable.The
Get-VBRCloudServercmdlet will return an array of hosts. Mind the ordinal number of the necessary host (in our example, it is the fourth host in the array). - Run the
Get-VBRCloudDatastoreReturns datastores or disk volumes allocated to you under your cloud resources. cmdlet. Save the result to the$datastorevariable.The
Get-VBRCloudDatastorecmdlet will return an array of datastores. Mind the ordinal number of the necessary datastore (in our example, it is the fourth datastore in the array). - Run the
Add-VBRCloudCDPPolicycmdlet. Specify the following settings:- Set the
$vmvariable as theEntityparameter value. - Set the
$hostvariable as theServerparameter value. - Set the
$datastorevariable as theDatastoreparameter value. - Specify the
Nameparameter value.
- Set the
Related Commands
Find-VBRViEntityLooks for VMware objects.Get-VBRCloudServerReturns cloud hosts allocated by a service provider.Get-VBRCloudDatastoreReturns datastores or disk volumes allocated to you under your cloud resources.