Resume-AzMigrateServerReplication
Starts the replication that has been suspended.
Syntax
ByIDVMwareCbt (Default)
Resume-AzMigrateServerReplication
-TargetObjectID <String>
[-DeleteMigratedResource]
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Resume-AzMigrateServerReplication
-InputObject <IMigrationItem>
[-DeleteMigratedResource]
[-SubscriptionId <String>]
[-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.
$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.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: cf
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
(All)
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DeleteMigratedResource
Specifies whether the migrated resources needs to be deleted.
Parameter properties
Type: SwitchParameter
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
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
Default value: None
Supports wildcards: False
DontShow: False
ByInputObjectVMwareCbt
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
Azure Subscription ID.
Parameter properties
Type: String
Default value: (Get-AzContext).Subscription.Id
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
-TargetObjectID
Specifies the replicating server for which the resume replication needs to be initiated.
The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
ByIDVMwareCbt
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-WhatIf
Shows what would happen if the cmdlet runs.
The cmdlet is not run.
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Aliases: wi
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