Azure App Orchestrator Upgrade Failed With A Positional Parameter Cannot Be Found That Accepts Argument confirmBlockClassicExecutions

C:\Users\apacinfra\Downloads\UiPathOrchestrator\Publish-Orchestrator.ps1 : A positional parameter cannot be found that accepts argument '--confirmBlockClassicExecutions'. At line:1 char:1 + .\Publish-Orchestrator.ps1 -action Update -package .\UiPath.Orchestra ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Publish-Orchestrator.ps1], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Publish-Orchestrator.ps1

Error:

C:\Users\apacinfra\Downloads\UiPathOrchestrator\Publish-Orchestrator.ps1 : A positional parameter cannot be found that

accepts argument '--confirmBlockClassicExecutions'.

At line:1 char:1

+ .\Publish-Orchestrator.ps1 -action Update -package .\UiPath.Orchestra ...

+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

+ CategoryInfo : InvalidArgument: (:) [Publish-Orchestrator.ps1], ParameterBindingException

+ FullyQualifiedErrorId : PositionalParameterNotFound,Publish-Orchestrator.ps1


Resolution: Use the below script for the upgrade

  • .\Publish-Orchestrator.ps1 -action Update -package .\UiPath.Orchestrator.Web.zip -stopApplicationBeforePublish -azureSubscriptionId "<azure_subscription_id>" -azureAccountTenantId "<azure_account_tenant_id>" -azureAccountApplicationId "<azure_application_id>" -azureAccountPassword "<azure_account_password>" -resourceGroupName "<resourcegroup_name>" -appServiceName "<app_service_name>" -confirmBlockClassicExecutions -Verbose