# Changing external Orchestrator

> Use this procedure if you want to change the external standalone Orchestrator to which your AI Center is connected to.

Use this procedure if you want to change the external standalone Orchestrator to which your AI Center is connected to.

1. Open ArgoCD.
2. Update the following fields for the AICenter and AIEvents applications in ArgoCD with the information for the new Orchestrator:
   * `orchestratorUrl`
   * `identityServerUrl`
   * `orchCert`
   * `identityCert`
3. Click **Save**.
   :::note
   Make sure that the changes are saved and the two applications have the **SYNC OK** status.
   :::
4. SSH to the main server node of the cluser and run the post-installations steps using the token from the new Orchestrator:
   ```
   cd /opt/UiPathAutomationSuite/UiPath_Installer
   ./configureUiPathAS.sh aicenter configure --installation-token
   ```
   :::note
   Check the configuration procedure from the [Automation Suite guide](https://docs.uipath.com/automation-suite/automation-suite/2.2510/installation-guide/managing-products#enabling-or-disabling-ai-center) for the post-instllation commands.
   :::
5. Wait for the application to return to the **Healthy** state.
6. Connect to the Database Server of the Automation Suite environment: AutomationSuite_Platform > ai-events.Subscription.

   ![docs image](https://dev-assets.cms.uipath.com/assets/images/ai-center/ai-center-docs-image-280727-27ffab90-43610e94.webp)
7. Run the following commands on the table:
   ```
   delete from [ai-events].[Subscription] where WebhookUrl like '%http://ai-helper%'
   delete from [ai-events].[Subscription] where WebhookUrl like '%http://ai-pkgmanager%'
   delete from [ai-events].[Subscription] where WebhookUrl like '%http://ai-deployer%'
   delete from [ai-events].[Subscription] where WebhookUrl like '%http://ai-trainer%'
   delete from [ai-events].[Subscription] where WebhookUrl like '%http://ai-appmanager%'
   ```

   If you check the values from the `ai-events.Subscription` table there should be no entries having WebhookUrl for `ai-helper`, `ai-pkgmanager`, `ai-deployer`, `ai-trainer`, `ai-appmanager`.

8. SSH to the main server and restart all the services deployments so that subscriptions from the `ai-events.Subscription` table are created with the new client id. Use the following command to restart:
   ```
   kubectl -n uipath rollout restart deployment ai-app-deployment ai-helper-deployment ai-pkgmanager-deployment ai-deployer-deployment ai-trainer-deployment ai-appmanager-deployment
   ```

If you now go to ArgoCD and check the AICenter application, the sync status and results should be **Synced** and **Sync OK**.
