Installation

How to deploy the Autonomous Component

Modified on Fri, 27 Nov at 10:16 AM

Table of contents



Introduction

This page is for the Azure administrator. It creates the Azure resources for the Autonomous Component, puts the application on them, checks that it works, and moves the first transfers to it. The last step installs newer versions later. The whole installation, and who does what, is in the Autonomous Component Installation Overview.


Before you start, you need:


  1. Everything from the Prerequisites, and the two files from Download artifacts.
  2. Your filled-in parameter file, as described in Setup bicep parameters for the Autonomous Component.
  3. Only if transfers use SharePoint: the certificate file AutonomousCert.pfx, from Prepare SharePoint access.


Each step says how to check it worked before you go on.



1. Create the Azure resources

All resources are created in one resource group, from the templates in Azure.IaC.zip and your parameter file.


  1. Sign in, choose the subscription, and create the resource group:
    az login --tenant <your tenant ID>
    az account set --subscription <your subscription ID>
    az group create --name <your resource group> --location <your region>
  2. In PowerShell, go with cd to the folder where you unzipped Azure.IaC.zip. It holds main.bicep, and your parameter file must be there too. Preview what will be created:
    az deployment group what-if --resource-group <your resource group> --template-file main.bicep --parameters <your file>.bicepparam
  3. The preview should list an App Service plan (the server), a web app with its settings, an SQL server and database with a firewall rule for each allow-list entry, a storage account with a file share, and a role assignment (the web app's permission on the storage account). If you turned on autoscale, or P6 encryption with a Key Vault that uses access policies, it also lists an autoscale setting or a Key Vault access policy. If it does, create them:
    az deployment group create --name AutonomousComponent --resource-group <your resource group> --template-file main.bicep --parameters <your file>.bicepparam

    This takes a few minutes.


On Linux or in Azure Cloud Shell the deployment stops with "file not found" for storagePermission.bicep. The file in the Modules/Storage folder is spelled StoragePermission.bicep, and those systems treat upper and lower case as different. Rename the file to storagePermission.bicep and run the command again. Windows is not affected.


Check: the command ends with "provisioningState": "Succeeded", and the resource group holds the resources listed above. Note the web app's name:


az webapp list --resource-group <your resource group> --query "[].name" -o tsv


The web app exists, but it is still empty. That is expected: the application comes in Deploy the application.


If you chose Microsoft Entra sign-in for the job dashboard, now add the redirect URI to its app registration, as described in Choose how to protect the job dashboard.



2. Give the component access to its database

The component signs in to its database as the web app itself, with the web app's own Azure identity (its managed identity), so there is no password to manage. The database administrator gives it access once.


  1. From a computer whose IP address is in the allow-list, connect to the new database as the database administrator, with Microsoft Entra sign-in. The Query editor in the Azure portal works.
  2. In the Query editor, or the tool you connected with, run this, with your web app's name in place of <app_name>:
    CREATE USER [<app_name>] FROM EXTERNAL PROVIDER;
    ALTER ROLE db_datareader ADD MEMBER [<app_name>];
    ALTER ROLE db_datawriter ADD MEMBER [<app_name>];
    ALTER ROLE db_ddladmin ADD MEMBER [<app_name>];

    The component creates its own tables the first time it starts; that is why it needs db_ddladmin.

  3. Only for P6 encryption with an RBAC Key Vault: in the Key Vault, open Access control (IAM) → Add role assignment, choose Key Vault Certificate User, and assign it to the web app's managed identity.


Check: SELECT name FROM sys.database_principals WHERE name = '<app_name>'; returns one row.



3. Add the SharePoint certificate to the application (only if you use SharePoint)

Skip this if no transfer uses SharePoint. The component looks for its certificate inside the application, at Certificates/AutonomousCert.pfx. Add your file to AutonomousClient.Server.zip without unzipping it:


$zipPath  = "C:\path\to\AutonomousClient.Server.zip"
$certFile = "C:\path\to\AutonomousCert.pfx"
Add-Type -AssemblyName System.IO.Compression.FileSystem
$zip = [System.IO.Compression.ZipFile]::Open($zipPath, 'Update')
$zip.Entries | Where-Object { $_.FullName -eq "Certificates/AutonomousCert.pfx" } | ForEach-Object { $_.Delete() }
[void][System.IO.Compression.ZipFileExtensions]::CreateEntryFromFile($zip, $certFile, "Certificates/AutonomousCert.pfx")
$zip.Dispose()


Check: open the zip in File Explorer. It has a Certificates folder with AutonomousCert.pfx, next to the application files.



4. Deploy the application

The application is the file AutonomousClient.Server.zip from Download artifacts. You upload it to the web app as it is. Azure unpacks it there and starts the component.


Before you start, check that:


  1. Your computer's public IP address is in the allow-list. The web app accepts uploads only from those addresses.
  2. The Azure CLI on that computer is signed in, as in Create the Azure resources.
  3. You have the name of your resource group and of your web app. The check in Create the Azure resources shows the web app's name.
  4. If you use SharePoint, the certificate is in the zip, as in Add the SharePoint certificate to the application.
  5. AutonomousClient.Server.zip is the file from the artifact, still zipped. If you unzipped it, do not zip the folder again: Azure needs the application files at the top of the zip, not inside a folder, or the component does not start. Take the zip from the artifact again instead.


Then:


  1. In PowerShell, run this, with your own values in place of the parts in < >:
    az webapp deploy --type zip --resource-group <your resource group> --name <your web app name> --src-path "C:\path\to\AutonomousClient.Server.zip"

    --src-path is the full path to the zip on your computer. To copy it, right-click the file in File Explorer and choose Copy as path (on Windows 10, hold Shift while you right-click). The copied path already has quotation marks, so paste it in place of "C:\path\to\AutonomousClient.Server.zip", quotes included.

  2. Wait for the command to finish. This takes a few minutes. Azure unpacks the zip and restarts the web app, and the component starts by itself.


There is no upload button for this in the Azure portal: the drag-and-drop Zip Push Deploy page does not work for this web app, because it runs on Linux. Use the command above, as Microsoft describes in Deploy files to App Service.


Check: the command finishes without an error, and Check that it works shows the version you deployed.


If this happensDo this
Error 403 (Forbidden)Your computer's public IP address is not in the allow-list. Add it to ipWhiteList in your parameter file, run the az deployment group create command from Create the Azure resources again, and deploy again.
The web app or resource group is not foundCheck both names. The check in Create the Azure resources lists your web app's name.
You are asked to sign inSign in again with az login, as in Create the Azure resources.
An error about credentials, where your organization has turned off basic authentication for web appsUpdate the Azure CLI with az upgrade. From version 2.48.1 it signs in to the web app with your own account, as Microsoft describes in Disable basic authentication.
The command succeeds, but the web app's page does not show the SchedEx Autonomous Client pageThe zip was probably zipped again with a folder on top. Take AutonomousClient.Server.zip from the artifact again, add the certificate again if you use SharePoint, and deploy it.



5. Check that it works

From an allowed IP address:


  1. Open https://<your web app name>.azurewebsites.net. You see the SchedEx Autonomous Client page with its version.
  2. Open /health on the same address. It reports Healthy, with two checks: Hangfire Database (its database) and SchedEx Flow API Connectivity (its connection to SchedEx).
  3. Open /jobs and sign in. Under Recurring Jobs you see the regular checks for work.
  4. Ask the Tenant Admin to open Tenant Admin → Clients → Autonomous Component. Within about 5 minutes, Last Authenticated Request Status turns green and Version Status shows the version you deployed.


If this failsCheck
The page does not open at allYour IP address is in the allow-list. Then open Log stream on the web app in the Azure portal for startup errors.
Hangfire Database is unhealthyGive the component access to its database was done, with the right app name.
SchedEx Flow API Connectivity is unhealthyappGatewayUrl is the right SchedEx address (how to get it).
The status in SchedEx stays greyThe token was copied in full, it has not expired, and the component is active in SchedEx.
The version stays empty in SchedExThe Identifier in the parameter file matches the one in SchedEx exactly.



6. Connect your host systems and run the first transfers

  1. Get the component's outgoing IP addresses:
    az webapp show --resource-group <your resource group> --name <your web app name> --query possibleOutboundIpAddresses -o tsv
  2. Ask each host-system owner (P6, SAP, Safran, ILAP Analytics, your REST services) to allow all of these addresses. A host system inside your own network also needs a network path from Azure, such as a public address, a VPN or Azure virtual network integration.
  3. The Tenant Admin, or whoever sets up connectors, checks that each connector that should run unattended supports the Autonomous Component, and runs Test on it. If P6 uses message-level encryption, leave the Key Vault tenant ID and client ID empty in the P6 connector, so the component signs in with its own identity.
  4. On each Exchange Agreement side that should run unattended, they set Execute component to Autonomous Component.
  5. When the first transfers have run well, the Tenant Admin can raise Maximum parallel transfers on the component (up to 100) to run several transfers at the same time. Each one needs memory, so choose the server size to match.


Check: the connector test succeeds, and the next scheduled transfer appears on the component's dashboard in SchedEx and finishes.


The component is now set up. Every setting you can change later is explained in Autonomous Component settings.



7. Install a newer version

When Promineo releases a new version, it appears in Tenant Admin → Installation Center → Autonomous Component. To install it:


  1. Download and unzip the new artifact, as in Download artifacts.
  2. Open the version's Release Note and find the Bicep Change History table. If its Autonomous Component row says Bicep Change Required: Yes, make the parameter file changes it describes, and run Create the Azure resources again from the new Azure.IaC.zip. You do not repeat Give the component access to its database. If the row says No, or there is no row for the Autonomous Component, skip this.
  3. If you use SharePoint, add your certificate to the new AutonomousClient.Server.zip, as in Add the SharePoint certificate to the application. The new zip does not contain it.
  4. Deploy the new zip, as in Deploy the application. The component restarts, so if you can, choose a time when no transfers are running.


Check: in Tenant Admin → Clients → Autonomous Component, Version Status shows the new version.



Read More

  1. Autonomous Component Installation Overview
  2. Setup bicep parameters for the Autonomous Component
  3. Autonomous Component settings
  4. Reading the Autonomous Component Dashboard
  5. Connecting SchedEx to SharePoint

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article