Start-AzMigrateTestMigration
Starts the test migration for the replicating server.
Syntax
Start-AzMigrateTestMigration
-TestNetworkID <String>
-TargetObjectID <String>
[-OsUpgradeVersion <String>]
[-NicToUpdate <IVMwareCbtNicInput[]>]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Start-AzMigrateTestMigration
-TestNetworkID <String>
[-OsUpgradeVersion <String>]
[-NicToUpdate <IVMwareCbtNicInput[]>]
[-SubscriptionId <String>]
-InputObject <IMigrationItem>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
The Start-AzMigrateTestMigration cmdlet initiates the test migration for the replicating server.
Examples
Example 1: By machine id.
Start-AzMigrateTestMigration -TargetObjectID '/Subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.RecoveryServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationFabrics/AzMigratePWSHTc8d1replicationfabric/replicationProtectionContainers/AzMigratePWSHTc8d1replicationcontainer/replicationMigrationItems/bcdr-vcenter-fareast-corp-micro-cfcc5a24-a40e-56b9-a6af-e206c9ca4f93_50063baa-9806-d6d6-7e09-c0ae87309b4f' -TestNetworkId '/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork'
ActivityId : da958651-96b3-4e65-a41e-897d4b06f7dd ActivityId: 3a4c8d4d-920a-47cd-82c3-f3dcce90a588
AllowedAction : {Cancel}
CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.JobDetailsAffectedObjectDetails
CustomDetailInstanceType : AsrJobDetails
EndTime :
Error : {}
FriendlyName : Test Migrate
Id : /Subscriptions/xxx-xxx-xxxresourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.Recover
yServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationJobs/931dde9a-de67-4a30-a045-bb9d6162f8ab
Location :
Name : 931dde9a-de67-4a30-a045-bb9d6162f8ab
ScenarioName : TestMigrate
StartTime : 9/25/20 9:20:08 PM
State : InProgress
StateDescription : InProgress
TargetInstanceType : ProtectionEntity
TargetObjectId : 00001111-aaaa-2222-bbbb-3333cccc4444
TargetObjectName : prsadhu-TestVM
Task : {DisableProtectionOnPrimary, UpdateDraState}
Type : Microsoft.RecoveryServices/vaults/replicationJobs
By machine id.
Example 2: By input object
$obj = Get-AzMigrateServerReplication -TargetObjectID $env.srsMachineId -SubscriptionId $env.srsSubscriptionId
Start-AzMigrateTestMigration -InputObject $obj -TestNetworkId '/subscriptions/xxx-xxx-xxx/resourceGroups/AzMigratePWSHtargetRG/providers/Microsoft.Network/virtualNetworks/AzMigrateTargetNetwork'
ActivityId : da958651-96b3-4e65-a41e-897d4b06f7dd ActivityId: 3a4c8d4d-920a-47cd-82c3-f3dcce90a588
AllowedAction : {Cancel}
CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180110.JobDetailsAffectedObjectDetails
CustomDetailInstanceType : AsrJobDetails
EndTime :
Error : {}
FriendlyName : Test Migrate
Id : /Subscriptions/xxx-xxx-xxx/resourceGroups/azmigratepwshtestasr13072020/providers/Microsoft.Recover
yServices/vaults/AzMigrateTestProjectPWSH02aarsvault/replicationJobs/931dde9a-de67-4a30-a045-bb9d6162f8ab
Location :
Name : 931dde9a-de67-4a30-a045-bb9d6162f8ab
ScenarioName : TestMigrate
StartTime : 9/25/20 9:20:08 PM
State : InProgress
StateDescription : InProgress
TargetInstanceType : ProtectionEntity
TargetObjectId : 00001111-aaaa-2222-bbbb-3333cccc4444
TargetObjectName : prsadhu-TestVM
Task : {DisableProtectionOnPrimary, UpdateDraState}
Type : Microsoft.RecoveryServices/vaults/replicationJobs
By input object.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Specifies the replicating server for which the test migration needs to be initiated. The server object can be retrieved using the Get-AzMigrateServerReplication cmdlet. To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Type: | IMigrationItem |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-NicToUpdate
Updates the NIC for the Azure VM to be created. To construct, see NOTES section for NICTOUPDATE properties and create a hash table.
Type: | IVMwareCbtNicInput[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-OsUpgradeVersion
Specifies the target version to which the Os has to be upgraded to. The valid values can be selected from SupportedOSVersions retrieved using Get-AzMigrateServerReplication cmdlet.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Azure Subscription ID.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetObjectID
Specifies the replicating server for which the test migration needs to be initiated. The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TestNetworkID
Updates the Virtual Network id within the destination Azure subscription to be used for test migration.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |