New-AzsDiskMigrationJob
Hiermee start u een migratietaak voor beheerde schijven om beheerde schijven te migreren naar de opgegeven doelshare.
Syntax
New-AzsDiskMigrationJob
-Name <String>
-TargetScaleUnit <String>
-TargetVolumeLabel <String>
-Disks \<IDisk[]>
[-Location <String>]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
New-AzsDiskMigrationJob
-Name <String>
-TargetShare <String>
-Disks \<IDisk[]>
[-Location <String>]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-Confirm]
[-WhatIf]
[<CommonParameters>]
Description
Hiermee start u een migratietaak voor beheerde schijven om beheerde schijven te migreren naar de opgegeven doelshare.
Voorbeelden
-------------------------- VOORBEELD 1 --------------------------
$disks = Get-AzsDisk
PS C:\> New-AzsDiskMigrationJob -Name TestJob1 -TargetScaleUnit s-cluster -TargetVolumeLabel ObjStore_2 -Disks $disks
CreationTime : 2-26-2020 10:56:32 AM EndTime : Id : /subscriptions/627fecef-520e-4c18-94e0-8f0665ba86a7/providers/Microsoft.Compute. Beheer/locations/redmond/diskmigrationjobs/TestJob1 Location : redmond MigrationId : TestJob1 Name : redmond/TestJob1 StartTime : Status : Pending Subtask : {53ee3665-00e4-4c69-a067-524058905ead, d551734f-0370-4851-9704-c7cec80b34c5} TargetShare : \SU1FileServer.s31r1801.masd.stbtest.microsoft.com\SU1_ObjStore_2 Type: Microsoft.Compute. Beheer/locations/diskmigrationjobs
-------------------------- VOORBEELD 2 --------------------------
PS C:\> $disks = Get-AzsDisk
PS C:\> New-AzsDiskMigrationJob -Name TestJob2 -TargetShare \\SU1FileServer.s31r1801.masd.stbtest.microsoft.com\SU1_ObjStore_3 -Disks $disks
WARNING: TargetShare parameter will be deprecated in a future release, please use Volume instead.
CreationTime : 2-26-2020 11:02:48 AM EndTime : Id: /subscriptions/627fecef-520e-4c18-94e0-8f0665ba86a7/providers/Microsoft.Compute. Beheer/locations/redmond/diskmigrati onjobs/TestJob2 Location : redmond MigrationId : TestJob2 Name : redmond/TestJob2 StartTime : Status : Pending Subtask : {0cfd8d29-1ca4-42db-a490-9198814abc50, 89c9b15e-47c6-4321-a390-611fc190cfad} TargetShare : \SU1FileServer.s31r1801.masd.stbtest.microsoft.com\SU1_ObjStore_3 Type: Microsoft.Compute.Beheer /locations/diskmigrationjobs-AzsDiskMigrationJob -Name TestJob1 -TargetScaleUnit s-cluster -TargetVolumeLabel ObjStore_2 -Disks $disks
Parameters
Hiermee wordt u gevraagd om bevestiging voordat u de cmdlet uitvoert.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De referenties, het account, de tenant en het abonnement dat wordt gebruikt voor communicatie met Azure.
| Type: | PSObject |
| Aliases: | AzureRMContext, AzureCredential |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
. Zie de sectie NOTES voor SCHIJFeigenschappen en maak een hash-tabel om deze samen te stellen.
| Type: | Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk[] |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | True |
| Accept wildcard characters: | False |
Locatie van de resource.
| Type: | String |
| Position: | Named |
| Default value: | (Get-AzLocation)[0].Location |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De guid-naam van de migratietaak.
| Type: | String |
| Aliases: | MigrationId |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke serviceoproep.
| Type: | String |
| Position: | Named |
| Default value: | (Get-AzContext).Subscription.Id |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De naam van de doelschaaleenheid.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
De naam van de doelshare.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Het doelvolumelabel.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Hiermee wordt weergegeven wat er zou gebeuren als u de cmdlet uitvoert. De cmdlet wordt niet uitgevoerd.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Invoerwaarden
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDisk[]
Uitvoerwaarden
Microsoft.Azure.PowerShell.Cmdlets.ComputeAdmin.Models.Api20210401.IDiskMigrationJob
Notities
ALIASSEN
Start-AzsDiskMigrationJob
EIGENSCHAPPEN VAN COMPLEXE PARAMETERS
Als u de hieronder beschreven parameters wilt maken, maakt u een hash-tabel met de juiste eigenschappen. Voer Get-Help about_Hash_Tables uit voor informatie over hashtabellen.
DISKS <IDisk[]>: .
[Location <String>]: Locatie van de resource.[DiskId <String>]: de schijf-id.[SharePath <String>]: het pad naar de schijfshare.[Status <DiskState?>]: de schijfstatus.