← All postsWhat Is a Power BI Gateway and How Do You Set One Up?

What Is a Power BI Gateway and How Do You Set One Up?

Carlos GarciaCarlos GarciaPublished

What Is a Power BI Gateway and How Do You Set One Up?

You built a report in Power BI Desktop against a SQL Server sitting in your own building. It published fine. Then you set a refresh schedule and the service told you it needs a gateway, and suddenly you are reading about relays, clusters and outbound ports when all you wanted was yesterday's numbers in this morning's dashboard.

The gateway is the piece that makes that work, and it is genuinely simple once you see what it is doing. It is also surrounded by a lot of folklore, some of which contradicts Microsoft's own documentation. This guide sticks to what Microsoft publishes on Microsoft Learn, names the places where two of its own pages disagree, and flags the figures Microsoft does not publish at all.

What Is a Power BI Gateway? The Short Answer

Microsoft's own framing is the clearest starting point. The on-premises data gateway is "a locally installed Windows client application that acts as a bridge between your local on-premises data sources and services in the Microsoft cloud." It runs on a machine inside your network, and it is what lets a cloud service reach data that never leaves your premises.

The design choice that makes it palatable to security teams is the direction of travel. Microsoft states that the gateway "provides quick and secure data transfer and requires no inbound ports" to your network, needing only outbound ports to reach the Azure web service it connects to. Nothing from the internet dials into your network; the gateway reaches out and waits for work.

One clarification worth making early, because it trips up almost everyone: a gateway is not a sync tool and it does not copy your database into the cloud. It executes a query that the cloud service sends it and returns the result. If you imported the data, the result lands in the semantic model. If you used DirectQuery, the result is passed straight through to the visual that asked for it.

Not sure whether your reporting stack is set up the way it should be? Get a free SEO and analytics audit and see what a fresh pair of eyes finds.

Free audit

Where do you stand in AI search?

A manual SEO + AI search audit of your site: how ChatGPT, Gemini, Perplexity and Claude read and cite it today, and what to fix first. Report within 48 hours, no credit card.

Get my free audit

Or have it all done: AI SEO services, $999 once

How Does the Gateway Actually Move Your Data?

Microsoft documents the mechanism in six steps, and reading them once removes most of the mystery. The flow starts in the cloud, not on your machine, which is why no inbound port is needed.

Step 1: The cloud service builds the request. Microsoft describes it as follows: "The cloud service creates a query and the encrypted credentials for the on-premises data source. The query and credentials are sent to the gateway queue for processing when the gateway polls the service periodically." Note the word polls, which is where the outbound-only design comes from.

Step 2: The request is pushed to Azure Relay. "The gateway cloud service analyzes the query and pushes the request to Azure Relay." Azure Relay is the rendezvous point, and it is worth naming correctly because Microsoft's documentation does not call it Azure Service Bus even though the host names involved sit under a servicebus.windows.net namespace.

Step 3: The gateway picks the work up. "Azure Relay sends the pending requests to the gateway when it polls periodically. Both the gateway and Power BI service are implemented to only accept Transport Layer Security (TLS) 1.2 traffic." That TLS floor is explicit, which is useful when a security review asks.

Step 4: Credentials are decrypted locally. "The gateway gets the query, decrypts the credentials, and connects to one or more data sources with those credentials." This is the part security teams usually want to hear: Microsoft states that credentials "are encrypted and stored in the gateway cloud service" and "are decrypted at the gateway on premises."

Step 5 and Step 6: The query runs and the result goes back. The gateway "sends the query to the data source to be run," then "the results are sent from the data source back to the gateway and then to the cloud service. The service then uses the results." That is the whole loop.

A detail worth knowing if your network team objects to the TCP ports: Microsoft documents an HTTPS mode as an alternative. New installations have defaulted to HTTPS rather than direct TCP since the June 2019 release, and Microsoft notes that this default "doesn't apply to updated installations," so a gateway you have been upgrading for years may still be using TCP. It also states that if the gateway cannot communicate by TCP, "it automatically uses HTTPS."

Standard Mode or Personal Mode?

There are two modes and the choice is close to irreversible in practice, so it is worth getting right on day one. Personal mode is the quick option and it is far more limited than its install experience suggests.

The hard limit is stated plainly: "The on-premises data gateway (personal mode) works only with Power BI." Beyond that, "personal mode supports only Import semantic models that use scheduled or on-demand refresh." Microsoft then lists what it will not do, and the list is long: it does not support DirectQuery, live connection to Analysis Services, composite models, multiple custom connector sources in DirectQuery, virtual network data gateway, clustering, or high availability.

Sharing is the other wall you hit. Microsoft describes personal mode as one that "allows one user to connect to data sources and can't be shared with others," and its comparison table marks centralized gateway and data source management as unavailable in that mode. There is also a one-per-person rule: "Each Power BI user can run only one personal mode gateway. If the user installs another on a different computer, the most recent installation replaces the previous one."

Standard mode is the one most organizations actually need. Microsoft describes it as a gateway that "allows multiple users to connect to multiple on-premises data sources," adding that "with a single gateway installation, you can use an on-premises data gateway with all supported services." If you have ever seen it called the Enterprise gateway, that is the same thing under its old name, which Microsoft still acknowledges parenthetically.

Here is how the documented differences line up:

  • Services supported: standard mode covers Power BI, Power Apps, Power Automate, Azure Logic Apps, Azure Analysis Services and legacy Power BI dataflows; personal mode is Power BI only.
  • DirectQuery: supported in standard mode, not in personal mode.
  • Live connection to Analysis Services: supported in standard mode, not in personal mode.
  • Import and scheduled refresh: supported in both.
  • Centralized gateway and data source management: standard mode only.
  • Install rights: standard mode must be installed by a local administrator; personal mode does not carry that requirement.

Two practical notes close this out. Personal mode cannot run as a Windows service, which Microsoft states directly: it is "only an interactive application," and you need the standard gateway for service mode. And you can run both side by side on one machine, which Microsoft confirms explicitly, though never two gateways in the same mode on the same computer.

How Do You Install and Register One, Step by Step?

The installation itself is short. The decisions around it are what take the time, which is why the mode question above comes first.

Step 1: Pick the machine, not a laptop. Microsoft is blunt about this: "Don't install a gateway on a computer, like a laptop, that might be turned off, asleep, or disconnected from the internet. The gateway can't run under any of those circumstances." A server or an always-on virtual machine is the right home.

Step 2: Check the machine is eligible. Microsoft documents several outright exclusions. "The gateway can't be installed on a domain controller." Gateways "aren't supported on Server Core installations" and "aren't supported on Windows containers." If you plan to use Windows authentication, install the gateway on a computer in the same Microsoft Entra environment as the data sources.

Step 3: Sign in with the right kind of account. The requirement is a work or school account, which Microsoft calls an organization account. A personal Microsoft account will not do, and the person running the installer "must be the admin of the machine where the gateway is being installed."

Step 4: Name the gateway and record the recovery key. The name has to be unique across your tenant. The recovery key is the part people regret: you need it to recover or move the gateway later, and Microsoft states that "Microsoft doesn't have access to this key and it can't be retrieved by us." Put it in your password manager before you click past that screen, because there is no support ticket that recovers it.

Step 5: Add your data sources and match the names exactly. This is the single most common cause of a refresh that fails for no visible reason. Microsoft explains that "the link between the dataset and the gateway data source uses the server and database names," and that "the names must match." Its own example is unambiguous: if you used an IP address for the server name in Power BI Desktop, use the same IP address in the gateway data source, and if you used the SERVER\INSTANCE form, use that same form.

Step 6: Set privacy levels, because Desktop's are ignored. This one surprises experienced users. Microsoft states that "the privacy levels set in Power BI Desktop aren't honored by gateways," and that for import data source connections you must set the privacy level on the gateway side. Skip it and you will see refusals to combine two sources with an error that says nothing about privacy.

Getting the plumbing right is step one; knowing whether the reports on top of it are earning their keep is step two. Book a free audit and find out.

What Does the Machine Need, and What Has to Be Open?

Microsoft publishes both a minimum and a recommended specification, and the gap between them is wide enough to matter. The minimum is .NET Framework 4.8, a supported Windows build, and 4 GB of disk space for performance monitoring logs in the default configuration. Note that this is .NET Framework, not the newer cross-platform .NET, and that the supported operating systems are listed as Windows 10, Windows 11, Windows Server 2019, Windows Server 2022 and Windows Server 2025. If your runbook still names Windows Server 2016, it is out of date against the current list.

The recommended specification is considerably heavier: an 8-core CPU, 8 GB of memory, a 64-bit version of Windows Server 2019, 2022 or 2025, and solid-state storage for spooling. Microsoft's separate sizing guidance repeats the same shape, recommending that you "start with a machine with at least 8 CPU cores, 8 GB of RAM, and multiple Gigabit network adapters." That sizing page is also the place Microsoft confirms the gateway can be installed "on a server on-premises, or VM-hosted infrastructure as a service (IaaS)," which is the first-party answer to whether an Azure virtual machine is acceptable.

On the network side, the headline is the one from earlier: "The gateway doesn't require inbound ports." What it does need is a specific set of outbound ones, and Microsoft lists them precisely: "TCP 80, 443, 1433, 5671, 5672, and from 9350 through 9354." Each has a purpose. Port 443 carries HTTPS and authentication, port 80 is used only for an internet connectivity test, 5671 and 5672 are the AMQP pair, the 9350 to 9354 range is the Azure Relay TCP range, and 1433 is there for data sources running on Azure Cloud Services and virtual machines.

The host names are documented too, and they are the practical thing to hand a firewall team. The main ones are download.microsoft.com for the installer and version checks, powerbi.com and analysis.windows.net to identify the relevant Power BI cluster, the Microsoft Entra sign-in endpoints for authentication, servicebus.windows.net for Azure Relay traffic, msftncsi.com for the connectivity test, and gatewayadminportal.azure.com for management in the portal. Microsoft also publishes separate tables for government and China cloud regions, so do not reuse the public-cloud list in those environments.

The good news is that the list shrinks after setup. Microsoft states that once the gateway is installed and registered, "the only required ports and IP addresses are those needed by Azure Relay." There is also a built-in test: run the network ports test from the gateway app, and the result reads either Completed (Succeeded) or Completed (Failed, see last test results).

Which Microsoft Services Can Use It?

This looks like a simple question and it is where Microsoft's own documentation is least consistent. Three first-party pages give three different lists, and rather than pick one, it is more useful to know where they agree.

The gateway overview page gives the longest list, naming Azure Analysis Services, Azure Data Factory, Azure Logic Apps, Microsoft Fabric, Power Apps, Power Automate and Power BI. Importantly, it introduces that list with the word "including," so Microsoft does not present it as exhaustive even on its own terms.

The data integration documentation hub gives a shorter one, describing the gateway as providing data transfer between on-premises data and "several Microsoft cloud services, such as Power BI, Power Apps, Power Automate, Azure Analysis Services, and Azure Logic Apps." The personal-mode comparison table gives a third variant, listing those same five plus legacy Power BI dataflows.

The overlap is what you can rely on. Power BI, Power Apps, Power Automate, Azure Analysis Services and Azure Logic Apps appear on all three pages. Azure Data Factory and Microsoft Fabric appear on one page only. If your architecture depends on the gateway serving Data Factory or Fabric specifically, treat that as a claim to verify against your own tenant rather than as a settled fact, because Microsoft has not repeated it consistently.

How Long Does a Gateway Version Stay Supported?

The support window is tighter than most teams assume, and it is the part of gateway ownership that most often turns into an unplanned incident. Microsoft's statement appears on more than one page and is worth memorizing: "Currently, Microsoft actively supports only the last six releases of the on-premises data gateway. We release a new update for data gateways every month."

Six monthly releases is roughly a six-month window, which means a gateway nobody has touched since last year is almost certainly out of support. Microsoft maintains a page listing exactly which versions those are, describing it as covering "the last six updates for the on-premises data gateways" and stating that "these updates are the versions that Microsoft supports." As of the time of writing, the newest listed release is the November 2026 update, build 3000.342, with the window reaching back to June 2026.

What happens when you fall out of that window is documented separately, and it escalates. Microsoft states that "after a gateway goes out of support, the Power BI service can block operations that route through the outdated gateway." Before that, there is a grace period: "during the final 90 days before the end-of-support date, operations continue, but you can receive warnings in email, refresh history or an XMLA response."

Then it stops being a warning. Microsoft states that after the end-of-support date, "the service can block scheduled refresh, on-demand refresh, and DirectQuery operations that route through the outdated gateway." The error you will see reads: "The on-premises data gateway version that this semantic model uses is no longer supported. Please upgrade your data gateway to the latest version to restore connectivity."

Here is the trap, and it is the reason this section exists. That warning message, and the one that precedes it, both use the word deprecated: "The on-premises data gateway version that this semantic model uses is deprecated and will stop working in the future." People see that, search for it, and conclude the gateway product is being retired. It is not. The deprecation is of a specific build that has aged out of the six-release window, and the fix is an update rather than a migration. The product itself is shipping on a monthly cadence, its minimum requirements were recently refreshed to include Windows Server 2025, and nothing on Microsoft's overview, hub, FAQ or release pages carries a retirement notice.

Worth noting as a soft spot: Microsoft describes this policy two ways across two pages. The overview and update pages frame it as a rolling six-release window; the Power BI gateway FAQ frames it as a fixed end-of-support date per version with a 90-day warning period, and never mentions the six-release count. These are probably two descriptions of one policy, but no single Microsoft page reconciles them, so avoid quoting a precise number of months of support as though it were settled. Two operational requirements come with updating: gateway admin permission is needed, and Microsoft requires "a minimum of 10 GB of available hard drive space" to perform the update.

Can You Make a Gateway Highly Available?

Yes, through clusters, and the feature does two distinct jobs that are easy to conflate. Microsoft introduces it as follows: "You can use an on-premises data gateway cluster to avoid single points of failure and to load balance traffic across gateways in a cluster."

The ceiling is explicit and confirmed on two separate pages: "Each cluster can support up to 10 gateway members." Microsoft adds a grandfathering note for anyone already over that line, stating that clusters "currently running more than 10 members continue to operate but not allow new additions unless a member is deleted first."

Two operating rules matter more than the member count. First, keep versions aligned: Microsoft advises making sure "the gateway members in a cluster are running the same gateway version, as different versions could cause unexpected failures based on supported functionality." Second, do not leave dead members in place. Microsoft recommends disabling or removing an offline member, warning that otherwise "we might try to execute a query on that offline member, before moving to the next one," which it says "can negatively affect the performance."

The distinction between failover and load balancing is where documentation gets slippery, so here is the part that is consistent. By default, a cluster gives you failover: Microsoft states that "the gateway cloud service always uses the primary gateway in a cluster unless that gateway isn't available," in which case "the service switches to the next available gateway in the cluster." Load balancing is a separate setting you turn on, found by selecting the gear icon, then Manage connections and gateways, then Distribute requests across all active gateways in this cluster. With it enabled, member selection is random: Microsoft states that if a cluster with load balancing enabled receives a request, "it randomly selects a gateway member."

In the interest of accuracy, one sentence on that same Microsoft page does not fit the rest. It states that when the distribute-requests setting is disabled, the cluster uses round-robin distribution instead of random selection, which contradicts the three sentences describing failover-to-primary behavior and reads backwards on its face, since disabling distribution should not produce a distribution algorithm. We are flagging it rather than repeating it as fact. Plan on the documented and internally consistent behavior: failover by default, optional random load balancing when you switch it on. One more caveat if you use Dataflow Gen2: Microsoft notes the primary member must be up to create new or edit existing connections.

What Limits Does Microsoft Actually Publish?

This is the section where knowing what is not documented is as useful as knowing what is, because the gaps are where invented numbers tend to fill in.

The one that catches architects is a hard constraint on model design. Microsoft states it three ways in a row on its data-refresh page: "A semantic model can only use a single gateway connection. In other words, it is not possible to access on-premises data sources across multiple gateway connections. Accordingly, you must add all required data source definitions to the same gateway." If a model needs two on-premises sources, both definitions go on one gateway, full stop. Note the precise wording too: Microsoft says gateway connection here, not gateway cluster, and that distinction is worth preserving rather than paraphrasing away.

The payload limits are specific and small enough to matter for wide tables. Microsoft publishes a 2 MB request limit and an 8 MB compressed data response limit for read operations, and separately, "when you use the gateway with Power BI in DirectQuery mode, there's a 16-MB uncompressed data response limit."

Permissions are documented as three gateway-level roles, and the exact names are worth getting right because close variants circulate. They are Admin, Connection creator, and Connection creator with sharing. An admin can manage and update the gateway, create connections, manage users in all three roles, and manage access to every connection on the gateway. A connection creator can create connections and test the cluster's status but cannot manage or update the gateway and cannot add or remove other users. A connection creator with sharing adds the ability to share the gateway with others as a connection creator, but still cannot remove a user. A separate set of roles governs individual connections, named Owner, User, and User with sharing, where a plain user can use the connection in reports and dataflows but "isn't allowed to see or update credentials."

Now the absences, which are the most useful thing in this section. Microsoft publishes no row limit and no throughput figure for the gateway. Its only guidance on the subject is to check that your network connection has good throughput, with the observation that "each environment is different, and throughput depends on the amount of data that's sent." The sizing page likewise declines to give a number, offering instead the sensible principle that "there's no point sizing your gateways to deliver more than what the Power BI service supports." If you find a rows-per-second or megabytes-per-second figure attributed to the gateway, it did not come from Microsoft.

Reports are only worth the traffic that reaches them. Claim a free audit and see where the gaps are.

Where Does This Trip People Up?

Most gateway incidents are not exotic. They cluster into a handful of documented causes, and recognizing them saves hours.

Name mismatches are first by a distance, and the fix is the exact-match rule covered in the install steps above. If a model refreshed yesterday and fails today after someone changed a connection string in Desktop, check the server and database names on both sides before anything else.

Privacy levels are second, and the error never mentions them. Because Microsoft states that Desktop's privacy levels "aren't honored by gateways," a query that merges two sources can work locally and refuse to run on refresh. The gateway-side privacy level is a separate setting on each import data source connection, and it has to be set deliberately.

When you do need to escalate, Microsoft documents exactly how to collect evidence. In the gateway app, "select Diagnostics and then select the Export logs link," and the result "is saved to the ODGLogs folder on your Windows desktop in .zip format." There is also an Event Viewer path: open Event Viewer, expand Event Viewer then Applications and Services Logs, and select the node named On-premises data gateway service. Microsoft documents three service log categories, information, error and network, written to the local application data folder for the gateway, with age-based retention on newer installations.

One structural trap to know about when you go looking for any of this yourself: Microsoft hosts two different articles at nearly identical paths. The substantive overview and architecture articles live under the data-integration path, while the similarly named pages under the Power BI path are thin navigation stubs. The two Frequently Asked Questions pages are genuinely different documents with different content, which is why the version-expiry detail and the licensing answer appear on different pages. If a search drops you on a page that seems oddly empty, check for the sibling.

Gateway, VNet Gateway, or Neither?

There are three ways to answer the question of how a cloud report reaches your data, and the on-premises gateway is only one of them.

If your data already lives in a cloud service that Power BI can reach directly, you do not need a gateway at all. This is the option people skip past, and it is worth a moment's thought before installing anything, because a gateway is a server you now own, patch monthly and monitor.

If your data sits inside an Azure virtual network rather than in your own building, the virtual network data gateway is the purpose-built answer. Microsoft describes it as a service that "lets you connect your Azure and other data services to Microsoft Fabric and the Power Platform," and the significant operational difference is that there is nothing to install: "No installation is required because it's a Microsoft managed service." Microsoft gives two explicit cases where it tells you to choose it over the on-premises gateway. First, Private Link: "using an on-premises data gateway with private link enabled isn't supported," and Microsoft recommends the VNet gateway, "which does support private link scenarios." Second, certain region gaps for Fabric workloads, where it again names the VNet gateway as the alternative.

The catch is cost and capacity. The VNet gateway is available on P, F, and A4 or higher capacity SKUs, with Microsoft recommending F8 and above among the F SKUs, and it "is billed as an additive premium infrastructure charge for that capacity." Microsoft also states that Power BI dataflows and datamarts are not supported on it. So the managed option is not simply a better gateway; it is a different product with a licensing bill and its own exclusions, and it is the reason a lot of teams end up running an on-premises gateway even on cloud-hosted infrastructure. If refresh failures are what brought you here in the first place, our walkthrough of the OLE DB or ODBC error in Power BI covers the five causes Microsoft actually documents, a missing or offline gateway among them.

That leaves the on-premises gateway as the default for genuinely on-premises data, and it is worth noting what Microsoft does and does not say about paying for it. Its FAQ answers the question of licensing prerequisites directly: "There are no licensing restrictions for installing and registering a gateway." That is a statement about licensing restrictions, not about price, and we could find no Microsoft page that states the gateway is free. The honest summary is that no price is published for it and no license is required to install and register it, which is not quite the same claim.

So the decision comes down to where the data physically lives. Cloud-native source, no gateway. Azure virtual network with Fabric or Premium capacity already paid for, VNet gateway. Anything in your own building, standard-mode on-premises gateway, with personal mode reserved for a single analyst refreshing a few import models who will never need to share a data source.

Technology decisions are easier when you know what your traffic is actually doing. Start with a free audit.

Final Thoughts

The gateway is a small program doing an unglamorous job, and almost everything that goes wrong with it comes down to four things: a machine that sleeps, server names that do not match, privacy levels that were never set, and a build that aged out of the six-release support window. Get those right and it tends to disappear into the background for months at a time, which is exactly what you want from it.

What is worth carrying away is the shape of the documentation rather than any single figure. Microsoft is precise about ports, modes, roles and payload sizes, and silent about throughput and sizing beyond a starting recommendation. Where it is silent, the numbers circulating online are not filling the gap from a better source; they are filling it from nothing. And where two of its own pages disagree, as they do on the list of supported services and on cluster load balancing, the safe move is to rely on what both pages agree about.

One last piece of housekeeping that costs nothing today and saves a bad afternoon later: write down the recovery key, the gateway name, and the date of the build you installed, somewhere a colleague can find them. Microsoft cannot retrieve that key for you, and the six-release clock starts the moment you finish the installer.

Want this done for you?

SEO Stuff gets businesses cited by ChatGPT, Gemini, Perplexity and Claude, and ranking in Google. Start with the free audit, a call, or the package.

See where you stand

A free, manual SEO + AI search audit of your site, with a report within 48 hours. No credit card, no sales call.

Get my free audit

Talk it through

A free 15-minute call with the founder about whether AI search is a meaningful opportunity for your business.

Free strategy call

Have it done

The Done-For-You Package: audit, 10 pages of content, 3 DR50+ placements, dashboard. $999 once, delivered in 21 business days.

See the package