The Simplest Way to Make Azure App Service and Power BI Work Like They Should

Published
Length
3 min read

Luis Felipe Dias

All posts

You link azure app service and power bi by sharing cloud identities and data stores. This setup lets your web app show live charts or feed data into reports. Teams use this pair to build portals with built-in business charts. The web app handles user sign-in and writes business events to a database. Then the report tool reads that data or renders visuals inside the web page. When you set up both tools well, users see fast charts with zero manual exports. How identity and data flow between azu

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.

You link azure app service and power bi by sharing cloud identities and data stores. This setup lets your web app show live charts or feed data into reports.

Teams use this pair to build portals with built-in business charts. The web app handles user sign-in and writes business events to a database. Then the report tool reads that data or renders visuals inside the web page. When you set up both tools well, users see fast charts with zero manual exports.

How identity and data flow between azure app service and power bi

Both tools live in the Microsoft cloud and share the same identity system. You should turn on a managed identity for your web app first. Next, you create a security group in your directory and add that identity. In your report workspace, you grant viewer or contributor rights to that group.

When a user loads your web app, the server requests an embed token. The app uses its cloud identity to call the report service API. It then passes that short token to the user browser to load the chart. No static passwords sit in your app settings or source files.

Data can also flow the other way when your app writes to a database. Your report workspace reads from that same database on a schedule or in real time. To keep this safe, both tools should use separate database roles. The web app gets write rights, while the report tool gets read-only rights.

Common failure modes and how to scope roles and networks

Many teams fail by using a single master user account for both tools. When that user leaves the company or changes a password, every chart breaks. Other teams grant broad admin rights to the web app across all workspaces. If an attacker compromises the web app, they can read every company report.

Unlogged queries also cause big headaches during a security audit. When ten apps use the same shared database login, logs show one generic name. You cannot tell which app ran a slow query or pulled private rows. Also, raw emails, phone numbers, or card numbers might slip into shared workspaces.

Service-to-Service Authentication + Azure RBAC: architecture patterns and best practices

Continue reading? Get the full guide.

Free. No spam. Unsubscribe anytime.

You can fix these risks by scoping every role to the smallest needed set. Give each web app its own workspace role and its own database user. Turn on row-level rules in your dataset so users only see their own tenant data. Mask sensitive fields so the database rewrites emails and national IDs in query results.

Network paths between your app, your database, and your reports also need strict limits. Put your web app and database inside a private virtual network. Block public traffic to the database so outside hosts cannot reach it. Use private endpoints so report refreshes travel over the internal cloud backbone.

Keeping embedded reports fast and safe in daily operations

Once your links work, you must watch token lifetimes and query load. Set embed tokens to expire after a short window that matches user sessions. If a user closes their browser, that token should stop working soon after.

Watch your database metrics when many users open embedded charts at the same time. Live report queries can slow down the database that runs your main web app. If report load spikes, point the report tool to a read replica instead. This split keeps your web app fast while leaders view heavy dashboards.

Review workspace access lists every month to remove old app identities and test accounts. Check your database audit logs to confirm each tool only queries allowed tables. Clear role boundaries and clean logs make audits simple for your whole engineering team.

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

How should my web app log in to the report service?

Use a cloud managed identity or a service principal placed inside a security group. Never use a personal user account with a static password for production apps.

How do I stop users from seeing other customer data in embedded charts?

Turn on row-level security inside your data model and pass the user identity in the embed token. The report engine will filter rows based on that user role.

Should the web app and the report tool share one database login?

No, you should give each tool its own database login and role. Give the web app read and write rights, and give the report tool read-only rights.

The query runs. The emails stay hidden.