Power BI Gateway: Download and Install the On-Premises Data Gateway
Download the standard-mode gateway from Microsoft Learn's install page (accessed 2026-11-23), install it on an always-on Windows server close to your data, and register it or add it to a cluster. EPC Group's Power BI practice configures and manages these gateway clusters for IT and data teams that refresh Power BI from on-premises sources, and has delivered 1,500+ Power BI deployments (EPC Group engagement data, 2015–2026; facts and sources). EPC Group — founded in 1997, headquartered in Houston, a Microsoft Solutions Partner holding all six solutions designations — publishes this guide; the figures on it are Microsoft's own list prices or public documentation, and EPC Group's engagement facts come from its claims registry.
Last updated by Errin O'Connor, Founder & Chief AI Architect, EPC Group
The on-premises data gateway is the critical infrastructure component that connects your on-premises data sources to the Power BI cloud service. For any organization that keeps data in SQL Server, Oracle, SAP, file shares, or any other on-premises system, the gateway is the bridge that enables scheduled refresh, live/DirectQuery connections, and dataflow refresh. Despite its importance, the gateway is frequently misconfigured in enterprise environments, leading to refresh failures, performance bottlenecks, and availability gaps. This guide covers everything you need to deploy and manage the gateway at enterprise scale.
How the Gateway Works
The gateway uses Azure Relay to create a secure, outbound-only connection from your on-premises network to the Power BI cloud service. Here is the data flow when a scheduled refresh executes (On-premises data gateway architecture, Microsoft Learn, accessed 2026-11-23):
- Power BI service creates the query and the encrypted data source credentials and pushes the request to Azure Relay
- Gateway service (running on-premises) polls Azure Relay and picks up the pending request
- Gateway decrypts the credentials and runs the query against the on-premises data source
- Query results go from the data source back to the gateway and then to the cloud service
- Power BI Service receives the data and updates the dataset
Because the gateway initiates all connections outbound, no inbound firewall ports need to be opened. The gateway reaches Azure Relay at *.servicebus.windows.net on port 443 and ports 9350-9354, and by default uses TLS 1.3 to communicate with the Power BI service (Adjust communication settings for the on-premises data gateway, Microsoft Learn, accessed 2026-11-23).
Installation and Initial Setup
Download the latest installer from the Download the standard gateway link on Install an on-premises data gateway (Microsoft Learn, accessed 2026-11-23). Install the standard mode gateway for production; Microsoft limits personal mode to one user and to Power BI only.
# Pre-installation checklist (Microsoft Learn install requirements, accessed 2026-11-23)
1. Windows 10, Windows 11, or Windows Server 2019, 2022 or 2025 2. .NET Framework 4.8 3. Recommended: 8-core CPU, 8 GB of memory, 64-bit Windows Server, SSD for spooling 4. Not a domain controller, not Server Core, not a Windows container 5. Always on, on a wired network, as close as possible to the data sources 6. Outbound access to *.servicebus.windows.net on ports 443 and 9350-9354 7. The installing user is an administrator of the machine 8. A recovery key, stored where your team can retrieve it
During installation, you sign in with your organizational account and choose "Register a new gateway on this computer." Give the gateway a descriptive name that includes the environment and location (e.g., PROD-GATEWAY-EASTUS-01). Set a recovery key and store it securely. This key is required to recover or migrate the gateway to a new server.
Critical: Recovery Key
Store the gateway recovery key in your organization's key vault or password manager. You need it to recover or move the gateway, and Microsoft does not have access to the key and cannot retrieve it for you.
Data Source Configuration
After installing the gateway, add data sources through the Power BI Service at Settings > Manage connections and gateways. For each data source, you specify:
- Data source type (SQL Server, Oracle, SAP HANA, ODBC, file, etc.)
- Server name and database name
- Authentication method (Windows, Basic, OAuth2, Key)
- Credentials (encrypted and stored in the gateway cloud service, decrypted only at the gateway)
- Privacy level (Private, Organizational, Public) which controls data source mashup behavior
In enterprise environments, we strongly recommend using Windows authentication with a dedicated service account for each data source. This provides auditability (you can track which queries the gateway service account executes) and simplifies credential rotation through Active Directory.
Gateway Clustering for High Availability
A single gateway server is a single point of failure. If it goes down for maintenance, hardware failure, or OS updates, all scheduled refreshes and DirectQuery connections fail. Gateway clustering eliminates this risk by distributing requests across multiple gateway members.
To add a member to a cluster:
- Install the gateway on a second computer with identical or better specifications (each member needs its own computer)
- During setup, select "Add to an existing gateway cluster"
- Select the cluster name and enter the recovery key of the primary member
- Ensure both members run the same gateway version
By default, the gateway cloud service uses the primary member and switches to the next available member when the primary is unavailable. Turn on "Distribute requests across all active gateways in this cluster" in Manage connections and gateways to spread the load; Microsoft states that the member is then selected at random, and CPU and memory throttling limits are set in each member's configuration file. A cluster supports up to 10 members (high-availability clusters and load balancing, Microsoft Learn, accessed 2026-11-23). For mission-critical environments, we deploy three-member clusters across different physical hosts or availability zones.
Enterprise Architecture Recommendation
Deploy separate gateway clusters for different workload types. Use one cluster for scheduled Import mode refreshes and a second cluster for DirectQuery/Live connections. DirectQuery generates many small, latency-sensitive queries, while Import refresh generates fewer but larger, memory-intensive queries. Separating them prevents contention.
Scheduled Refresh Best Practices
Scheduled refresh is how Power BI semantic models stay current with on-premises data. Models on shared capacity get up to 8 scheduled refreshes per day; models on Premium, PPU or Fabric capacity get up to 48 (Data refresh in Power BI, Microsoft Learn, accessed 2026-11-23). These practices ensure reliable, performant refreshes:
| Practice | Why It Matters |
|---|---|
| Stagger refresh schedules | Prevents all semantic models from hitting the gateway at the same time. Space refresh start times apart. |
| Use incremental refresh | Only refresh new/changed data partitions, which shortens refresh on large tables. |
| Optimize Power Query | Ensure query folding pushes transformations to the source. Use the Query Diagnostics tool to verify. |
| Monitor with gateway logs | Gateway logs show query duration, data volume, and errors. Set up alerting for failures. |
| Set timeout thresholds | Configure source query timeouts in the data source settings; increase them for complex queries. |
| Refresh during off-peak hours | Schedule heavy refreshes outside business hours to avoid contention with DirectQuery users. |
| Test refresh after gateway updates | Microsoft releases a gateway update every month and supports only the last six releases. Verify refresh after each update. |
Troubleshooting Common Gateway Issues
These are the gateway issues we encounter most often. Start every investigation with the logs: in the on-premises data gateway app, select Diagnostics, then Export logs (Troubleshoot gateways, Microsoft Learn, accessed 2026-11-23).
Refresh fails with "credentials are invalid"
Cause: Password was changed in Active Directory but not updated in the Power BI Service data source.
Fix: Go to Settings > Manage connections and gateways, open the connection and re-enter credentials. For Windows auth, use DOMAIN\username format.
Refresh times out
Cause: Source query takes longer than the configured timeout, or the dataset is too large for the server RAM.
Fix: Increase timeout in data source settings. Optimize the source query. Implement incremental refresh. Upgrade server RAM.
Gateway shows "offline" in the admin portal
Cause: The gateway Windows service has stopped, the server rebooted without the service starting, or network connectivity to Azure Service Bus is blocked.
Fix: Check the "On-premises data gateway" Windows service status. Verify outbound HTTPS to *.servicebus.windows.net. Check proxy settings.
Cluster member version mismatch
Cause: One cluster member was updated and the others were not. Microsoft says members of a cluster should run the same gateway version, because different versions can cause unexpected failures.
Fix: Manually update all cluster members to the same version. Set a maintenance window for coordinated updates.
Security Considerations
The gateway handles sensitive data in transit and at rest. Enterprise security requirements demand:
- TLS: By default the gateway uses TLS 1.3 to communicate with the Power BI service; Microsoft documents the registry keys that make all gateway traffic use TLS 1.3 (communication settings page, linked under Sources).
- Credential encryption: Data source credentials are encrypted and stored in the gateway cloud service and decrypted only at the gateway on premises.
- Service account hardening: Run the gateway service under a dedicated domain account with minimum required permissions. Do not use a domain admin account.
- Audit logging: Enable gateway logging and ship logs to your SIEM (Splunk, Microsoft Sentinel, etc.) for security monitoring.
- Network segmentation: Place the gateway server in a DMZ or secure VLAN with access only to the data sources it needs.
- Antivirus exclusions: Add exclusions for the gateway data directory to prevent antivirus from locking files during refresh operations.
Sources (Microsoft Learn, accessed 2026-11-23): Install an on-premises data gateway; What is an on-premises data gateway?; On-premises data gateway FAQ; High-availability clusters and load balancing; Communication settings; Update an on-premises data gateway; Use a personal gateway in Power BI; Direct Lake overview.
How EPC Group Helps
Gateway infrastructure is a foundational component of every enterprise Power BI deployment. EPC Group's Power BI consulting services include gateway architecture design, cluster deployment, monitoring setup, and troubleshooting: sizing each member, splitting Import and DirectQuery workloads across clusters, and setting the update and failover routine. Our emergency Power BI support service provides rapid response when gateway issues impact business-critical refresh schedules.
About the Author
Errin O'Connor
Errin O'Connor is the Founder & Chief AI Architect of EPC Group, a Microsoft Gold Partner from 2000 until Microsoft retired the program in 2022, and today holding all six Microsoft Solutions Partner designations, with enterprise consulting experience since 1997. Errin O'Connor has written four Microsoft technology books: three for Microsoft Press and one for Sams / Pearson.
Frequently Asked Questions About Power BI Gateway
Where do I download the Power BI on-premises data gateway?
Download it from Microsoft: the Install an on-premises data gateway page on Microsoft Learn links both the standard gateway and the personal mode gateway installers. Run the installer as an administrator of the machine, sign in with your work or school account, then register a new gateway or add it to an existing cluster. To update later, download the latest installer and run it over the existing installation.
Does the Power BI gateway run on Linux?
No. Microsoft describes the on-premises data gateway as locally installed Windows software, and its requirements list only Windows 10, Windows 11 and Windows Server 2019, 2022 and 2025; Server Core and Windows containers are not supported. For sources secured in an Azure virtual network, Microsoft offers the virtual network (VNet) data gateway, a Microsoft-managed service that needs no local installation.
What is the difference between standard mode and personal mode?
Standard mode serves many users and data sources, works with Power BI, Power Apps, Power Automate, Azure Logic Apps and Azure Analysis Services, and supports DirectQuery, live connections and clusters. Personal mode serves one Power BI user, cannot be shared, and refreshes that user’s import semantic models only. Use standard mode for any shared or production refresh.
What hardware does a Power BI gateway server need?
Microsoft recommends an 8-core CPU, 8 GB of memory, a 64-bit edition of Windows Server 2019, 2022 or 2025, and SSD storage for spooling; the minimum is .NET Framework 4.8 on Windows 10, Windows 11 or Windows Server 2019 or later. Install it on an always-on, wired machine as close as possible to the data sources, and size above the recommendation from your measured refresh load.
How do I set up a Power BI gateway cluster for high availability?
Install the standard gateway on a second computer, sign in, choose Add to an existing gateway cluster, select the primary gateway and enter its recovery key. Each member needs its own computer, a cluster supports up to 10 members, and all members should run the same gateway version. By default requests go to the primary member and fail over to the next available one; you can turn on distribution across all active members.
How do I troubleshoot gateway refresh failures?
Start with the logs: in the on-premises data gateway app, select Diagnostics, then Export logs. Then check the usual causes: data source credentials that changed (re-enter them in Manage connections and gateways), an offline or older-version cluster member, outbound access to *.servicebus.windows.net blocked by a firewall or proxy, and source queries too slow for the refresh window.
Related guides and articles
- Power BI Consulting Services
- Samsung - Power BI Case Study
- 6 Reasons to Use Power Automate in Power BI
- Add New Data in Power BI
- Power BI Gateway: Setup, Configuration, and Enterprise Best Practices
- Power BI vs Google Looker
- Power BI Governance Framework
- Power BI Governance Framework: Enterprise Data Strategy 2026
- EPC Group Launches Enterprise Power BI Governance and Optimization Offering
Related Microsoft Guides
Power BI Gateway Enterprise Setup Guide
Standard mode cluster sizing, high-availability deployment, and Entra ID service principal auth.
Methods to Install Power BI Desktop Remotely
Intune, Configuration Manager, and Microsoft Store-for-Business deployment of Power BI Desktop.
Configuring SharePoint as a Data Source
Connecting Power BI through the gateway to SharePoint lists, libraries, and Microsoft Graph.
Power BI Integration with SharePoint Online
Embedding reports in modern pages and configuring gateway permissions for shared workspaces.
What Do I Need to Install to Use Power BI
Workstation, gateway, and tenant prerequisites for getting Power BI fully operational.