Orchestrator Deployment as a PaaS in Azure Failed During the Webhook Script Installation with a WriteErrorException. FullyQualifiedErrorId: Microsoft.Powershell.Commands.WriteErrorException, Deploy-Package

How to Resolve Orchestrator deployment as a PaaS in Azure failed during webhook script installation

Issue Description

Orchestrator deployment as a PaaS in Azure failed during the webhook script installation with an error:

"WriteErrorException. FullyQualifiedErrorId: Microsoft.Powershell.Commands.WriteErrorException, Deploy-Package"

image (12).png


Resolution

Provide the full path (C:\Azure App service\UiPath.WebhookService.Web.zip) to the .zip file in the webhook script for the respective app service in Azure. E.g. below:

.\Publish-Webhooks.ps1 `
-action deploy `
-package "C:\Azure App service\UiPath.WebhookService.Web.zip" `
-azureAccountApplicationId "***********************" `
-azureAccountPassword "**************************" `
-azureSubscriptionId "*****************************" `
-azureAccountTenantId "***************************" `
-resourceGroupName "*****************************" `
-appServiceName "**********************************