Add-VBRvCDCDPPolicy
Short Description
Creates a Cloud Director CDP policy.
Product Edition: Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Add-VBRvCDCDPPolicy [-Name <String>] [-Description <String>] -SourceObject <IVcdItem[]> -OrganizationVdc <CVcdOrganizationVdcItem> -GeneralStoragePolicy <CVcdOrgVdcStorageProfile> [-ExcludedObject <IVcdItem[]>] [-SourceNetwork <VBRvCDOrgVdcNetworkInfo[]>] [-TargetNetwork <VBRvCDOrgVdcNetworkInfo[]>] [-RepositorySeed <CBackupRepository>] [-OriginalVApp <CVcdVappItem[]>] [-ReplicaVApp <CVcdVappItem[]>] [-SourceProxy <VBRCDPProxy[]>] [-TargetProxy <VBRCDPProxy[]>] [-Suffix <String>] [-CompressionLevel <VBRCompressionLevel>] [-NotificationOptions <VBRNotificationOptions>] [-RetentionOptions <VBRCDPPolicyRetentionOptions>] [-GuestProcessingOptions <VBRReplicaApplicationProcessingOptions>] [<CommonParameters>] |
Detailed Description
This cmdlet creates a Cloud Director CDP policy.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
CompressionLevel |
Specifies the compression level for the replicated data:
Default: |
|
False |
Named |
False |
|
Description |
Specifies a description for the CDP policy. |
|
False |
Named |
False |
|
ExcludedObject |
Specifies an array of VM containers that you want to exclude from the CDP policy. You can exclude the following types of containers:
Accepts the |
|
False |
Named |
False |
|
GeneralStoragePolicy |
Specifies the storage policy according to which the cmdlet will create replicas.
Accepts the |
|
True |
Named |
False |
|
GuestProcessingOptions |
Specifies guest processing options.
Accepts the |
|
False |
Named |
False |
|
Name |
Specifies a name for the CDP policy. |
|
False |
Named |
False |
|
NotificationOptions |
Specifies notification options of the CDP policy.
Accepts the |
False |
Named |
False |
|
|
OrganizationVdc |
Specifies the organization VDC where replicas will be stored.
Accepts the |
|
True |
Named |
False |
|
OriginalVApp |
For the replica mapping functionality. Specifies an array of production vApps for which you plan to use replica mapping. The CDP policy will map these vApps to the vApps in the disaster recovery site.
Use the
Accepts the |
|
False |
Named |
False |
|
ReplicaVApp |
For the replica mapping functionality. Specifies an array of vApps in the disaster recovery site. The cmdlet will map the production vApps to these vApps and will use these vApps as replicas.
Use the
Accepts the |
|
False |
Named |
False |
|
RepositorySeed |
For the replica seeding functionality. Specifies the backup repository that keeps the full backups of vApps that you want to replicate.
Accepts the |
|
False |
Named |
False |
|
RetentionOptions |
Specifies retention settings.
Accepts the |
|
False |
Named |
False |
|
SourceNetwork |
For the network mapping functionality. Specifies an array of the production networks to which the vApps are connected. Note: The number of the source and the target networks must be the same.
Accepts the |
|
False |
Named |
False |
|
SourceObject |
Specifies an array of vApps that you want to replicate.
Accepts the |
|
True |
Named |
True (ByPropertyName, ByValue) |
|
SourceProxy |
Specifies an array of the CDP proxy in the production site that you want to assign to the CDP policy. Default: Automatic selection.
Accepts the |
|
False |
Named |
False |
|
Suffix |
Specifies the suffix that the cmdlet will add to the name of vApps replicated with CDP policies.
Default: " |
|
False |
Named |
False |
|
TargetNetwork |
For the network mapping functionality. Specifies an array of the networks in the Disaster Recovery site. The replicated vApps will be connected to these networks. Note: The number of the source and the target networks must be the same.
Accepts the |
|
False |
Named |
False |
|
TargetProxy |
Specifies an array of the target CDP proxies that you want to assign to the CDP policy. Default: Automatic selection.
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 VBRvCDCDPPolicy object that defines settings of the CDP policy.
Examples
Creating Cloud Director CDP Policy
This example shows how to create a Cloud Director CDP policy.
|
$server = Get-VBRServer -Name "Cloud Server" $vapp = Find-VBRvCloudEntity -Server $server -VApp $organization = Find-VBRvCloudEntity -Server $server -OrganizationVdc $policy = Find-VBRvCloudEntity -Server $server -StorageProfile -Name "Default Storage policy" | Where OrgVcdRef -eq $organization.VcdRef Add-VBRvCDCDPPolicy -SourceObject $vapp -OrganizationVdc $organization -GeneralStoragePolicy $policy |
Perform the following steps:
- Run the
Get-VBRServerReturns hosts connected to the backup infrastructure. cmdlet. Specify theNameparameter value. Save the result to the$servervariable. - Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify theServerandVAppparameters values. Save the result to the$vappvariable. - Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify theServerandOrganizationVdcparameters values. Save the result to the$organizationvariable. - Run the
Find-VBRvCloudEntityLooks for Cloud Director entities. cmdlet. Specify theServer,StorageProfileandNameparameters values. Save the result to the$policyvariable. - Run the
Add-VBRvCDCDPPolicycmdlet. Set the$vappvariable as theSourceObjectparameter value. Set the$organizationvariable as theOrganizationVdcparameter value. Set the$policyvariable as theGeneralStoragePolicyparameter value.
Related Commands
Get-VBRServerReturns hosts connected to the backup infrastructure.Find-VBRvCloudEntityLooks for Cloud Director entities.