Set-AzMigrateDiskMapping
Updates disk mapping
Syntax
Default (Default)
Set-AzMigrateDiskMapping
-DiskID <String>
[-DiskName <String>]
[-IsOSDisk <String>]
[<CommonParameters>]
Description
The Set-AzMigrateDiskMapping cmdlet updates a mapping of the source disk attached to the server to be migrated
Examples
Example 1: Make disks
Set-AzMigrateDiskMapping -DiskID "6000C294-1217-dec3-bc18-81f117220424" -DiskName "ContosoDisk_1" -IsOSDisk "True"
DiskId IsOSDisk TargetDiskName
------ -------- --------------
6000C294-1217-dec3-bc18-81f117220424 True ContosoDisk_1
Get disks object to provide input for Set-AzMigrateServerReplication
Parameters
-DiskID
Specifies the disk ID of the disk attached to the discovered server to be migrated.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-DiskName
Specifies the name of the managed disk to be created.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-IsOSDisk
Specifies whether the disk contains the Operating System for the source server to be migrated.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.