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

Published
Length
3 min read

Luis Felipe Dias

All posts

Teams use azure vms and metabase together to host data reporting apps in the cloud. The virtual machine runs the reporting app or holds the target data store. This setup lets analysts build charts from live databases inside a private network. It keeps both the app and the data inside your own cloud account. Engineers control the compute size, disk space, and network rules in one place. When set up well, analysts get fast answers without risking raw database security. How azure vms and metabas

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 vms and metabase together to host data reporting apps in the cloud. The virtual machine runs the reporting app or holds the target data store.

This setup lets analysts build charts from live databases inside a private network. It keeps both the app and the data inside your own cloud account. Engineers control the compute size, disk space, and network rules in one place. When set up well, analysts get fast answers without risking raw database security.

How azure vms and metabase handle logins and data flow

In a standard setup, the virtual machine runs the reporting app as a service. Users log in to the app through a web browser using their work accounts. You can link the app to an identity provider for single sign-on. Group mappings then place each user into the right reporting role on login.

Next, the app needs to read data from your cloud databases or virtual machines. The app opens a network path to the database port inside the virtual network. It uses a database user and a secret key or password to log in. When a user views a chart, the app sends a query over that link.

The database runs the query and sends the rows back to the virtual machine. The app then turns those rows into charts and tables for the user. Network security groups on the virtual machine control which ports can talk to each other. This keeps all query traffic inside the private cloud network at all times.

Common risks with shared accounts and broad network rules

Many teams start by using one strong database account for the whole reporting app. This single account often has full read and write power across all tables. If a user writes raw SQL in the app, that query runs with high rights. Someone could change records by mistake or read private tables they should not touch.

Shared database accounts also ruin your audit logs at the database layer. Every query from the reporting tool shows up under the exact same service user. When a slow or sensitive query runs, you cannot tell which person sent it. Database logs only show the machine address and the shared service name.

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

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

Network rules can also grow too wide when teams rush the initial setup. Opening database ports to the public internet to link the app creates big risks. Instead, keep the virtual machine and the database inside private subnets. Use strict firewall rules that only allow traffic between the exact hosts and ports.

Scoping database roles and protecting sensitive fields

To fix these risks, create a read-only database role just for the reporting app. Grant this role select rights only on the specific schemas needed for charts. Never give the reporting user permission to drop tables, change rows, or read system settings. If different teams need different data, set up separate database links with smaller roles.

You also need a plan for private fields like emails, phone numbers, and card numbers. Raw tables often hold national IDs or payment details that analysts do not need. Data masking rewrites matched fields in results before they reach the chart screen. This lets teams count users and track trends while keeping private details safe.

Finally, keep the virtual machine itself locked down with strict host rules. Limit who can log in to the virtual machine over SSH to run updates. Store the app state in a managed database rather than a local file. Back up that state database each day so you never lose your saved charts.

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

Should we run the reporting app on the same virtual machine as the database?

No, you should put the reporting app and the database on separate machines. Heavy queries or chart exports can use up memory and slow down the database. Splitting them lets you scale and reboot each machine on its own schedule.

How do we keep the reporting app running during virtual machine updates?

Run the app on two or more virtual machines behind a cloud load balancer. Store the app data in a shared external database so both machines stay in sync. You can then patch one machine at a time without dropping user traffic.

What is the safest way to let the app read a private database?

Place both the virtual machine and the database inside the same virtual network. Use private IP addresses and network security groups to allow only the database port. Pair this with a read-only database role that only sees approved reporting tables.

The query runs. The emails stay hidden.