Edit

Share via


Start-AzRecoveryServicesAsrSwitchProcessServerJob

Switch replication from one Process server to another for load balancing.

Syntax

Default (Default)

Start-AzRecoveryServicesAsrSwitchProcessServerJob
    -Fabric <ASRFabric>
    -SourceProcessServer <ASRProcessServer>
    -TargetProcessServer <ASRProcessServer>
    [-ReplicationProtectedItem <ASRReplicationProtectedItem[]>]
    [-DefaultProfile <IAzureContextContainer>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Start-AzRecoveryServicesAsrSwitchProcessServerJob switches replication data movement for the specified virtual machines or a specified Process server to the specified target Process server. Used for load balancing or switching replication between Process servers.

Examples

Example 1

Start-AzRecoveryServicesAsrSwitchProcessServerJob -Fabric $fabric -SourceProcessServer $sourceProcessServer  -TargetProcessServer $TargetProcessServer

Job to track switching process server for all replication protected item from source to target process server.

Example 2

Start-AzRecoveryServicesAsrSwitchProcessServerJob -Fabric $fabric -SourceProcessServer $sourceProcessServer  -TargetProcessServer $TargetProcessServer -ReplicatedItem $rpList

Job to track switching process server for passed replication protected item from source to target process server.

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:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, 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

-Fabric

Site recovery fabric corresponding to the Configuration Server.

Parameter properties

Type:ASRFabric
Default value:None
Supports wildcards:False
DontShow:False
Aliases:ConfigServer

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ReplicationProtectedItem

List of replication protected item whose process server to be switched.

Parameter properties

Type:

ASRReplicationProtectedItem[]

Default value:None
Supports wildcards:False
DontShow:False
Aliases:ReplicatedItem

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-SourceProcessServer

The Process server to switch replication out from.

Parameter properties

Type:ASRProcessServer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetProcessServer

The Process server to switch replication to.

Parameter properties

Type:ASRProcessServer
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
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.

Inputs

None

Outputs

ASRJob