Installation

Autonomous Component Installation Overview

Modified on Fri, 27 Nov at 10:16 AM

Table of contents



Introduction

Why: SchedEx moves schedule data between your organization and your partners, and someone has to run each transfer. The desktop client runs transfers on a person's computer while they are signed in. The Autonomous Component runs them for you, on a schedule, with nobody signed in. Use it when transfers should happen at night, at fixed times, or without waiting for a person.


What: the Autonomous Component is a small web application that runs in your own Azure subscription. Every few minutes it asks SchedEx whether a transfer is due. When one is, it either reads data from your host system (for example Primavera P6, SAP or Safran) and sends it to SchedEx, or takes data from SchedEx and writes it into your host system. SchedEx itself never connects to your host systems.


How: you install it in five steps. Steps 1 and 2 are on this page; the others have their own page.


  1. Prerequisites: what to collect and arrange before you start.
  2. Download artifacts: get the infrastructure templates and the application from SchedEx.
  3. Fill in the parameter file: the values for your organization.
  4. Deploy the component: create the Azure resources, put the application on them, and run the first transfers.
  5. After the installation: change settings, keep an eye on the component, and choose which transfers need approval.


Each step says who does it and how to check it worked before you go on. Plan for about three working days, most of it waiting for approvals from other teams.


This guide is for a first installation in a new environment. It assumes you know your way around the Azure portal and PowerShell. It assumes nothing about SchedEx.


How the component fits into your Azure

How the Autonomous Component connects to your systems


  1. The component is an Azure App Service (Linux) that runs all the time.
  2. It keeps its job queue in its own Azure SQL database and writes its logs to an Azure file share. Both are created for it.
  3. Every connection starts from the component. Nothing outside your Azure has to reach it for transfers to run. Your administrators can open its job dashboard and health page, but only from the IP addresses you allow.
  4. How big a server it needs depends on how many activities your transfers carry. The sizes, and when to use each, are in the server size table.


Who does what

WhoWhat they doWhere
SchedEx Tenant Admin (someone in your organization with that role in SchedEx)Registers the component in SchedEx, creates its sign-in token, downloads the artifacts, and moves the first transfers to the component.1.4, 2, deployment step 6
Azure administratorFills in the parameter file, creates the Azure resources and deploys the application.3, 4
Microsoft Entra administratorCreates app registrations and grants consent, only for SharePoint and the dashboard sign-in.1.5, 1.6
Database administrator (the person or group you name as SQL admin)Gives the component access to its database.deployment step 2
Network team and host-system ownersSupply the IP addresses to allow, and open host-system firewalls to the component.1.3, deployment step 6





1. Prerequisites

1.1 Checklist

Collect everything in this list before you start.


#What you needWho has it
1An Azure subscription, and an empty resource group or the right to create one.Azure team
2The Azure permissions in 1.2.Azure team
3A Windows computer with PowerShell 7 and a recent Azure CLI (Microsoft's az command) with Bicep. To update both, run az upgrade, then az bicep upgrade, in PowerShell.You
4Your Microsoft Entra tenant ID.Entra administrator
5The user or group that will be the database administrator: its sign-in name (for a group, its display name), its object ID, and whether it is a user or a group.Entra administrator
6The public IP addresses of the computer you deploy from, of the database administrator's computer, and of your administrators (office or VPN).Network team
7The SchedEx address you use (which one).Your Tenant Admin
8A name and a region for the resources.You
9The component's Identifier and service token (1.4).Tenant Admin
10Only if transfers will use SharePoint: an app registration with a certificate (1.5).Entra administrator
11Only for Primavera P6 message-level encryption: the Key Vault that holds the P6 certificate, its resource group, and whether it uses access policies or Azure role-based access control (RBAC) (how to check).P6 owner
12Only if you want the application log in your own monitoring: an Application Insights connection string.Azure team
13A safe place for the parameter file (3). It holds the service token, and may hold passwords.Password manager or Key Vault


Where to find each value for the parameter file is explained in Setup bicep parameters for the Autonomous Component.


1.2 Azure permissions

TaskPermissionWhere
Create the resources (deployment step 1)Owner, or Contributor plus User Access Administrator. The template gives the application a role on its storage account, and that needs the right to assign roles.The resource group
P6 encryption only: give the component access to the Key VaultThe right to assign roles (RBAC vault) or to edit access policiesThe Key Vault
Give the component access to its database (deployment step 2)Be the database administrator from row 5 of the checklistThe SQL database
Deploy the application (deployment step 4)Website Contributor or Contributor, from an allowed IP addressThe App Service


You need no SchedEx role for the Azure work.


1.3 Network: what the component connects to

Give this table to your network and security teams. "Out" means the component opens the connection.


#ConnectionDirectionPortWhyWhat to allow
1SchedExOut443 (HTTPS)Asks for work every few minutes and reports results.Nothing, unless your network blocks outgoing traffic from Azure. Then allow the SchedEx address.
2The component's SQL databaseOut, inside Azure1433Its job queue.Nothing. The template opens the database firewall to Azure services.
3The component's file shareOut, inside Azure445 (SMB)Logs, and local Storage at Home copies. Azure connects the share to the app.Nothing by default. If an Azure Policy closes storage accounts to public networks, allow this App Service, or the share cannot be connected.
4Microsoft sign-in and SharePointOut443Only with SharePoint: login.microsoftonline.com, graph.microsoft.com, <your-tenant>.sharepoint.com.Only if you block outgoing traffic.
5Azure Key VaultOut443Only with P6 message-level encryption.The Key Vault's network rules must let the App Service in.
6Application InsightsOut443Only if you set a connection string.Only if you block outgoing traffic.
7Your host systemsOutThe port each host listens on, usually 443Reading and writing schedules.Each host's firewall must allow the component's outgoing IP addresses (you find them in deployment step 6, once the component exists). A host inside your own network also needs a network path from Azure.
8Your administrators → the componentIn443Home page, job dashboard (/jobs), health page (/health, /health-ui).Only the IP addresses in the allow-list.
9Your deployment computer → the component's deployment endpointIn443Uploading the application (deployment step 4).Only the IP addresses in the allow-list.


The component has no proxy setting. It uses the network of the App Service.


1.4 Register the component in SchedEx (Tenant Admin)

SchedEx gives work only to a component it knows.


  1. In SchedEx, open Tenant Admin → Clients → Autonomous Component.
  2. Select Add New Component. Enter a Name your colleagues will recognize, for example "Contoso production". Leave Maximum parallel transfers at 1 and keep Is Active ticked. Select Create.
  3. In the new row, copy the Identifier with the copy button. It is not a secret.
  4. Open the row's menu (⋮) and select Service Tokens. Select Add New Token, pick an Expiry date, and select Create.
  5. Copy the token at once. SchedEx shows it only this one time. Treat it like a password.
  6. Give the Identifier and the token to the Azure administrator over a secure channel.


Check: the new row is in the list with Is Active = Yes.


When the token expires, the component stops working. SchedEx reminds Tenant Admins 14, 7 and 3 days before. Put the expiry date in your calendar.


1.5 Prepare SharePoint access (only if you use SharePoint)

Skip this if no transfer will save files to SharePoint or read Excel, Microsoft Project or XER files from SharePoint.


The component signs in to SharePoint with an Entra app registration and a certificate. The download from SchedEx does not contain a certificate. Your IT department sets both up as described in What IT must set up in Connecting SchedEx to SharePoint. The certificate is its step 5.


Keep from it:


  1. The app registration's Application (client) ID and Directory (tenant) ID, and the certificate's password. They go into the parameter file as appSharePointConfiguration.
  2. The file AutonomousCert.pfx. It is added to the application in deployment step 3.
  3. The certificate's expiry date. When it expires, the component can no longer reach SharePoint.


Check: the app registration shows the certificate, and its SharePoint permission with a green "Granted" status.


1.6 Choose how to protect the job dashboard

The component has a job dashboard where you can see and rerun its jobs. Choose one of two ways to protect it:


  1. Microsoft Entra sign-in (recommended). Create an app registration (Entra admin center → App registrations → New registration) and note its client ID. To let in only some people, also create app roles for users and groups (roles you give to the people who may sign in) and note their values. Then, under Enterprise applications → your app → Users and groups, give each person or group one of those roles; people without a role cannot open the dashboard. These values go into the parameter file as hangfireAzureAdAuthOptions, and enableHangfireAzureAdAuth must be 'true'; otherwise the dashboard keeps the user name and password sign-in. After creating the Azure resources, when you know the web app's name, go back to the app registration: under Authentication, add a Web platform with the redirect URI https://<your-app-name>.azurewebsites.net/signin-oidc and tick ID tokens.
  2. A user name and password. Choose both now; they go into the parameter file as backgroundJobConfiguration.





2. Download artifacts

The Tenant Admin downloads the files from SchedEx. SchedEx calls this download the artifact.


  1. In SchedEx, open Tenant Admin → Installation Center → Autonomous Component.
  2. Find the newest Version. Its Release Note link tells you what is in it.
  3. In that row, under Artifact, download the artifact: Autonomous.Client.<version>.zip.
  4. Under Installation Guide, you can also download that version's installation guide, as a zip file.
  5. Unzip the artifact. It contains two more zip files:


FileWhat it isWhat to do with it
Azure.IaC.zipThe infrastructure templates: main.bicep, the Modules folder, and a sample parameter file main.sample.bicepparam.Unzip it. You use it in 3 and 4.
AutonomousClient.Server.zipThe application.Do not unzip it. You deploy it as it is in 4.


  1. Give both files to the Azure administrator.


Check: you have main.bicep, the Modules folder, main.sample.bicepparam and AutonomousClient.Server.zip.





3. Fill in the parameter file

The Azure administrator copies main.sample.bicepparam, opens the copy in a text editor such as Notepad or Visual Studio Code, and fills in the values for your organization. Where to find each value, and what it means, is in Setup bicep parameters for the Autonomous Component.


Check: every value in the sections you use is filled in, your IP addresses are in the allow-list, and the file is stored somewhere safe.



4. Deploy the component

The Azure administrator creates the Azure resources, uploads the application, checks that it works, and, with the Tenant Admin, moves the first transfers to it. The steps are in How to deploy the Autonomous Component.



5. After the installation

  1. To change a setting later, such as a new service token or a bigger server: Autonomous Component settings.
  2. To keep an eye on the component and its transfers in SchedEx: Reading the Autonomous Component Dashboard.
  3. To choose which transfers run on their own and which need approval: Controlling transfers for the Autonomous Component.
  4. To keep your own copy of every transfer: Setting up Storage At Home.



Read More

  1. Setup bicep parameters for the Autonomous Component
  2. How to deploy the Autonomous Component
  3. Autonomous Component settings
  4. 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