Posted in : Microsoft By Gus Johansson Translate with Google ⟶

1 year ago

Hi and welcome to my walkthrough of setting up an on-premise data gateway.
What is an on-premise data gateway? Microsoft has provided a very good answer to this question in the link within the question. If you are looking for an easy explanation: Connect your on-premise data securely to your cloud services (Power BI, PowerApps, Power Automate, Azure Analysis Services, and Azure Logic Apps). In my scenario I am showing you how to install an on-premise data gateway to connect Power Bi to on-premise data.
Below you can see a simplified topology of how you set this up.

  1. A machine with the on-premise data gateway software installed. This needs to be on-premises and be able to reach the storage area where the data is kept. If you are using other sources of data, the rule still applies: the data needs to be reachable by this machine. Minimum requirements and installation guide is found here.
    1. Installation is easy, run the installer found here. You have ”one” decision to make (unless you want to complicate things and change installation directory) and that is whether or not you would like a personal mode or not. The ”non-personal” is the recommended.
    2. You then have to register the data gateway to your tenant. This is to be done with your admin account.
    3. Type in a name for the on-premises data gateway and choose a recovery key. Keep the key in a safe place!
    4. Now you have installed the on-premises data gateway.
  2. This is where things get a little bit more complicated. As you can see on the topology you probably have most components now. User desktop, file share, on-premise data gateway and apps in Cloud waiting for data. Now we have to make sure that the on-premises data gateway can read the data you wish to publish in the cloud. It is done fairly easy if you know what to do:
    1. Within the on-premises data gateway application you can through Service Settings > Sign In change the account which is locally used to run the application/service. This needs to be an account that has read rights on the data you wish to upload to cloud.
    2. Make sure you use an account that has read rights on the share (or if you store data locally on the on-premises data gateway). In this scenario I am using a file share: \\file.share\PBI\01 Data and a file of the name ”Testdata.xlsx”.
      1. You can use Effective Access to view rights on folders and files.
    3. Once we have set up the on-premises data gateway and made sure it has the correct rights to access the data which we wish to include within PBi we can move over to Logon and then access the ”Manage gateways” settings through the cog wheel in the top right.
    4. You will now see the added on-premises data gateway if everything was made correctly. Here you add administrators and data sources.
      1. Add a data source:
      2. Enter full path to the directory where you store the Excel data.
      3. Enter Windows credentials that have rights to read this. I use the service account for the on-premises data gateway. This can differ depending on setups etc.
      4. Within the ”Users” tab you can administer what/which users can publish reports using this data source.
    5. If done correctly, you are now done. You have set up an on-premises data gateway that allows your users to publish dashboard and schedule refresh intervals. The data source can differ and for example an SQL server or other files can be used. Remember that the data sources you have specified are the ones that need to be used otherwise the automatic refresh (or manual) is not going to work.

If needed I can contribute with a guide on how to publish dashboard with scheduled refreshes on data. Please comment below if needed.
Thank you for reading and please feel free to provide comments on feedback and your solutions to the same scenario.
Best regards,
Gus Johansson

Tags : data, gateway, guide, on-premises, pbi, PowerBI

Personlig rådgivning

Vi erbjuder personlig rådgivning med författaren för 1400 SEK per timme. Anmäl ditt intresse i här så återkommer vi så snart vi kan.


Oliver Quino says

Thanks a lot for you simply and useful explanation

Add comment

Your comment will be revised by the site if needed.