New-AzMigrateDiskMapping

Creates a new disk mapping

Syntax

New-AzMigrateDiskMapping
   -DiskID <String>
   -IsOSDisk <String>
   -DiskType <String>
   [-DiskEncryptionSetID <String>]
   [<CommonParameters>]

Description

The New-AzMigrateDiskMapping cmdlet creates a mapping of the source disk attached to the server to be migrated

Examples

Example 1: Make Standard disks

New-AzMigrateDiskMapping -DiskID a -DiskType Standard_LRS -IsOSDisk 'true'

DiskEncryptionSetId DiskId DiskType     IsOSDisk LogStorageAccountId LogStorageAccountSasSecretName  
------------------- ------ --------     -------- ------------------- ------------------------------   
                    a      Standard_LRS true

Example 2: Make Premium V2 disks

New-AzMigrateDiskMapping -DiskID b -DiskType PremiumV2_LRS -IsOSDisk 'false'

DiskEncryptionSetId DiskId DiskType      IsOSDisk LogStorageAccountId LogStorageAccountSasSecretName  
------------------- ------ --------      -------- ------------------- ------------------------------   
                    b      PremiumV2_LRS false

Get disks object to provide input for New-AzMigrateServerReplication

Parameters

-DiskEncryptionSetID

Specifies the disk encyption set to be used.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DiskID

Specifies the disk ID of the disk attached to the discovered server to be migrated.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DiskType

Specifies the type of disks to be used for the Azure VM.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-IsOSDisk

Specifies whether the disk contains the Operating System for the source server to be migrated.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IVMwareCbtDiskInput