Choose and configure a Power BI gateway: connect, recover, and verify refresh
A Power BI gateway bridges the Power BI service to data sources on-premises or in a private network that the service can't reach directly over the internet. Consider personal mode for individual use, standard mode for shared team connections, DirectQuery, live connections, or high availability, and a VNet gateway for sources inside an Azure virtual network. Installing the gateway alone doesn't complete the connection: verify the host, source connection, credentials, semantic-model mapping, and an actual refresh.
Choose and configure a Power BI gateway: connect, recover, and verify refresh
A Power BI gateway bridges the Power BI service to data sources on-premises or in a private network that the service can't reach directly over the internet. Consider personal mode for individual use, standard mode for shared team connections, DirectQuery, live connections, or high availability, and a VNet gateway for sources inside an Azure virtual network. Installing the gateway alone doesn't complete the connection: verify the host, source connection, credentials, semantic-model mapping, and an actual refresh.
Gateway request flow
Microsoft's architecture can be simplified as follows: the service places a request in the relay path; the local gateway retrieves it over an outbound connection, queries the source, and returns the result.
Power BI Service -- query + encrypted source credentials --> Azure Relay queue
Gateway host -- outbound TLS 1.2 polling --> Azure Relay
Azure Relay -- queued request --> Gateway host -- query with decrypted credential --> data source
Data source -- results --> gateway host -- response --> Power BI ServiceThe gateway does not need to accept a new inbound internet connection, but firewall and proxy rules must still allow the required outbound traffic. Microsoft: On-premises data gateway architecture
Choose the gateway type
| Type | Suitable when | Main limits and operating needs |
|---|---|---|
| On-premises data gateway, standard mode | Multiple authors share connections, or you need Import refresh, DirectQuery, Analysis Services live connections, or a cluster | Installed and centrally managed on Windows; requires an always-on host and an owner |
| Personal mode | One person refreshes their own Power BI Import models without centralized connection management | Power BI only; can't be shared and doesn't support DirectQuery, live connections, clusters, or high availability |
| VNet data gateway | Data is inside an Azure virtual network and you don't want to operate a local gateway machine | Microsoft-managed service; verify Azure, Power BI/Fabric, and capacity prerequisites |
Microsoft recommends standard mode for most shared operational scenarios. A gateway can be required even for a cloud source if it sits in a private network, behind a firewall, or requires a local driver or custom connector. Inventory sources first, then check their network location, authentication, connection mode, and connector requirements. Microsoft: Power BI gateway overview and types · Microsoft: Plan a gateway implementation
An on-premises gateway runs on its Windows host and uses outbound connections to cloud services. You generally don't need inbound ports opened to your network. If the organization's firewall or proxy restricts outbound traffic, ask the network team to configure it according to Microsoft's current requirements. Microsoft: Gateway communication and network
Prepare before installation
According to Microsoft's installation page checked on November 19, 2026, standard gateway minimums include .NET Framework 4.8 and Windows 10, Windows 11, or Windows Server 2019, 2022, or 2025. The installer must be run by an administrator of that machine. Use a host that won't shut down or sleep. Server Core, Windows containers, and domain controllers aren't supported. If you use Windows authentication, check the domain and authentication relationship between the gateway host and source. Requirements can change; recheck the official page before installing. Microsoft: On-premises gateway installation requirements
For a production standard gateway, use a dedicated or always-on work VM or computer. A laptop can close or disconnect, making refresh dependent on an unreliable host. Placing it near the source can reduce network latency. Assign an owner, backup administrator, update/monitoring responsibility, and recovery-key location. The recovery key is needed to restore or move a gateway; Microsoft can't retrieve it. Store it in an approved, access-controlled secret vault. Microsoft: Install a gateway and protect its recovery key · Microsoft: Gateway ownership and operational planning
Register a standard gateway and connect a source
Download the current Microsoft gateway installer on an approved Windows host. Confirm the installer has local administrator rights and the host stays on.
Select **On-premises data gateway (standard mode)** in the installer and sign in with an organizational work or school account.
Register a new gateway with a unique, recognizable tenant name and a recovery key. Store the key securely and make sure the owner and recovery contact can access it. Losing it can complicate restore or migration.
In **Manage connections and gateways** in Power BI Service or the current admin page, add the source connection. Enter server, database, authentication type, and credentials; then pass the connection test. Stored source credentials can determine what data queries can read, so use a least-privilege account and grant connection access carefully.
Confirm that the server, database, and path used in Power BI Desktop match the gateway connection definition in the service. A source may fail to match automatically if its name differs.
After publishing the semantic model, map it to the correct gateway and connection under **Gateway and cloud connections**. Check each source separately if there are several.
Run **Refresh now** on a development or low-impact model. Verify status, duration, and errors in refresh history before scheduling it.
Menus can vary by Power BI and gateway release. Saving a connection doesn't prove refresh works. Confirm that a real service refresh finishes successfully. Microsoft: Install an on-premises gateway · Microsoft: Configure and troubleshoot scheduled refresh
Decide on personal mode and clusters
Personal mode is a single-user gateway managed by its user. It can be convenient for refreshing personal Import models, but it isn't for sharing connections with a team or operating DirectQuery, live connections, or a cluster. If the user's computer is off, asleep, signed out, or disconnected, dependent refresh can fail. Avoid it as the foundation for a team or department model. Microsoft: Use a personal gateway in Power BI
For a business-critical service, consider a standard gateway cluster to avoid a single host as the failure point. Install each cluster member on a different computer and use the cluster registration process and recovery key. Check that all members stay online and run the same supported gateway version. A cluster helps tolerate an individual computer failure; it doesn't fix an outage in the database or network. Consider separate clusters for different environments or regions. Microsoft: Gateway clusters and high availability · Microsoft: Plan gateway topology
Diagnose refresh failures in order
In the semantic model's **Refresh history**, inspect failure time, full error, and duration.
Under **Gateway and cloud connections**, verify that the selected gateway is online and mapped to the right connection.
In **Manage connections and gateways**, test the connection. Check server/database names, DNS/network access, and source service availability.
For authentication errors, check whether credentials stored on the gateway connection expired or changed. Model credentials and gateway connection credentials can be configured in different places.
Confirm that drivers or custom connectors used by the published query are installed on both Desktop and the gateway host and have compatible versions. A missing or mismatched component can make service refresh fail.
Check gateway status, update level, and whether the host is asleep or offline. For standard mode, use gateway logs and monitoring to isolate resource pressure or communication issues.
After fixing the cause, retry a manual refresh and verify its success record. If a schedule was disabled after repeated failures, fix the cause and turn the schedule back on in settings.
Microsoft says Power BI can deactivate a schedule after four consecutive failures or an unrecoverable configuration error. After fixing the cause in refresh history, confirm that the schedule is enabled again. Refresh history can point to source query, data type, or capacity issues too, so use the message and state to narrow the cause instead of repeatedly restarting the gateway. Microsoft: Troubleshoot scheduled refresh · Microsoft: Power BI gateway overview
A gateway is an operational path to source data, not just a report setting. Choose a type for the use case, assign connection and recovery responsibilities, then verify service refresh and the recovery path.