Resume-AzMigrateServerReplication
Starts the replication that has been suspended.
Syntax
Resume-AzMigrateServerReplication
-TargetObjectID <String>
[-DeleteMigratedResource]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Resume-AzMigrateServerReplication
[-DeleteMigratedResource]
[-SubscriptionId <String>]
-InputObject <IMigrationItem>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Resume-AzMigrateServerReplication starts the replication that has been suspended.
Examples
Example 1: By machine id.
Resume-AzMigrateServerReplication -TargetObjectID "/Subscriptions/xxx-xxx-xxxxxx-xxx-xxx/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoffccyapp3352vault/replicationFabrics/signoffccyappae52replicationfabric/replicationProtectionContainers/signoffccyappae52replicationcontainer/replicationMigrationItems/idclab-vcen67-fareast-corp-micr-0f144e99-ba36-4649-b92b-8b06854aa539_5015f6d8-fc84-afdf-de47-1eab79330f00"
ActivityId : 0b810233-b0aa-4a4c-a44e-bea4589c0513 ActivityId: ccb4889b-b9ec-4a76-af4d-4eb59c76ebac
AllowedAction : {}
CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails
CustomDetailInstanceType : AsrJobDetails
EndTime :
Error : {}
FriendlyName :
Id : /Subscriptions/xxx-xxx-xxxxxx-xxx-xxx/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoff
ccyapp3352vault/replicationJobs/75a6945d-2276-4dbb-926c-d0745e004130
Location :
Name : 75a6945d-2276-4dbb-926c-d0745e004130
ScenarioName :
StartTime :
State : NotStarted
StateDescription : NotStarted
TargetInstanceType : ProtectionEntity
TargetObjectId :
TargetObjectName :
Task : {}
Type : Microsoft.RecoveryServices/vaults/replicationJobs
By machine id.
Example 2: By input object
$obj = Get-AzMigrateServerReplication -ProjectName "signoffccyproj" -ResourceGroupName "cbtsignoff2201rg" -MachineName "Win2k16"
Resume-AzMigrateServerReplication -InputObject $obj
ActivityId : 0b810233-b0aa-4a4c-a44e-bea4589c0513 ActivityId: ccb4889b-b9ec-4a76-af4d-4eb59c76ebac
AllowedAction : {}
CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails
CustomDetailInstanceType : AsrJobDetails
EndTime :
Error : {}
FriendlyName :
Id : /Subscriptions/xxx-xxx-xxxxxx-xxx-xxx/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoff
ccyapp3352vault/replicationJobs/75a6945d-2276-4dbb-926c-d0745e004130
Location :
Name : 75a6945d-2276-4dbb-926c-d0745e004130
ScenarioName :
StartTime :
State : NotStarted
StateDescription : NotStarted
TargetInstanceType : ProtectionEntity
TargetObjectId :
TargetObjectName :
Task : {}
Type : Microsoft.RecoveryServices/vaults/replicationJobs
By input object.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-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 |
-DeleteMigratedResource
Specifies whether the migrated resources needs to be deleted.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Specifies the replicating server for which the resume replication 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 |
-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 resume replication 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 |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Azure PowerShell