What is an on-premises data gateway?
Note
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.
Note
Beginning on March 15, 2023, any Power BI dataflow using an on-premises data gateway version older than April 2021 might fail. To ensure your refreshes continue to work correctly, be sure to update your gateway to the latest version and sign in to it.
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 provides quick and secure data transfer and requires no inbound ports to your network - only outbound ports to reach the Azure web service to which the gateway connects. The gateway functions with multiple services including Azure Analysis Services, Azure Data Factory, Azure Logic Apps, Microsoft Fabric, Power Apps, Power Automate, and Power BI.
By using a gateway, organizations can keep databases and other data sources on their on-premises networks while securely using that on-premises data in cloud services.
How the gateway works
The on-premises data gateway initiates outbound connections to the cloud, but requires no inbound connections. All communication from the cloud is recieved in responses to polling over the outbound connections. For detailed information on how the gateway works, see On-premises data gateway architecture and Adjust communication settings for the on-premises data gateway.
Types of gateways
There are two different types of on-premises data gateways, each for a different scenario.
On-premises data gateway: Allows multiple users to connect to multiple on-premises data sources. With a single gateway installation, you can use an on-premises data gateway with all supported services. This gateway is well suited to complex scenarios where multiple people access multiple data sources.
On-premises data gateway (personal mode): Allows one user to connect to data sources and can't be shared with others. An on-premises data gateway (personal mode) can be used only with Power BI. This gateway is well suited to scenarios where you're the only one who creates reports and you don't need to share any data sources with others.
In addition, there's a virtual network (VNet) data gateway that lets multiple users connect to multiple data sources that are secured by virtual networks. No installation is required because it's a Microsoft managed service. This gateway is well suited to complex scenarios in which multiple people access multiple data sources. Virtual network data gateways are discussed in depth in What is a virtual network (VNet) data gateway.
Using a gateway
There are four main steps for using a gateway.
- Download and install the gateway on a local computer.
- Configure the gateway based on your firewall and other network requirements.
- Add gateway admins who can also manage and administer other network requirements.
- Troubleshoot the gateway if there are errors.
Considerations and Limitations
- Logic Apps, Power Apps, and Power Automate support both read and write operations through the gateway:
- The gateway has a 2-MB payload limit for write operations.
- The gateway has a 2-MB request limit and an 8-MB compressed data response limit for read operations.
- URL for the GET request has a 2048 character limit.
- While using the gateway with Power BI in Direct Query Mode, there's a 16-MB uncompressed data response limit.
- For information about installation considerations, go to Related considerations.
- We cache credentials on the gateway client side, which improves the performance of the queries executed on the gateway. The cache expires in a matter of hours. However, this means that changed credentials may not be immediately reflected and can cause refreshed to fail. For example, if a user uploads a direct query report with a connection and then edits that connection's credentials, the new credentials will not be used for approximately 5 hours and the user can expect the connection in the report to fail.
Gateway documentation
This document contains general information about the on-premises data gateway that applies to all services that the gateway supports. You can obtain more on-premises data gateway information for specific products by visiting the following product-specific sites.
Using an on-premises data gateway in Power Platform Dataflows
Connecting to on-premises data sources with On-premises data gateway - Azure Analysis Services