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
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Azure PowerShell