New-AzMigrateLocalDiskMappingObject

Creates a new disk mapping

Syntax

New-AzMigrateLocalDiskMappingObject
   -DiskID <String>
   -IsOSDisk <String>
   -IsDynamic <String>
   -Size <Int64>
   -Format <String>
   [-PhysicalSectorSize <Int64>]
   [-TargetStoragePathId <String>]
   [<CommonParameters>]

Description

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

Examples

Example 1: Creates Disk to migrate

New-AzMigrateLocalDiskMappingObject -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-AzMigrateLocalServerReplication

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

-PhysicalSectorSize

Specifies the disk physical sector size in bytes.

Type:Int64
Position:Named
Default value:None
Required:False
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

-TargetStoragePathId

Specifies the storage path ARM ID where the disk will be stored.

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

Outputs

Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20240901.AzLocalDiskInput