Editar

Compartir a través de


New-AzMigrateHCIDiskMappingObject

Creates a new disk mapping

Syntax

New-AzMigrateHCIDiskMappingObject
   -DiskID <String>
   -IsOSDisk <String>
   -IsDynamic <String>
   -Size <Int64>
   -Format <String>
   [<CommonParameters>]

Description

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

Examples

Example 1: Creates Disk to migrate

New-AzMigrateHCIDiskMappingObject -DiskID a -IsOSDisk true -IsDynamic true -Size 1 -Format VHDX

DiskFileFormat     : VHDX
DiskId             : a
DiskSizeGb         : 1
IsDynamic          : True
IsOSDisk           : True
StorageContainerId :

Get disk object to provide input for New-AzMigrateHCIServerReplication

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

-Format

Specifies the disk format.

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

-IsDynamic

Specifies whether the disk is dynamic.

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

-Size

Specifies the disk size in GB.

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

Outputs

AzStackHCIDiskInput