PA Promote Example
#Establish a connection with Parallels RAS (NB. User will be prompted for Username and Password).
###### FARM CONFIGURATION ######
#Activate Parallels RAS with a valid key (you will have to provide a valid Parallels My Account password).
Invoke-RASLicenseActivate -Email "myaccount@email.com" -Key "YOUR-LICENSE-KEY"
#Add the backup Connection Broker server.
New-RASConnectionBroker -Server broker.company.dom
#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console.
#Get the list of connection Brokers.
ID Site ID Server Enabled Standby Priority
-- ------ ------ ---------- ------------ --------------
1 1 primary.company.dom True False 0
2 1 broker.company.dom True False 1#End the current RAS session.
###### END FARM CONFIGURATION ######
###### TESTING CONNECTION BROKER PROMOTION ######
#Establish a connection with Parallels RAS (NB. User will be prompted for Username and Password).
New-RASSession -Server "broker.company.dom" -Force
#Get the backup Broker server.
$BackupBroker = Get-RASConnectionBroker -Server broker.company.dom
#Promote backup Broker to primary (you will have to provide a valid Parallels My Account password).
Invoke-RASConnectionBrokerPromoteToPrimary -Id $BackupBroker.Id -Email "myaccount@email.com"
#After the Broker promotion to Primary the session is logged out, then a new session needs to be created. Establish a connection with Parallels RAS (NB. User will be prompted for Username and Password).
New-RASSession -Server "broker.company.dom"
#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console.
#Get the list of Connection Brokers.
#End the current RAS session.
###### END TESTING CONNECTION BROKER PROMOTION ######
© 2026 Parallels International GmbH. Parallels and the Parallels logo are trademarks or registered trademarks of Parallels International GmbH in Canada, the U.S., and/or elsewhere.
Last updated