Set-AzMigrateDiskMapping
Updates disk mapping
Syntax
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.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DiskName
Specifies the name of the managed disk to be created.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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: | False |
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