In Webhooks veröffentlichen
In der folgenden Tabelle sind alle Parameter beschrieben, die mit dem Skript Publish-Webhooks.ps1
verwendet werden können.
Parameter | Description |
---|---|
-action | Indicate the scenario to be run, the available options are:Deploy - specifies it is a clean installation;Update - specifies you are updating your Webhooks Service instance. |
-azureAccountApplicationId | The Azure service principal ID. Note: The indicated service principal must be assigned the Contributor role to the app service at the subscription scope. |
-azureAccountPassword | The Azure token password for the service principal ID. |
-azureSubscriptionId | The Azure subscription ID for the respective App Service. |
-azureAccountTenantId | The Azure tenant ID. |
-appServiceName | The Webhook Azure App Service name. Note: This should be different from your Orchestrator App Service name. |
-resourceGroupName | The name of the Azure Resource Group that contains the Webhook App Service. |
-package | Indicate the full path or relative path of the UiPath.WebhookService.zip archive. |
-stopApplicationBeforePublish | When present, stops the application prior to beginning the deployment and then restarts it after the deployment is complete. |
-noAzureAuthentication | Optional. Allows you to publish to the Azure App Service by relying on your own user identity, without having to create a service principal. If this parameter is used, the UseServicePrincipal parameter set (which includes items such as the Azure application ID, password, subscription ID, and tenant ID) are no longer necessary. |
Das Skript Publish-Webhooks.ps1
wird für die anfängliche Bereitstellung oder Aktualisierung von Webhooks verwendet. Das Skript geht davon aus, dass die Web-App bereits die Datenbankverbindungszeichenfolge DefaultConnection
konfiguriert hat.
.\Publish-Webhooks.ps1 `
-action deploy `
-package ".\UiPath.WebhookService.Web.zip" `
-azureAccountApplicationId "<AzureApplicationID>" `
-azureAccountPassword "<AzureAccountPassword>" `
-azureSubscriptionId "<SubscriptionID>" `
-azureAccountTenantId "<TenantID>" `
-resourceGroupName "<AzureResourceGroupYouPickedInStep1>" `
-appServiceName "<UiPathWebhookService>"
Wichtig!
Nach einer ersten Bereitstellung müssen Sie auch das
MigrateTo-Webhooks.ps1
-Skript ausführen.
Migrieren zu Webhooks
In der folgenden Tabelle sind alle Parameter beschrieben, die mit dem Skript MigrateTo-Webhooks.ps1
verwendet werden können.
Parameters | Description |
---|---|
-cliPackage | Indicate the path to the UiPath.WebhookService.Migrate.Cli.zip archive. |
-azureDetails | A hash table with the following values:azureAccountApplicationId - The Azure service principal ID..azureAccountPassword - The Azure token password for the service principal ID.azureSubscriptionId - The Azure subscription ID for the respective App Service.azureAccountTenantId - The Azure tenant ID. |
-orchDetails | A hash table with the following values:resourceGroupName - The name of the Azure Resource Group that contains the Orchestrator App Service.appServiceName - The Orchestrator App Service name.targetSlot - The Target App Service Slot set by Azure. |
-webhooksDetails | A hash table with the following values:resourceGroupName - The name of the Azure Resource Group that contains the Webhook App Service.appServiceName - The Webhook App Service name.targetSlot - The Target App Service Slot set by Azure. |
-noAzureAuthentication | Optional. Allows you to publish to the Azure App Service by relying on your own user identity, without having to create a service principal. If this parameter is used, the UseServicePrincipal parameter set (which includes items such as the Azure application ID, password, subscription ID, and tenant ID) are no longer necessary. |
Dieses MigrateTo-Webhooks.ps1
-Skript wird verwendet, um Daten von einer vorhandenen Orchestrator-Instanz zu einem neuen Webhook-App-Dienst zu migrieren und die Konfigurationen für beide festzulegen. Das Skript geht davon aus, dass der Orchestrator und Webhooks bereits veröffentlicht wurden.
.\MigrateTo-Webhooks.ps1 `
-cliPackage "UiPath.WebhookService.Migrator.Cli.zip"`
-azureDetails @{azureSubscriptionId = "<subscription_id>"; azureAccountTenantId = "<azure_tenant_id>"; azureAccountApplicationId = "<azure_application_id>"; azureAccountPassword = "<azure_account_password>" } `
-orchDetails @{ resourceGroupName = "<resourcegroup_name>"; appServiceName = "<appservice_name>"; targetSlot = "Production" } `
-webhookDetails @{ resourceGroupName = "<resourcegroup_name>"; appServiceName = "<appservice_name>"; targetSlot = "Production" }
Hier finden Sie Details zu den Skript-Parametern.
Aktualisiert vor 8 Monaten