Running Orthanc on Azure with Azure SQL and Blob Storage

Running Orthanc on Azure means choosing a database engine for the index, a Blob Storage plugin for DICOM files and a way to protect both. This page covers the options, the setup sequence and the checks to run before go-live.

On this page

Running Orthanc on Azure with Azure SQL and Blob Storage: when it fits

This setup fits a hospital or imaging provider that wants Orthanc running inside an Azure subscription the organization controls, with its patient data, network boundaries and access policies kept under its own governance. Orthanc keeps two things: a database index that tracks patients, studies, series and instances, and the DICOM files themselves. Both parts need a home chosen on purpose. On Azure, the index can go to Azure SQL only through the ODBC plugins, which the Orthanc project validated against Microsoft SQL Server 2017 and 2019 on GNU/Linux. If your team prefers a single, well-documented database engine, the PostgreSQL plugin is the other route, and it is the one the Orthanc documentation recommends for large datasets.

The DICOM files go to Azure Blob Storage through the Azure object storage plugin, which is included in the full Docker image rather than the default one. That choice affects your image tag, your container build and your upgrade process, so settle it before you write infrastructure code. Confirm with the Orthanc Book plugin list which plugins your chosen image version bundles, and confirm that the ODBC driver version you plan to use matches the SQL Server versions the project validated. Ask your Azure SQL vendor contact and your DBA whether the service tier you intend to use is supported for the ODBC connection pattern before you commit to it.

Scale should shape the decision without being overstated. The Orthanc Book cites production hospital deployments holding more than 65 TB of data, 340,000 studies and around 150 million instances, but those figures describe what some sites have run, not what a new Azure deployment will need. Estimate your own study volume, growth rate and retention period first, then test the index database and storage path against that profile. Treat the database engine choice as a decision you will live with for years, and write down the reasons for it so the next platform review has a record to check.

Azure SQL through ODBC or PostgreSQL: which index database fits

Choose this route when your organization already runs Microsoft SQL Server or Azure SQL as its governed database platform and needs the Orthanc index to sit under the same backup, access and monitoring controls. Orthanc reaches Microsoft SQL Server, including Azure SQL, only through the ODBC plugins, and the project validated that path against MSSQL 2017 and 2019 on GNU/Linux. The index is then one more database your team administers, not a separate platform.

  • Supported route: the ODBC plugin is the only documented way to connect Orthanc to Azure SQL, so there is no alternative plugin to fall back on.
  • Validated versions: the project's validation covers MSSQL 2017 and 2019 on GNU/Linux. Ask whether your target Azure SQL service tier and SQL Server version fall within what has been validated.
  • Driver stack: the ODBC driver version, the Orthanc build that loads the plugin and the Linux base image must be matched and tested together.
  • Skills: your DBAs already know the tooling, but ODBC connection strings, driver packaging and Linux container behavior are areas where your team may need outside help.
  • Licensing and operations: Azure SQL is billed by Microsoft under your existing agreement, while Orthanc itself carries no paid edition.

Before committing, confirm the current ODBC plugin release, the driver version and the Azure SQL service tier against the project's ODBC plugin page, and test a full restore of the index.

Configuration options for Azure deployments

This table compares the main choices for an Orthanc deployment on Azure: the database engine, where DICOM files are stored, the Docker image variant and readiness for multiple instances. Read each row as a decision point, and use the trade-off column to see what each option costs you in flexibility, tooling or operational effort. The main takeaway is that Azure Blob Storage pushes you to the full image, and Azure SQL pushes you to the ODBC route with its own validation limits.

ChoiceOptionTrade-offWhen it fits
Database engineAzure SQL through the ODBC pluginOnly route to Microsoft SQL Server, including Azure SQL, per the Orthanc ODBC plugin documentation, which lists validation on MSSQL 2017 and 2019 on GNU/LinuxYour organization already operates Azure SQL and has DBAs and monitoring for it
Database enginePostgreSQL pluginAnother database to run, back up and patch, but the Orthanc docs recommend it for large datasetsYou want the best-documented scaling path or expect several hundred thousand instances
File storageLocal disk on the VM or container volumeSimplest setup, but storage is tied to one host and must be backed up and encrypted by youSmall or pilot archives, or when the platform team already manages persistent disks
File storageAzure Blob Storage pluginNeeds the full Docker image and a storage account to govern; access keys or identities must be managed carefullyYou want DICOM files in Azure-native object storage with Azure-side controls
File storageS3 or Google Cloud object storage (comparison only)Different cloud, so it adds a second provider to contract, monitor and secure; a strong choice only if you already run that cloudYour estate is already on AWS or Google Cloud, or you are comparing portability
Docker image variantDefault imageSmaller image, but it does not include the Blob Storage pluginLocal disk or Azure SQL setups where Blob Storage is not needed
Docker image variantFull imageLarger image with more bundled plugins, which must be kept at matching versions during upgradesRequired when you use the Blob Storage plugin
Multi-instance readinessSingle instance with a shared databaseSimplest to operate, but there is no redundancy if the instance failsPilots, non-critical workloads or sites with a short recovery window
Multi-instance readinessSeveral instances on one databaseSupported with the Orthanc 1.9.2 and PostgreSQL or MySQL plugin 4.0 combination or later; confirm ODBC support for your exact versions before relying on itYou need horizontal scaling or high availability and can plan load balancing and storage access

How to set up Orthanc on Azure step by step

This sequence takes a team from an empty Azure subscription to a running Orthanc instance with a chosen database, Blob Storage for DICOM files, authenticated access and a verified restart. Each step ends with a check you can record before moving on.

  1. Plan the resource group and network boundaries

    Decide the resource group, region, virtual network, subnets and private access paths before creating anything. Your cloud or platform team confirms which subnet hosts the Orthanc container, which DICOM and HTTP ports modalities and viewers reach, and whether private endpoints will be used for the database and storage account. Record the decisions in a short design note, including who owns each resource and how access is granted. The step is done when the network diagram and access list are approved by the security and infrastructure owners.

  2. Provision the database for the index

    Create the database that will hold the Orthanc index. If you choose Azure SQL, Orthanc can only reach Microsoft SQL Server, including Azure SQL, through the ODBC plugin, so the container image must include the ODBC driver for Linux and the plugin must be enabled. If you choose PostgreSQL, deploy the server in the same network and enable the PostgreSQL plugin. Confirm the exact driver and plugin versions with the Orthanc ODBC plugins documentation and your vendor's supported matrix, since the project validated the ODBC plugins against specific MSSQL releases on GNU/Linux. The step is done when a test connection succeeds from the subnet that will host Orthanc and the database user has only the rights the plugin needs.

  3. Create the storage account and container

    Create a storage account with the access tier, redundancy and network rules your data policy requires, then create a private container for DICOM files. Disable anonymous public access and restrict the account to the Orthanc subnet or its private endpoint. Use a managed identity or a scoped credential for the Orthanc process, and store the credential in a secrets service rather than in a configuration file. The step is done when a test blob written from the Orthanc subnet succeeds and the same write from an unapproved network is refused.

  4. Install the full Docker image with the required plugins

    Deploy the Orthanc container using the full image tag, which includes the database and cloud storage plugins, rather than the default image. Enable the ODBC or PostgreSQL plugin for the index and the Azure storage plugin for file storage, and mount persistent volumes for any local working paths. Pin the image to a specific released version so that plugin and core versions match. Check the release notes for the version you pin, because the project publishes the NEWS file for each release. The step is done when the container starts, the logs show each plugin loaded without errors and the Orthanc System endpoint reports the expected version.

  5. Configure authentication, users and secrets

    Keep remote access disabled until authentication is in place. If you enable RemoteAccessAllowed, set AuthenticationEnabled to true and define users in RegisteredUsers, with passwords supplied through environment variables or Docker secrets rather than plain text in files. Terminate TLS at a reverse proxy or load balancer in front of Orthanc, and make sure the export and script-execution routes stay disabled as the security guidance recommends. The security owner reviews the configuration file. The step is done when an unauthenticated REST request is rejected and an authenticated request with a registered user is accepted.

  6. Run a test upload and retrieve

    Send a small set of test DICOM instances from an approved modality or from a test client, then query and retrieve them through the REST API or the viewer. Confirm that the study appears in the index, that the file is written to the Blob container and that the retrieved instance matches the original, including pixel data and key tags. Record the instance identifiers and checksums in the test log. Use only synthetic or de-identified images for this test. The step is done when the upload, index entry, blob object and retrieved copy all agree.

  7. Verify restart and data persistence

    Restart the Orthanc container and the database service, then repeat the query and retrieve from the earlier test. Confirm that the index still lists the study, that the blob object is still present and readable, and that the authentication settings were reloaded unchanged. Check the logs for plugin errors after restart. If the database is in a managed service, also confirm that its backup or retention setting is enabled as your policy requires. The step is done when the data survives the restart, the results match the earlier test and the evidence is saved for the change record.

How Orthanc, Azure SQL and Blob Storage connect

The diagram starts with clients and modalities sending requests to a reverse proxy in front of Orthanc. Orthanc keeps its index in Azure SQL through the ODBC plugin, which is the only supported route to Microsoft SQL Server including Azure SQL, while DICOM files go to Blob Storage through the Azure object storage plugin. The Azure virtual network forms the trust boundary. Check that the storage identity is granted only the access Orthanc needs, and confirm how the plugin authenticates to the storage account before go-live.

Request, index and file paths for Orthanc on Azure, inside the virtual network boundary.

Securing Orthanc archives on Azure

An Orthanc archive on Azure holds patient images, so access, transport, encryption and recovery need to be decided together. The cards below cover the Orthanc settings that control who reaches the server, the scripts and routes to keep closed, the encryption choices for files in Blob Storage, and the backup and logging you need to confirm on the Azure side.

HTTPS and reverse proxy for remote access

Orthanc only accepts HTTP connections from localhost by default. If you open remote access, the Orthanc documentation recommends HTTPS and a reverse proxy in front of the REST API and viewers. On Azure, confirm where TLS terminates (an Application Gateway, a load balancer or a proxy container), who manages the certificates, and that plain HTTP is blocked between the proxy and Orthanc where your policy requires it.

Orthanc security FAQ

Authentication with registered users

When RemoteAccessAllowed is enabled, set AuthenticationEnabled to true and define each account in RegisteredUsers. Accounts should map to named people or service identities, not a shared login. For larger teams, the advanced authorization plugin forwards each request's token to an external web service that decides access, so you can tie decisions to your identity provider. Confirm which option fits your access model before the Azure network is opened.

Authorization plugin docs

Disabling script and export routes

The Orthanc security FAQ warns that the /tools/execute-script route can let a malicious user run any system command, and that the export route can overwrite files. Both should stay disabled in an Azure deployment, where a compromised container could otherwise reach the storage account. Check the effective configuration in the running container, not only the file you wrote, and retest after each upgrade.

Client-side encryption and key handling

Files written to Blob Storage can be protected by Azure server-side encryption, by Orthanc-side client encryption, or both. Client-side encryption changes who can read the raw blobs, so it also changes how you handle key storage, rotation and recovery. Ask who holds the keys, where they are kept (for example, Azure Key Vault or a secret store your team controls), and how you would restore archives if a key is lost.

DICOM TLS for inter-site exchange

Orthanc supports DICOM TLS for exchanges with other sites starting with version 1.9.0. Use it for traffic between Orthanc and modalities, PACS or partner archives that cross networks you do not control. Each peer needs matching certificate trust and port rules, and the Azure network security group must allow the DICOM TLS port only from the expected sources. Confirm the peers that support TLS before planning the cutover.

Backup and audit logging of Azure resources

Orthanc stores the index in Azure SQL and the files in Blob Storage, so a backup plan has to cover both, along with the configuration and keys. Turn on diagnostic logging for the storage account, the database and the container host, and send logs to a location with restricted access. Test a restore of both the index and the blobs, and confirm how long each log and backup is retained against your policy.

Using the Azure sample setup as a starting point

A reference sample is a starting layout to adapt, not a production blueprint. Its job is to show how the pieces of an Orthanc deployment on Azure fit together: the Orthanc container, the database connection, the Blob Storage account for DICOM files and the configuration that binds them. Treat it as a tested skeleton for your own Infrastructure as Code, and expect to replace most of its defaults before anything holds patient images. Before reuse, confirm the sample's current contents in the Orthanc project sources, because the files, image tags and plugin settings may change between releases and the sample may not track the latest Orthanc version.

Check the sample against your own network first. Identify every public endpoint it creates, including the Orthanc HTTP port, DICOM ports and any storage or database endpoint, and decide which of them should exist at all. Replace open or permissive network rules with private endpoints, virtual network integration and firewall rules that only admit your modalities, viewers and reverse proxy. Confirm that the Orthanc HTTP API is not reachable from the Internet unless authentication, HTTPS and a reverse proxy are in place, as the Orthanc security documentation describes for remote access. Also review whether any sample route, such as script execution or export, is enabled, since those should remain disabled.

Then check identity and key management. The sample's managed identity or connection strings should be replaced with a role assignment scoped to the one storage container and database the instance needs, and secrets should come from Azure Key Vault or your existing secret store rather than from files in the repository. Confirm who owns the storage account keys, how they rotate, and whether client-side encryption keys are held in a vault your security team controls. Write these decisions down before the first build, because the sample alone will not answer them for your organization.

Limits to confirm before you commit to Azure

Running Orthanc on Azure combines a database path, a storage plugin and a network layout that each carry their own support limits. The cards below list the points to settle with the vendor docs, your Azure tenant and a test environment before you commit budget and design to this setup.

ODBC validation scope

The ODBC plugins that connect Orthanc to Microsoft SQL Server, including Azure SQL, were validated against MSSQL 2017 and 2019 on GNU/Linux only. Treat that as the tested baseline, not a guarantee for newer SQL Server or Azure SQL releases. Ask the plugin maintainers in writing which SQL versions and operating systems they will support for your build, and record the answer in the design document.

ODBC plugin docs

Azure SQL service tier fit

The validated versions are older than the service tiers Azure currently offers, so the tier you pick needs its own test. Confirm that the ODBC driver and the authentication method you plan to use work with the tier, and measure index query times on a realistic study count. Ask Microsoft and the plugin maintainers which combinations they have tested, and budget a load test before production.

Blob plugin version match

Orthanc 1.13.0, released on 2026-08-15, rewrote storage-area access and DICOM parsing and transcoding to improve caching and reduce memory use. Plugin builds must match the core release you run. Check the Azure plugin version against 1.13.0 before upgrading, pin both versions in your container image, and rerun read and write tests after every core upgrade.

Orthanc release notes

Latency between compute and storage

Every DICOM file read or written by Orthanc crosses the network to Blob Storage, so the distance between the Orthanc container and the storage account affects viewer response times. Place both in the same Azure region where your rules allow, and test retrieval of a series from a viewer over your planned network path. Ask your network team to measure round-trip time from the compute subnet before sizing the cache.

Egress and data residency rules

Retrieval from Blob Storage to clients outside the Azure region can add egress charges, and moving patient images between regions can breach residency rules. Confirm with your legal and privacy team which regions and countries may hold imaging data, including backups and replicas. Ask Azure for the current egress terms that apply to your agreement, and keep the storage account, the database and the backups inside the approved boundary.

End-to-end large study testing

Small test studies rarely expose the limits that matter in production, such as multi-gigabyte series, long C-STORE transfers and parallel uploads from several modalities. Build a test set that matches your largest real modality output, then run store, query, retrieve, delete and restore through the full path: DICOM receiver, database, Blob Storage and viewer. Record timings and memory use so the results can be compared after each upgrade.

Common questions about running Orthanc on Azure

What does running Orthanc on Azure cost, and what is one-time versus recurring?

The cost has three parts: Azure consumption, Azure SQL pricing and staff time. Azure consumption covers compute for the Orthanc container, Blob Storage capacity and transactions, network egress and backups, and it recurs monthly and grows with stored data. Azure SQL is billed by the service tier you choose, so the database tier is a recurring line item that you can size up or down. One-time costs are the design, the initial build, the ODBC driver and plugin setup, and testing against your own imaging data. Ask any quote to separate these lines and to state which Azure region, tier and storage redundancy it assumes. The Orthanc Book does not publish Azure prices, so confirm current rates in the Azure pricing calculator before you commit to a budget.

How long does an Orthanc setup on Azure take?

Duration depends on the number of environments, whether the network design is settled, how many modalities and viewers connect, and how much data must be migrated. A single non-production environment with a clean network plan is much quicker than a multi-environment hospital rollout that needs firewall changes, identity integration and a validation phase with imaging staff. No duration is fixed by the project, so ask for a timeline in the written scope that lists each phase, the dependencies on your teams and the testing that must pass before go-live.

What does the work need from our organization?

The work needs four things from you. First, access to the Azure subscription with rights to create resource groups, virtual networks, Azure SQL, storage accounts and managed identities. Second, a network design that defines how modalities, PACS and viewers reach Orthanc, including private endpoints or VPN paths. Third, named data owners who can approve retention, access rules and encryption choices for patient images. Fourth, a test window with clinical or radiology users who can confirm that studies load and route correctly. Missing any of these usually moves the schedule more than the technical build does.

Can our internal team deploy Orthanc on Azure without outside help?

Yes, a team with Azure, Linux and DICOM experience can build it alone, since Orthanc is open source and the official Docker images and plugins are documented. The harder parts are the ODBC driver setup for Azure SQL, Blob Storage access and encryption choices, the network and firewall design inside a hospital, and the verification that studies store, query and retrieve correctly. Assess whether your team has someone who has run DICOM networking before. If not, plan time for that learning curve or bring in a partner for the design and testing phases.

Does Azure SQL work directly with Orthanc, and what is the alternative?

Azure SQL is reached through the ODBC plugins, because Microsoft SQL Server, including Azure SQL, is only supported through those plugins. The ODBC plugins were validated against MSSQL 2017 and 2019 on GNU/Linux, so check the newer SQL versions and your Linux image before you choose this route. The alternative is PostgreSQL, which has a dedicated plugin and is the path the Orthanc Book recommends for large datasets. Confirm with your architects which database your organization already supports operationally, because that choice affects backups, patching and staff skills.

Are Orthanc Team SRL services an option for an Azure deployment?

Yes. Orthanc Team SRL sells deployment, configuration and development services for Orthanc, and it offers pre-paid dedicated support hours that are valid for 12 months. Pricing is quoted on request, so ask them for a written quote that lists the hours, the scope, what is covered by the support hours and what is excluded. There is no paid edition of Orthanc, so you pay for services and time, not for the software itself. Ask how they would handle upgrades to the Orthanc core and the ODBC or storage plugins after go-live.

Can DeployOpen run an Orthanc deployment on Azure in our subscription?

DeployOpen plans, implements, hardens, backs up, documents and supports self-hosted open-source platforms inside the client's own infrastructure, including cloud accounts. Most engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts. Ongoing support, upgrades and testing are available as retainers. DeployOpen does not publish a price list, so a quote follows from the written scope. Ask for the scope to name the Azure resources, the network design, the test cases and the handover documents.

How DeployOpen scopes and delivers Orthanc on Azure

DeployOpen plans, builds and hands over Orthanc inside the Azure subscriptions, networks and data-handling rules your organization already uses. Each engagement starts with a written scope that names the database, storage, encryption and access decisions before any build work begins.

How we scope

  • Confirm which Azure SQL features the ODBC plugin path needs, and whether PostgreSQL is the better index choice for your dataset.
  • Record the Blob Storage account, container layout, encryption keys and network boundaries in the written scope before build work starts.
  • Agree in writing which Orthanc plugins, viewers and DICOM connections are in scope, and which are excluded.

How we build

  • Deploy Orthanc from the chosen Docker image in your Azure environment, with configuration kept as code in version control.
  • Connect the database and Blob Storage back ends, then test ingest, retrieval, deletion and restore against realistic study sizes.
  • Configure access control and RemoteAccessAllowed settings only as your security review approves, with script and export routes disabled.

How we hand over

  • Document the deployed architecture, configuration keys, secrets locations and the steps to upgrade Orthanc and its plugins.
  • Provide runbooks for backup, restore, monitoring and incident response so your own operators can run the system.
  • Walk through verification results with your security and platform teams and record open items with owners.

How we support

  • Engagements are fixed-scope, so scope changes and additional work are quoted in writing before they start.
  • Ongoing support, upgrades and continuous testing are available as a retainer, scoped to your environment.
  • Ask for the support boundaries, response expectations and upgrade responsibilities to be written into the agreement.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.