Suspend-AzMigrateServerReplication
Suspends the ongoing replication.
Syntax
ByIDVMwareCbt (Default)
Suspend-AzMigrateServerReplication
-TargetObjectID <String>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Suspend-AzMigrateServerReplication
-InputObject <IMigrationItem>
[-SubscriptionId <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Suspend-AzMigrateServerReplication suspends the ongoing replication.
Examples
Example 1: By machine id.
Suspend-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 : da61a495-48b7-40df-a251-f23f491b2566 ActivityId: e16e0301-be13-4c35-8242-1451cb057994
AllowedAction : {}
CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails
CustomDetailInstanceType : AsrJobDetails
EndTime :
Error : {}
FriendlyName : Pause replication
Id : /Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoff
ccyapp3352vault/replicationJobs/6ded7417-b939-4c30-b622-d80a63865025
Location :
Name : 6ded7417-b939-4c30-b622-d80a63865025
ScenarioName : PauseReplication
StartTime : 9/25/2022 9:10:42 PM
State : InProgress
StateDescription : InProgress
TargetInstanceType : ProtectionEntity
TargetObjectId : 52896ea4-214d-5825-bc32-24169dfcc44c
TargetObjectName : Win2k16
Task : {PauseReplicationPreflightChecksTask, PauseReplicationTask}
Type : Microsoft.RecoveryServices/vaults/replicationJobs
By machine id.
$obj = Get-AzMigrateServerReplication -ProjectName "signoffccyproj" -ResourceGroupName "cbtsignoff2201rg" -MachineName "Win2k16"
Suspend-AzMigrateServerReplication -InputObject $obj
ActivityId : da61a495-48b7-40df-a251-f23f491b2566 ActivityId: e16e0301-be13-4c35-8242-1451cb057994
AllowedAction : {}
CustomDetailAffectedObjectDetail : Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202301.JobDetailsAffectedObjectDetails
CustomDetailInstanceType : AsrJobDetails
EndTime :
Error : {}
FriendlyName : Pause replication
Id : /Subscriptions/7c943c1b-5122-4097-90c8-861411bdd574/resourceGroups/cbtsignoff2201rg/providers/Microsoft.RecoveryServices/vaults/signoff
ccyapp3352vault/replicationJobs/6ded7417-b939-4c30-b622-d80a63865025
Location :
Name : 6ded7417-b939-4c30-b622-d80a63865025
ScenarioName : PauseReplication
StartTime : 9/25/2022 9:10:42 PM
State : InProgress
StateDescription : InProgress
TargetInstanceType : ProtectionEntity
TargetObjectId : 52896ea4-214d-5825-bc32-24169dfcc44c
TargetObjectName : Win2k16
Task : {PauseReplicationPreflightChecksTask, PauseReplicationTask}
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
Specifies the replicating server for which the suspend 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 suspend 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