New-AzMigrateLocalDiskMappingObject
Creates a new disk mapping
Syntax
Default (Default)
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.
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
Specifies the disk format.
Type: String
Default value: None
Supports wildcards: False
DontShow: False
(All)
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-IsDynamic
Specifies whether the disk is dynamic.
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
-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: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-PhysicalSectorSize
Specifies the disk physical sector size in bytes.
Parameter properties
Type: Int64
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
-Size
Specifies the disk size in GB.
Parameter properties
Type: Int64
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
-TargetStoragePathId
Specifies the storage path ARM ID where the disk will be stored.
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 .
Outputs