The Simplest Way to Make Azure Data Factory and Metabase Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure data factory and metabase to move raw data into clean charts. Azure Data Factory loads the warehouse, and Metabase reads that warehouse for reports. This setup keeps heavy data jobs away from your daily business charts. Data engineers build the pipelines, and analysts explore the final tables with ease. Both tools meet at your cloud database or data warehouse. Clear rules at that database keep your data safe and fast. How data and roles flow between azure data factory and meta

Your coding agents run with your access.

Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.

Teams use azure data factory and metabase to move raw data into clean charts. Azure Data Factory loads the warehouse, and Metabase reads that warehouse for reports.

This setup keeps heavy data jobs away from your daily business charts. Data engineers build the pipelines, and analysts explore the final tables with ease. Both tools meet at your cloud database or data warehouse. Clear rules at that database keep your data safe and fast.

How data and roles flow between azure data factory and metabase

Azure Data Factory pulls raw records from apps, files, and operational databases. It cleans those records and writes them into a central data warehouse. Metabase does not talk to Azure Data Factory during this step. Instead, Metabase logs in to that same warehouse to run chart queries.

Each tool needs its own database role to do its job well. Azure Data Factory needs a role that can create tables and write rows. Metabase only needs a role that can read the final reporting tables. Separating these two roles stops a bad chart query from changing your data.

Identity management also differs between the data pipeline and the reporting app. Azure Data Factory often uses a cloud managed identity to log in. Metabase uses a dedicated database user account to fetch results for dashboards. You should tie both accounts to narrow schemas inside your warehouse.

Common failure modes and how to scope database roles

Many teams make the mistake of sharing one database login across both tools. When both tools share an admin login, any chart user can alter tables. A shared account also makes your database logs very hard to read. You cannot tell if a slow query came from a pipeline or a chart.

Broad permissions also expose raw customer records to every person using Metabase. Azure Data Factory often lands raw tables before it cleans them up. If Metabase can read the staging schema, analysts might query raw PII. This includes sensitive fields like emails, phone numbers, card numbers, and national IDs.

Azure RBAC + End-to-End Encryption: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix this by giving Metabase access to one reporting schema only. Keep all staging tables in a separate schema that only the pipeline reads. Next, set resource limits on the Metabase database user so heavy charts fail fast. This keeps a huge dashboard query from blocking your hourly data loads.

How to coordinate pipeline runs and dashboard refreshes

Timing is another common pain point when running pipelines and dashboards together. If Metabase runs a big cache refresh during a load, queries can lock. Analysts might also see half-loaded numbers on their morning sales charts. Good schema design solves this problem without complex scheduling tools.

Have Azure Data Factory write new data into a hidden work table first. Once the load finishes, the pipeline can swap the work table into place. Metabase then reads a complete table every single time a user opens a chart. Your team gets fresh data and stable query speeds all day.

Add runtime guardrails and masking beside your databases and APIs

Login rules, role grants, and CI checks govern who connects to your stack. Yet any allowed script, engineer, or AI agent still runs commands with the full scope of its role. For workloads on Postgres, MySQL, SQL Server, MongoDB, ClickHouse, Kubernetes, SSH, or internal HTTP services, hoop.dev sits beside the service as an open-source proxy, a sidecar for your database or API.

Before a query runs, hoop.dev guardrails check the statement against your rules. An AI Analyzer you configure can score intent or hold risky calls for human review. Next, hoop.dev data masking rewrites sensitive fields in responses, and each verdict is logged per listener. Explore the MIT-licensed project on GitHub.

Frequently asked questions

Does Metabase connect directly to Azure Data Factory pipelines?

No, Metabase does not read data straight from Azure Data Factory pipelines. Azure Data Factory writes data into a database, and Metabase reads from that database.

What database permissions should the Metabase service account have?

Give the Metabase account read-only permissions on your clean reporting schema only. Never grant it write permissions or access to raw staging tables.

How do we stop raw PII from showing up in Metabase charts?

Block the Metabase role from reading raw staging schemas in your warehouse. You can also apply data masking to rewrite emails and phone numbers in results.

The query runs. The emails stay hidden.