Upgrade Orchestrator In Azure Using Powershell Script

How to upgrade Orchestrator in Azure using the Powershell Script?

To upgrade Orchestrator in Azure using the UiPath Powershell script, there are some prerequisites prior to the deployment. For such purpose follow these instructions:

  1. Register an Application in Azure
    1. Go to Azure Active Directory > App Registrations > New Registration. Give it a name and make sure that “Single Tenant” is selected. If not selected, people from different organizations/Azure Active Directories will also have access to it. Finally, click on register,
  1. Copy the Application (Client ID) of the newly created application
  1. Create a Client Secret:
Go to the previously created Application (on App registrations) > Certificates & Secrets > New Client Secret:
  1. Give it a name and Select its expiration time > Click Add and copy its value

  1. Assign a role in the WebApp for the newly created application. To do that, go to WebApp > Open Access Control(IAM) > Add Role Assignment > Search for the application name of the registered app > Assign the role owner/contributor and save it
  1. Add the machine’s IP from which the upgrade will be performed. Go to SQL Server in Azure > Set Server Firewall,
  1. Select add Client IP and save it
  1. Gather the information to upgrade Orchestrator in Azure:
    1. Azure Application ID: To obtain it go to Azure Active Directory > App Registrations > Application client ID
    2. Azure Account Password: To obtain it go to Azure Active Directory > App Registrations > Certificate & Secrets
    3. Azure Subscription ID: Go to App Service > check the Subscription ID
  1. Azure Account Tenant ID: Go to Azure Active Directory > Properties > Copy the Directory ID
  1. Resource Group Name: Go to Resource Group Name in Azure or can be obtained directly from App Service > Resource Group:
  1. App Service Name:

Finally, build the Powershell command using the specs from here and upgrade Orchestrator.

The Powershell execution should look similar to this one:
./Publish-Orchestrator.ps1 -action Update -unattended -package "\UiPath.Orchestrator.Web.zip" -stopApplicationBeforePublish -azureSubscriptionId "" -azureAccountTenantId "" -azureAccountApplicationId "" -azureAccountPassword "" -resourceGroupName "" -appServiceName "" -verbose
1 Like

It is also important to note that before running the Publish-Orchestrator.ps1 script, make sure you remove the AzureRM PowerShell module. We recommend using Az as an alternative. Having both AzureRM and Az modules installed at the same time is not supported.
For a large number of new customers using or migrating to Azure services, this enables deployment in a fraction of the time and ensures a completely predictable deployment tested and validated by UiPath infrastructure deployment specialists.