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 disks
New-AzMigrateDiskMapping -DiskID a -DiskType Standard -IsOSDisk 'true'
DiskEncryptionSetId DiskId DiskType IsOSDisk LogStorageAccountId LogStorageAccountSasSecretName
------------------- ------ -------- -------- ------------------- ------------------------------
a Standard true
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure PowerShell