Deploying Metabase on Microsoft Azure

Metabase can run on Azure App Service with a private PostgreSQL application database, but the networking, upgrades and identity choices decide how well it holds up. This page covers what to plan before you build.

On this page

Deploying Metabase on Azure: when a self-hosted Azure setup fits

Metabase's Azure guide builds a resource group, a VNET, a PostgreSQL application database behind a private endpoint, and a web app running the Metabase Docker image. This pattern suits a team that already runs its workloads in Azure, wants analytics traffic and the application database to stay inside its own subscription, and has the people to operate a web app, a private network and a managed database. If your warehouses, identity provider and network controls already sit in Azure, the components in that guide map onto work you already own. If most of your data lives in another cloud or in on-premises systems, confirm the network paths from the web app's virtual network to each data source before you commit to this layout, because every database Metabase queries must be reachable from that network.

Be clear about what the open source edition gives you in this layout. The Metabase open source edition is free to run, and the Azure pattern does not change its licensing. However, single sign-on, row and column level permissions, multi-tenant data segregation, and usage analytics and auditing are included only in the Pro and Enterprise plans, according to Metabase's pricing page. A governed analytics rollout inside an Azure subscription usually needs at least some of those controls, so the plan decision belongs in the design phase, not after go-live. Ask your Metabase account team to confirm current plan contents and the Azure-related costs you will carry yourself, such as the App Service plan, database tier, storage, and networking.

How the Metabase Azure components connect

The diagram starts with users reaching the Metabase web app through the Azure front end. The web app runs inside a VNET integration subnet and reaches the PostgreSQL application database only through a private endpoint, so the database has no public path. The customer's data sources and identity provider sit outside the Azure network as separate trust boundaries, and each connection from Metabase to them should be checked against an explicit allowlist and firewall rule before go-live.

Traffic paths and trust boundaries for a Metabase deployment on Azure.

Azure hosting options for Metabase and when each fits

This table compares the main hosting decisions for Metabase on Azure App Service: scaling up or out, where the PostgreSQL application database sits, and whether to run the Docker image or the JAR. Read each row against your user load, network rules and upgrade process, then confirm current SKU and feature availability in your Azure region before you commit.

DecisionOptionTrade-offWhen it fits
ScalingScale up (larger App Service plan)Adds CPU and memory to one instance, so capacity has a ceiling and a single instance remains a single point of failureSmaller teams or early rollouts where load is modest and simplicity matters most
ScalingScale out (more instances)Requires a shared application database and consistent configuration across instances, and major upgrades need the migration lock handled carefullyLarger user populations where you need more concurrent capacity and redundancy
Application database placementPrivate PostgreSQL with a private endpoint in the VNETKeeps database traffic off the public internet but adds network design work and needs private DNS resolution for the web appProduction deployments where the data plane must stay inside your network boundary
Application database placementPublic PostgreSQL endpoint with firewall rulesSimpler to connect and troubleshoot, but exposes the database endpoint and widens the network attack surfaceShort-lived evaluations or proof-of-concept environments only
Application database placementEmbedded H2 databaseRequires no separate service, but Metabase documents it for demos rather than production useNot suitable for production; use only for a throwaway test instance
PackagingDocker image on App ServiceMatches the image tags and health check approach in Azure's Metabase guide, which makes upgrades a tag changeTeams that want container-based releases and a standard rollback path by image
PackagingMetabase JAR managed by youGives more control over the Java runtime and host setup, but you own patching, Java versions and the service wrapperTeams with an established Java operations practice or specific host requirements not met by the container
OperationsHealth checks, logs and upgrade processAzure's guide covers these areas, but exact settings depend on your image tag and App Service configurationConfirm the health check path, log routing and upgrade steps against the current guide before go-live

Setup sequence for Metabase on Azure App Service

This sequence takes an empty Azure subscription to a running Metabase web app that reaches a private PostgreSQL application database over a private endpoint. Each step closes with a check you can run before moving on.

  1. Create the resource group and naming plan

    The platform or cloud team creates one resource group for the Metabase stack, using a naming convention that marks it as an analytics workload with its environment. Confirm the region with your data residency rules and the services you need before creating anything else. The step is done when the resource group exists, tags for owner, environment and data classification are applied, and the team has written down which subscription and region it uses so later steps stay consistent.

  2. Create the virtual network and subnets

    The network team creates a virtual network with one subnet for the App Service integration and a separate subnet for private endpoints. Keep the database endpoint in its own subnet so network rules can target it directly. Confirm address ranges do not overlap with corporate networks you will reach through VPN or peering. The step is done when both subnets exist, the App Service subnet is delegated for web app VNET integration, and the address plan is documented.

  3. Provision PostgreSQL with a private endpoint

    Create a PostgreSQL server for the Metabase application database, which Metabase recommends over the embedded H2 database for production. Disable public network access and create a private endpoint in the endpoint subnet, with a private DNS zone so the app resolves the server name to a private address. Create the Metabase database and a dedicated login with only the rights it needs. The step is done when a host inside the VNET resolves the server name to a private IP and connects with the Metabase login, and public access is confirmed disabled.

  4. Create the web app from the Metabase image

    Create an App Service web app for Linux containers that pulls the Metabase Docker image, using a tag you have chosen and tested rather than an untracked latest tag. Enable VNET integration into the App Service subnet so outbound traffic to the database uses the private path. Set the container port to the port Metabase listens on, and store the database password in Azure Key Vault or an app setting marked as a secret. The step is done when the container starts and the app reports a running state in the portal.

  5. Configure application database settings

    Set the environment variables that point Metabase at the external PostgreSQL database, including the database type, host, port, name, user and password, and the site URL that users will type into the browser. Generate and store the encryption secret key in the same secure store as the database password, because losing it makes stored connection details unreadable. Confirm the image tag and environment values match what you recorded in the earlier steps. The step is done when the first launch completes its setup flow and the admin account can sign in.

  6. Verify health checks and logs

    Configure the App Service health check to call Metabase's health endpoint, and confirm the platform marks the instance healthy after startup. Open the application log stream and the database connection logs to check for migration messages, connection errors and warnings about the site URL. Restart the app once and watch that it returns to healthy without manual steps. The step is done when the health check passes after restart, logs show a clean startup, and a test query from an admin account runs against a connected data source.

Keeping the application database off the public network

The application database holds Metabase's users, permissions, saved questions, dashboards and connection settings, so the Azure design keeps it off the public network. The guide's architecture places the PostgreSQL application database behind a private endpoint inside a VNET, so the database has a private address in your network and no public path for Metabase traffic to take. The web app that runs the Metabase Docker image reaches that address through VNET integration, which gives the app outbound access into the same network. Decide early which subnets hold the database endpoint and which hold the app integration, and keep them separate so network rules can be written for each.

Name resolution is the part most likely to break this design. The web app connects using the database's hostname, and that name must resolve to the private endpoint address from inside the VNET. If the private DNS zone for PostgreSQL is not linked to the VNET, or the app is using a DNS server that does not forward to Azure's resolver, the hostname resolves to the public address. The connection then fails or, if public access is still enabled, goes out over the public path. Test resolution from the app itself, for example by running a lookup from the app's console, before you deploy Metabase, and confirm that public network access on the database server is disabled.

Treat the exact DNS, firewall and public access behavior as something to confirm in your own tenant, since Azure's private DNS and networking options change and depend on your existing hub and spoke setup. Ask your network team which DNS servers the VNET uses and whether a central firewall sits on the path. Record the private endpoint address and the zone name in your build notes so operations can check them after a restart, a scale operation or a redeployment. The Metabase Azure guide sets out the reference architecture you should compare against.

Security and operational controls to plan on Azure

The controls below decide whether a Metabase web app on Azure is safe to run and safe to change. Each one connects the application database, the configuration that reaches the app, the network path to it, and the logs and backups you will need when something goes wrong.

Application database encryption key

Metabase encrypts sensitive values stored in its application database, such as database connection credentials, using an encryption key set through the MB_ENCRYPTION_SECRET_KEY environment variable. Store that key in Key Vault, not in app settings as plain text, and record who can read it. Confirm that every instance in the app uses the same key, and that a restored backup can only be read with the key that was active when it was taken. Losing the key makes the stored connection credentials unreadable.

Application database docs

Managed identity and Key Vault

Give the web app a managed identity and grant it read access to Key Vault for secrets such as the database password and the encryption key, so no credentials sit in deployment files or the portal in clear text. Confirm the role assignments are scoped to the one vault and the secrets Metabase needs. Check that the PostgreSQL login used by Metabase has rights only to its own application database, and that rotation of each secret has an owner and a procedure.

Restricted public access on the web app

Decide which network paths can reach the Metabase web app and turn off the rest. The database should be reachable only through its private endpoint. For the app, confirm whether access is limited to a front door, gateway or corporate address ranges, and whether the default public hostname is still reachable. Test from outside the approved network to confirm the restriction works, and record the TLS settings and the site URL Metabase uses.

Log retention and diagnostics

Send App Service logs and platform diagnostics to a Log Analytics workspace or storage account that you control, and set the retention period to match your audit policy. Metabase's own logs should be included so that failed sign-ins, permission changes and query errors can be traced. Confirm who can read the logs, whether they contain query text or personal data that needs protection, and how long they are kept after an incident.

Application database backup before upgrades

Metabase runs application database migrations automatically when a new version starts, and its documentation recommends backing up the application database first. On Azure, take a point-in-time backup of the PostgreSQL server or a manual copy before changing the image tag, and confirm you can restore it into a separate server to test. Rollback is done by restoring that backup or by running the migrate down command with the newer JAR, so know which path your team will use before the upgrade window opens.

Upgrade docs

How upgrades and scaling work on Azure

Should I scale up or scale out a Metabase web app on Azure?

Scale up when a single instance needs more CPU or memory, and scale out when you need more concurrent capacity across instances. The Azure guide covers both options for the web app, so compare them against what you observe in logs and load. Keep in mind that every instance connects to the same application database, so the database sizing must keep pace with any scale-out. Confirm the exact App Service plan tiers and instance limits with Azure before you size the plan, because those change over time. Test the chosen size with your real dashboard load before you rely on it.

Why do I need to reduce a Metabase cluster to one node before a major upgrade?

Metabase runs its application database migrations automatically when a new version starts, and the upgrade docs describe a migration lock that prevents more than one node from running those migrations at once. For a major upgrade, scale the web app to a single instance, complete the upgrade, and then scale back out. Plan a short window for this, since users cannot rely on a multi-instance setup during the change. Check the upgrade docs for the exact steps that apply to your release.

What should I back up before upgrading Metabase on Azure?

Back up the application database before every upgrade. The Metabase upgrade docs recommend this step because migrations change the schema automatically and the upgrade cannot be undone by simply redeploying the old image. On Azure, this means a point-in-time restore point or a logical dump of the PostgreSQL application database, taken and verified before the new image is deployed. Record the Metabase version that wrote the backup so you can match it to a rollback. Confirm the backup and restore process in a test environment first.

How do I roll back a failed Metabase upgrade on Azure?

The recommended rollback is to restore the pre-upgrade application database backup and redeploy the earlier Metabase image. The upgrade docs also describe running the migrate down command with the newer JAR as an alternative. Restoring the backup is usually the safer path because it returns the database to the state the older version expects. Keep the earlier image tag available in your registry so the redeploy is quick. Test the rollback before a production change, and confirm which steps apply to your version with the upgrade docs.

Can I run migrate down with the newer Metabase image instead of restoring a backup?

Yes, the Metabase upgrading docs list running the migrate down command with the newer JAR as a rollback option, but they recommend restoring the pre-upgrade application database backup first. Migrate down reverses schema changes, which can be harder to predict than a full restore, especially after users have created content on the new version. Use it only if you have tested it against a copy of your database and understand what it reverses. Treat the backup restore as your default plan.

Should I upgrade one release at a time or jump straight to the latest Metabase?

For instances running versions older than 40, the upgrade docs recommend upgrading release by release rather than jumping directly. Upgrading in steps lets each set of migrations complete and gives you a checkpoint to verify. For newer instances, follow the path in the docs for your starting version. Check the version support page to see whether your current release is an LTS or non-LTS release, since that determines how often you need to plan an upgrade.

How often do Metabase releases reach end of life, and why does it matter for Azure planning?

LTS versions are supported for 14 months, while non-LTS versions usually reach end of life after about 2 months, and every release receives bug fixes and security updates until its end-of-life date. Plan upgrade windows around these dates so your Azure deployment does not run unsupported code. Check the version support page for the current end-of-life dates before scheduling work, since they change with each release.

Limits to confirm before you build

Four things decide whether this Azure design holds for your organization: the identity features your plan includes, where Azure offers the services you need, the Metabase release you pin, and whether the VNET can reach your data sources. Confirm each one before you provision resources, because changing any of them later means rebuilding parts of the stack.

Identity features on the open source edition

The open source edition supports Google sign-in and LDAP. SSO through JWT, OIDC, SAML, advanced LDAP group sync and SCIM provisioning require the Pro or Enterprise plan. If your Entra ID tenant is the identity source, confirm whether Google sign-in or LDAP meets your requirement, or price the Pro plan into the build. Row and column level permissions are also limited to the paid plans, so check them against your data access model.

Metabase pricing

Region and SKU availability

Confirm that the Azure region you plan to use offers the App Service plan tier, PostgreSQL Flexible Server configuration and private endpoint support you need. Availability varies by region and SKU, and quota for your subscription can block a deployment at the last step. Check this with your Azure account team or the Azure portal before you choose a region, because moving a database later is slower than choosing correctly up front.

Metabase version and support window

Choose the Metabase release before you write infrastructure code, since the image tag and the upgrade path depend on it. LTS releases receive support for 14 months, while non-LTS releases usually reach end of life after 2 months. Metabase 64 is an LTS release with end of life on 1 December 2027, and Metabase 65 was released on 12 October 2026. Record the end-of-life date in your change calendar so the upgrade happens on your schedule.

Version support

Data source connectivity from the VNET

Each database Metabase queries must be reachable from the App Service integration subnet through private networking, peering, a private endpoint or a firewall rule. Confirm the network path, DNS resolution for private zones and the ports your database uses before you plan the subnet layout. Also confirm that the application database and the analytics sources sit in networks your security team has approved for this traffic.

Questions buyers ask before deploying Metabase on Azure

What does it cost to run Metabase on Azure?

The total is three components: Azure resources, the Metabase plan, and labor. Azure resources cover the web app that runs the Metabase container, the PostgreSQL application database, the private endpoint, the virtual network, and logging. These are billed by Azure and depend on the size and tier you choose. The Metabase plan is separate. The Open Source edition is free, while Starter lists at $100 per month or $90 per month billed yearly with the first 5 users included, and Pro lists at $575 per month or $517.50 per month billed yearly with the first 10 users included, according to the Metabase pricing page. Additional users cost $6 (Starter) or $12 (Pro) per month. Labor is a one-time build cost plus recurring upgrades and support. Ask any quote to list each component separately and to state which costs recur monthly.

How long does a Metabase deployment on Azure take?

Duration depends on how many requirements are already settled before the build starts. The build itself covers the resource group, the virtual network, the PostgreSQL application database with a private endpoint, the web app, health checks, logging, and a tested upgrade procedure. Timing grows when identity, network routing, or data source access still need decisions. Teams that have not yet chosen an identity provider or confirmed firewall paths to their data sources usually spend the most time there. No duration is fixed in this page, so ask the provider to state the timeline in the written scope, with the decisions that must be made by your team listed as dependencies.

What does the work need from our team?

The work needs named owners on your side for four areas: Azure subscription access and policy, network connectivity to the databases Metabase will query, identity and single sign-on, and the people who will use and approve the analytics. Azure access should include rights to create resource groups, virtual networks, private endpoints, and web apps. Network owners need to confirm routes and DNS for the private endpoint and for each data source. If you plan to use SSO, note that SAML, OIDC, JWT, and SCIM require the Pro or Enterprise plan, while Google sign-in and LDAP are available on Open Source and Starter, per the Metabase people and groups documentation. Decide this before the build, because it changes the plan cost.

Can our internal team deploy Metabase on Azure alone?

A team with Azure networking experience, PostgreSQL administration skills, and someone who can operate a Java application can deploy Metabase on its own. The Metabase Azure guide describes the main building blocks, so the build is documented. The main risks for an internal team are private endpoint DNS, identity configuration, upgrade handling with application database backups, and verification that data sources and backups work after a restore. Teams without recent experience in these areas often run a short pilot first. If your team does the work alone, write down an owner for each Azure resource, a backup and restore test, and an upgrade runbook before users depend on the instance.

What drives the effort up on an Azure deployment?

Four factors push effort up most. The first is the number of data sources and their network locations, since each private route and firewall rule needs testing. The second is identity: SSO with group mapping takes longer than a local login. The third is the database and backup design, including point-in-time restore and restore tests. The fourth is the upgrade path. Metabase runs application database migrations automatically on upgrade, and the upgrading guidance recommends backing up the application database first, reducing a cluster to a single node for major upgrades, and upgrading release by release from versions older than 40. Scaling choices between scale-up and scale-out also affect how much tuning is needed. Compliance evidence, such as access reviews and logging retention, adds work when it must be produced for an assessor.

What should we ask for in a written quote?

Ask for a quote built from a written scope that lists each deliverable and the environment it applies to. Include the following items: the Azure resources to be created and who will own their billing, the Metabase edition and user count assumed, the data sources and identity providers in scope, the backup and restore test, the health check and logging setup, the upgrade runbook, and the handover format. Ask which costs are one-time and which recur, such as ongoing support or retainers. Confirm what is excluded, including Azure consumption, Metabase licenses, and changes to data sources after go-live. Request assumptions in writing so that any change in scope can be priced against them. DeployOpen does not publish a price list, and a quote follows from the written scope.

Does a Metabase deployment on Azure need security and compliance work?

Yes, the deployment needs security decisions before go-live, and the scope should say who makes them. The private endpoint keeps the application database off the public internet, but you still need to confirm access control to the web app, secret handling for the database credentials and the Metabase encryption key, and which users can reach the instance. Row and column level permissions, usage analytics, and auditing are included only in the Pro and Enterprise plans, according to the Metabase pricing page, so the plan decision affects what evidence you can produce. DeployOpen prepares systems, controls, and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors and certification bodies perform those assessments.

How DeployOpen scopes an Azure Metabase deployment

DeployOpen agrees the scope of an Azure Metabase deployment in writing before work starts, and that document is the basis for the quote. The written scope covers the subscription layout: which resource group holds the web app and the PostgreSQL application database, how environments such as test and production are separated, who holds Owner and Contributor rights, and where logs and backups are kept. It also records the networking design, including the VNET address plan, the subnet for the private endpoint, DNS resolution for the database hostname, and which outbound destinations the Metabase container needs to reach. Each of these items is named so that your network and security teams can review them before anything is provisioned.

The scope then addresses identity and access. It states how administrators sign in to the Azure portal, which managed identities or secrets the web app uses to reach the database and how those secrets are stored and rotated, and how Metabase users will sign in once the instance is live. Where you plan to use an identity provider such as Microsoft Entra ID, the scope says whether that setup is in or out of the engagement, because SSO in Metabase depends on the plan you hold. The upgrade plan is part of the same document: it sets out how the application database is backed up before each change, who approves a new Metabase version, and how a rollback would be carried out. Handover documentation, covering architecture diagrams, runbooks and the operational checks described above, is listed as a deliverable with its own acceptance criteria.

Ongoing work is separate from the build. Patching of the Metabase image, periodic upgrades, and continued review of logs and health checks can be provided under a retainer, which is also agreed in writing and sized to the systems in scope. Before you sign, ask for the scope document to name each Azure resource, the owner of every decision listed above, and the items you are responsible for, such as domain names, certificates and Entra ID tenant configuration. Those responsibilities determine how much of the quote is build effort and how much is recurring support.

How DeployOpen works on Metabase deployments

DeployOpen plans, implements, hardens, documents and supports self-hosted Metabase inside your own Azure subscriptions, so the App Service, private PostgreSQL application database and network design can be reviewed by your security and platform teams. Engagements are fixed-scope, with the deliverables agreed in writing before work starts.

How we scope

  • Confirm the Azure subscriptions, regions, resource group naming and network ranges that Metabase will use.
  • Agree which data sources, identity provider and users the first Metabase release must reach.
  • Record the Metabase version to deploy, the upgrade approach and the owners who approve changes.

How we build

  • Build the resource group, VNET, private endpoint for the PostgreSQL application database and web app as agreed.
  • Configure the Metabase container, environment settings, health checks, logging and scale settings in your subscription.
  • Test connectivity from the app to the database and to each data source, then verify access and log output.

How we hand over

  • Document the architecture, network paths, configuration decisions and the steps for upgrades and rollback.
  • Walk your platform and security teams through the running environment and the backup and restore procedure.
  • Deliver the documented setup with a runbook for application database backups before any upgrade.

How we support

  • Offer ongoing support, upgrades and continuous testing as a retainer, scoped in writing.
  • Review each planned Metabase upgrade against the release notes and the application database backup first.
  • Retest the Azure configuration after changes to networking, scaling or identity so evidence stays current.

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.