This is an archive version of the document. To get the most up-to-date information, see the current version.

New-VBRViDiskMigrationMappingRule

Short Description

Defines mapping settings of recovered VM virtual disks and target datastores.

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License, Veeam Universal License

Syntax

New-VBRViDiskMigrationMappingRule -TargetVirtualDevice <VBRViVirtualDevice> [-DiskType {AsSource | Thin | LazyZeroed | EagerZeroed}] [-Datastore <VBRViDatastoreBase>]  [<CommonParameters>]>]

Detailed Description

This cmdlet defines mapping settings of recovered VM virtual disks and target datastores. You can run this cmdlet to specify a particular target datastore for every disk that you want to publish.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

TargetVirtualDevice

Specifies recovered VM virtual disks. The cmdlet will map these disks to the datastore.

Accepts the VBRViVirtualDevice object. To create this object, run the Get-VBRViVirtualDevice cmdlet.

True

Named

False

DiskType

Specifies the virtual disk type settings. The cmdlet will set the virtual disks types to the specified type during the restore. You can specify one of the following disk types:

  • AsSource
  • Thin
  • LazyZeroed
  • EagerZeroed

Default: AsSource

VBRViDiskType

False

Named

False

Datastore

Specifies a datastore or a datastore cluster. The cmdelt will map recovered VM virtual disks to the specified datastore or the datastore cluster.

Note: If you do not specify this parameter, the cmdlet will will map recovered VM virtual disks to the default datastore.

 

 

 

 

 

Accepts the following types of objects:

False

Named

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VBRViDiskMigrationMappingRule object that defines mapping settings of recovered VM virtual disks with target datastores. .

Examples

New-VBRViDiskMigrationMappingRuleExample 1. Mapping Recovered Virtual Disks to Default Datastore

New-VBRViDiskMigrationMappingRuleExample 2. Mapping Restored Virtual Disks to Specific Datastore

New-VBRViDiskMigrationMappingRuleExample 3. Mapping Restored Virtual Disks to Datastore Cluster

Related Commands