Sub topic 6
Installing and registering a gateway
This chapter walks through installing a standard-mode on-premises data gateway and registering it with the Power BI service. It assumes you know when a dataset needs a gateway, the difference between standard and personal mode, and that the gateway only makes outbound connections. It also assumes you have local administrator rights on the target machine and a Microsoft Entra work account.
Choose the host machine
Install the gateway on a machine that is always on and close to your data sources on the network. Avoid a laptop that sleeps or changes networks. If the machine is off, every refresh that depends on it fails.
- Use a supported 64-bit Windows version or Windows Server.
- Prefer a wired connection and a machine that stays domain-joined.
- Install only one standard gateway per machine. A personal-mode gateway can run beside it.
- Do not install on a domain controller.
Check outbound connectivity first
The gateway reaches Azure Service Bus over outbound TCP. Check this from the host before you install, so a blocked port is not confused with an install problem.
Test-NetConnection -ComputerName watchdog.servicebus.windows.net -Port 9350If TcpTestSucceeded is False, ask the network team to allow the outbound ports before you continue.
Install and register
- In the Power BI service, open Downloads and select Data Gateway. Download the standard installer.
- Run the installer on the host. Choose On-premises data gateway (standard mode) and accept the default install path and terms.
- When the configuration app opens, sign in with your Microsoft Entra work account.
- Select Register a new gateway on this computer.
- Enter a gateway name that is unique in your tenant and describes its role, such as
gw-sales-prod-01. - Enter a recovery key of at least eight characters and confirm it. Check the region shown. It defaults to your tenant's home region, which is usually what you want.
- Select Configure. The app reports that the gateway is online and ready.
Verify the registration
Check the gateway in two places:
- In the gateway app, the Status tab should show the service is running and connected to Power BI. The Network tab can run a connectivity test.
- In the Power BI service, open Settings, then Manage connections and gateways. The new gateway should appear under On-premises data gateways, and you are its administrator.
The gateway runs as a Windows service named On-premises data gateway service. By default it runs under NT SERVICE\PBIEgwService. Change the account only if a data source requires it, as covered in the network security chapter.
Common installation errors
| Symptom | Likely cause |
|---|---|
| Sign-in loop or failure | Proxy or firewall blocking Microsoft Entra endpoints |
| Gateway shows offline after install | Service stopped, or outbound Service Bus ports blocked |
| Name already in use | Another gateway in the tenant uses that name |
| Cannot register a second gateway | A standard gateway already exists on this machine |
Exercise
You installed a gateway on a developer's laptop and registered it. Refreshes fail every night even though the gateway name appears in Manage connections and gateways. Give one likely cause and one fix.
Show answer
The laptop is probably asleep, off, or on another network overnight, so the gateway service cannot reach the Power BI service. Move the gateway to an always-on, wired server. Use the recovery key to restore or migrate the gateway, or register a new one and remap the datasets.