Sub topic 2
Installing and Registering a Gateway
Assume you know Power BI Desktop, workspaces, Power Query, and basic Windows administration. A standard-mode on-premises data gateway lets the Power BI service reach private data sources without exposing those sources to the internet.
Install and register the gateway
- Download the On-premises data gateway from Microsoft and install it on an always-on Windows computer.
- Choose Standard mode. Personal mode is intended for one user and does not support shared administration or gateway clusters.
- Sign in with the organizational account that will administer the gateway.
- Register a new gateway, give it a descriptive name, and create a recovery key.
- Store the recovery key securely. You need it to restore or move the gateway.
The gateway makes outbound connections to the Power BI service. The service does not initiate an inbound connection to your server.
Test-NetConnection -ComputerName watchdog.servicebus.windows.net -Port 9350Run this test on the gateway computer. A successful result helps confirm that a required outbound port is available. Your organization's firewall rules may require additional Microsoft endpoints and ports.
Add the data source and map the dataset
In the Power BI service, open Manage connections and gateways. Add a data source to the gateway. Select the correct connector, then enter the server and database names exactly as they appear in Power Query. Save credentials using the authentication method required by the source.
A published semantic model uses the gateway only when its source definition matches a configured data source. In the semantic model settings, select the gateway connection and confirm that every required source is mapped. A name, server, database, or authentication mismatch commonly causes refresh failure.
Configure refresh and limits
In the semantic model settings, enable scheduled refresh, choose the time zone and refresh times, and enable MailOnFailure or the equivalent failure-notification option. Save the schedule, then run a manual refresh to validate the complete path.
Refresh frequency and duration depend on licensing, capacity, model size, and source performance. A schedule does not remove service limits or gateway timeouts. If refreshes exceed those limits, reduce the model, improve the query, or use incremental refresh.
Exercise
A dataset refresh fails because the gateway cannot find its SQL Server source. What should you check first?
Show answer
Compare the server and database names in Power Query with the gateway data source, then verify that the dataset is mapped to that source and has valid credentials.