< Back

Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob

Tue Jan 29, 2019 10:03 pm

NAME Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob



SYNOPSIS

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





SYNTAX

Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob [-Confirm] [-DefaultProfile <IAzureContextContainer>] -Fabric <ASRFabric>

[-ReplicationProtectedItem <ASRReplicationProtectedItem[]>] -SourceProcessServer <ASRProcessServer> -TargetProcessServer <ASRProcessServer>

[-WhatIf] [<CommonParameters>]





DESCRIPTION

The Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob 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.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Fabric <ASRFabric>

Site recovery fabric corresponding to the Configuration Server.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ReplicationProtectedItem <ASRReplicationProtectedItem[]>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-SourceProcessServer <ASRProcessServer>

The Process server to switch replication out from.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TargetProcessServer <ASRProcessServer>

The Process server to switch replication to.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob







NOTES









Example 1



PS C:\\> Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob -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



PS C:\\> Start-AzureRmRecoveryServicesAsrSwitchProcessServerJob -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.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... sserverjob