Deploy OpenShare Engine on Azure
OpenShare Engine is Saga IT’s maintained build of the Open Integration Engine, a healthcare integration engine for HL7 v2, FHIR, DICOM and X12. The Microsoft Marketplace listing offers it as a free virtual machine image that runs in your own Azure subscription: engine 4.7 on Ubuntu 24.04 LTS, as an x64 Gen2 image that supports Trusted Launch, with Java 21 bundled and the signed OpenShare admin plugin preinstalled.
The software is free. You pay Azure only for the resources you create: the VM, its disks and network traffic. The engine’s source code is public under the MPL 2.0 at SagaHealthcareIT/open-integration-engine.
Before you create the VM
Section titled “Before you create the VM”You need:
- An Azure subscription, with permission to create virtual machines and their network resources.
- An SSH public key. The VM signs you in with SSH keys.
- The public address range of the network you will administer the engine from, in CIDR
form. A single address is written as
203.0.113.10/32. - Optional: a launch document from the OpenShare console, to register the engine with OpenShare (see Optional: register with OpenShare).
- Optional: your own PostgreSQL, SQL Server, MySQL or Oracle database that the VM can reach.
Settings
Section titled “Settings”| Setting | What to choose | Default |
|---|---|---|
| Resource group | A new group for this engine makes it simple to remove later | None: choose or create one |
| Virtual machine name | A name for this engine | None |
| Region | A region close to the systems the engine exchanges data with | None |
| Security type | Trusted launch virtual machines. The image supports it | Trusted launch |
| Image | The OpenShare Engine image that the listing selected. Leave it as set | The current version |
| Size | Standard_D2s_v4 (2 vCPUs, 8 GB) is tested and suits most single-site engines. B-series sizes earn CPU credits, and a busy engine can use them up and slow down. At first boot the engine sets its Java heap to half the VM’s memory, up to 8 GB |
The portal’s suggestion |
| Authentication type | SSH public key, with a user name of your choice | SSH public key |
| Public inbound ports | None. You add port 8443 from your own range after creation (step 3). If you allow SSH here, the portal opens port 22 to any address: narrow that rule afterwards | Varies |
| OS disk | The embedded database and logs live on this disk, so size it for your message volume and retention | 30 GB |
| Public IP (Networking) | Keep a public IP address to reach the engine over the internet. Without one (over VPN or ExpressRoute), OpenShare registration needs outbound internet access, for example through a NAT gateway | New |
| Boot diagnostics (Monitoring) | Leave it on. The initial password is printed to the serial log | On, with a managed storage account |
| User data (Advanced) | See Optional: register with OpenShare and Optional: your own database. Select Enable user data and paste the document. Use User data, not Custom data: the engine can’t read custom data. Read only at first boot | Empty |
The portal’s newer, preview version of the create form has no User data field. If you need user data, switch to the previous create experience first.
In the commands on this page, replace GROUP with the resource group, VM_NAME with the
VM’s name, NSG_NAME with its network security group’s name (the portal names it
VM_NAME-nsg), AZURE_USER with the user name you chose and PUBLIC_IP with the VM’s
public IP address.
| Port | Used for | Open after creation? |
|---|---|---|
| TCP 8443 | The engine’s web interface and API, over HTTPS | No. Allow it from your own range (step 3) |
| TCP 22 | SSH | Only if you allowed it when creating the VM. Narrow it to your own range |
| Your channel ports, for example an MLLP listener | Your interfaces | Never opened for you. Add rules yourself (step 6) |
| TCP 80 and 443 | Not used by the engine | Don’t open them |
| TCP 8080 | The engine’s plain-HTTP port | Don’t open it |
The engine’s outbound traffic (to your systems and, if you registered it, to OpenShare over HTTPS) uses the network security group’s outbound rules, which allow outbound traffic to the internet unless you change them.
Step 1: Create the VM
Section titled “Step 1: Create the VM”- Open the OpenShare Engine listing on Microsoft Marketplace and select Get it now. Marketplace takes you to the Azure portal.
- Select Create, fill in the settings above, then select Review + create and Create.
- Wait for the deployment to finish. After the VM is running, the engine needs a few more minutes for its first start.
Step 2: Get the administrator password
Section titled “Step 2: Get the administrator password”Each VM generates a random password for the engine’s admin user at first boot. There is
no default password.
-
Portal: open the VM and select Help, Boot diagnostics, Serial log. Look for the “OpenShare Engine initial login” block.
-
Azure CLI:
Terminal window az vm boot-diagnostics get-boot-log --resource-group GROUP --name VM_NAME -
Over SSH:
sudo cat /etc/openshare/initial-credentials(readable by root only).
Step 3: Open port 8443 to your own network
Section titled “Step 3: Open port 8443 to your own network”Add an inbound rule to the VM’s network security group that allows TCP 8443 from your own range only. Never allow it from any address.
az network nsg rule create --resource-group GROUP --nsg-name NSG_NAME \ --name allow-openshare-8443 --priority 1010 --direction Inbound --access Allow \ --protocol Tcp --destination-port-ranges 8443 --source-address-prefixes YOUR_RANGEIn the portal, the same rule is an inbound port rule on the VM’s Networking page.
Step 4: Sign in and change the password
Section titled “Step 4: Sign in and change the password”The engine has no sign-in page of its own in the browser. There are two ways to manage it.
From any browser, through OpenShare. Register the engine with OpenShare, Saga IT’s online
service, when you create it; see Optional: register with OpenShare.
Registering is free and needs an OpenShare account. Then, in the OpenShare console, select
Connect on the server and sign in as admin with the password from
step 2. To register an engine that is already
running, sign in standalone first, then follow
Adding a server.
Standalone, with the desktop OpenShare Administrator. An Administrator launcher opens it:
-
Browse to
https://PUBLIC_IP:8443to check that the engine answers. The VM ships a self-signed certificate, so your browser warns on the first visit. The page shows Service Available and the address for an Administrator launcher.
-
Install the OpenShare Administrator Launcher on a Windows or Linux computer; there is no macOS version. An engine you connect to directly needs no OpenShare account: download the launcher from the OpenShare Engine releases on GitHub. If you already use another Administrator launcher, give it the address the page shows.
-
In the launcher, choose Add engine…, give the engine a name and enter
PUBLIC_IP:8443. Then select it and choose Connect. -
The launcher shows the certificate’s SHA-256 fingerprint. Before you choose Trust certificate, compare it with the engine’s. Over SSH (step 5):
Terminal window openssl s_client -connect localhost:8443 </dev/null 2>/dev/null | openssl x509 -noout -fingerprint -sha256 -
Sign in to the OpenShare Administrator as
adminwith the password from step 2.
Either way, once you’re signed in:
- Change the password right away. The engine does not force a change at first sign-in. The new password needs at least 15 characters, with an upper-case letter, a lower-case letter, a digit and a symbol.
- Delete the root-only copy on the VM:
sudo rm /etc/openshare/initial-credentials. The serial log keeps the initial password, which no longer works once you have changed it.
Five failed sign-ins lock the account for an hour. For production use, install your own TLS certificate in place of the self-signed one.
Step 5: Connect over SSH and check health
Section titled “Step 5: Connect over SSH and check health”ssh AZURE_USER@PUBLIC_IPsudo systemctl status oieservicesudo tail -n 100 /opt/OpenShareEngine/logs/mirth.logSSH needs an inbound rule for TCP 22 from your own range. The engine is healthy when
oieservice is active (running) and https://PUBLIC_IP:8443 shows Service Available.
Step 6: Allow your channel ports
Section titled “Step 6: Allow your channel ports”Each listener channel needs its own inbound rule, from your partner’s range only, with a priority no other rule uses. For example, for an MLLP listener on 6661:
az network nsg rule create --resource-group GROUP --nsg-name NSG_NAME \ --name allow-openshare-mllp-6661 --priority 1020 --direction Inbound --access Allow \ --protocol Tcp --destination-port-ranges 6661 --source-address-prefixes PARTNER_RANGEOptional: register with OpenShare
Section titled “Optional: register with OpenShare”OpenShare is a separate online service from Saga IT. Registering with it is free and optional, and the engine works fully without it. It needs an OpenShare account and acceptance of the OpenShare terms. The service stores no patient data.
-
In the OpenShare console, add a server. In its setup dialog, choose Cloud image, then Generate launch document, and copy the document. It is valid until the time shown under it.
-
Paste it into User data when you create the VM.
-
At first boot the engine registers itself. It then connects out to OpenShare over HTTPS. No inbound port is needed.
-
When the console shows the server as registered, clear the VM’s user data. It holds a single-use token, and any process on the VM can read it. The VM can keep running:
Terminal window az vm update --resource-group GROUP --name VM_NAME --user-data ""
The document is read only at first boot. Adding it to an existing VM has no effect. The serial log says what became of it.
- The engine starts but never shows as registered. The engine ignored the document, for example because it had expired or was pasted incompletely. Register the running engine from the OpenShare console instead (see Adding a server), or create a new VM with a new document.
- The engine does not start. The document’s database or engine settings are invalid,
or the database can’t be reached. Correct the user data (
az vm updatewith--user-data) or the database’s network path, then restart the VM. First boot runs again until it succeeds.
If you leave user data empty, the engine runs standalone. You can still register it later; see Adding a server.
Optional: your own database
Section titled “Optional: your own database”User data can also carry a document that points the engine at your own PostgreSQL, SQL
Server, MySQL or Oracle database, alone or together with OpenShare registration. Put TLS in
the JDBC URL (for PostgreSQL, sslmode=require). For the document format, email
support@openshare.health. Without such a document, the engine uses its embedded database on the
OS disk.
That document contains the database password. After first boot, clear the VM’s user data with the command above. Use a database account for the engine alone.
Maintenance
Section titled “Maintenance”- Operating system updates. Apply Ubuntu updates in a maintenance window:
sudo apt update && sudo apt upgrade. - Backups. With the embedded database, everything is on the OS disk. Back the VM up with Azure Backup or take disk snapshots on a schedule. With your own database, back that database up as well.
- Copies of the engine. A copy of a registered engine, such as a VM restored from a backup or created from a snapshot of this VM’s disk, starts as the same OpenShare server. While the original runs, keep the copy without outbound internet access: if both reach OpenShare, both answer the same connections, and partner messages and console sessions can reach either one. To run a copy as a server of its own, see Copies of a registered engine.
- Size. Resize the VM; Azure restarts it. The Java heap was set at first boot and does
not follow the new memory size: change the
-Xmxline in/opt/OpenShareEngine/conf/custom.vmoptions, then runsudo systemctl restart oieservice. - New engine versions. Saga IT publishes new image versions on Microsoft Marketplace. Existing VMs are not updated in place. Back up the engine’s database before you move to a new version.
- Removing the engine. If the engine has its own resource group, delete the group. Otherwise delete the VM together with its OS disk, network interface, public IP address and network security group.
Support
Section titled “Support”Email support@openshare.health. Include the engine version and build date, which the OpenShare
Administrator shows under Other, About (or, if you can’t sign in, the whole line in
/opt/OpenShareEngine/logs/mirth.log that ends “server successfully started”), the VM size
and the relevant lines from that log. Never include
patient data in a support request. See also Getting support.