> For the complete documentation index, see [llms.txt](https://docs.parallels.com/landing/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/papromote.md).

# PA Promote Example

## Parallels RAS PowerShell - Connection Broker Promote Example

\#Establish a connection with Parallels RAS (Replace Administrator with your RAS root account). [New-RASSession](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#New-RASSession) Administrator

\###### FARM CONFIGURATION ######

\#Activate Parallels RAS with a valid key (you will have to provide a valid Parallels My Account password). [Invoke-RASLicenseActivate](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Invoke-RASLicenseActivate) -Email "<myaccount@email.com>" -Key "YOUR-LICENSE-KEY"

\#Add the backup Connection Broker server. [New-RASBroker](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#New-RASBroker) -Server broker.company.dom

\#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. [Invoke-RASApply](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Invoke-RASApply)

\#Get the list of connection Brokers. [Get-RASBroker](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Get-RASBroker)

```
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. [Remove-RASSession](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Remove-RASSession)

\###### END FARM CONFIGURATION ######

\###### TESTING CONNECTION BROKER PROMOTION ######

\#Establish a connection with Parallels RAS (Replace Administrator with your RAS root account). [New-RASSession](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#New-RASSession) Administrator -Server "broker.company.dom" -Force

\#Get the backup Broker server. $BackupBroker = [Get-RASBroker](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Get-RASBroker) -Server broker.company.dom

\#Promote backup Broker to primary (you will have to provide a valid Parallels My Account password). [Invoke-RASBrokerPromoteToPrimary](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Invoke-RASBrokerPromoteToPrimary) -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 (Replace Administrator with your RAS root account). [New-RASSession](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#New-RASSession) Administrator -Server "broker.company.dom" -Force

\#Apply all settings. This cmdlet performs the same action as the Apply button in the RAS console. [Invoke-RASApply](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Invoke-RASApply)

\#Get the list of Connection Brokers. [Get-RASBroker](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Get-RASBroker)

```
ID      Site ID         Server               Enabled          Standby           Priority
--      ------          ------               ----------       ------------      --------------           
1            1          primary.company.dom  True             False             1
2            1          broker.company.dom   True             False             0
                    
```

\#End the current RAS session. [Remove-RASSession](/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/index.md#Remove-RASSession)

\###### 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.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.parallels.com/landing/ras-powershell-api-guide/examples/papromote.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
