Forum Discussion
Gateway for Data Sources Not On Prem
I have created a report in Power BI Desktop. It uses three data sources:
- Dynamics 365
- A web page with anonymous access
- Two Excel workbooks (imported) that I can access using either One Drive for Business or SharePoint.
I have published this report to a Power BI Service workspace for a client. It uses an email address to which they all have access (this is how they wanted it). Because this is for a client and I am at a consulting firm, the machine on which I created the Power BI Desktop report is not inside the client's network. I have credentials to their Dynamics 365 and their One Drive and Sharepoint.
I am completely stumped how to get the report to refresh automatically. At present, I am refreshing the data every morning in Desktop and re-publishing it. That's unsustainable, and I know there must be a way to keep it up to date automatically, but I haven't found it.
I wouldn't think I would need a gateway at all, since none of the data sources is actually on premises. I've read that web data sources require a gateway since sometime in 2016, but all the documentation about gateways I can find seems to require 1) that the machine with the gateway be *inside* the network the gateway will serve, and 2) be specific to on prem data sources inside that network.
How do I get these web- and cloud-based data sources to refresh automatically? Do I need a gateway, and if so, how do I set it up to use these data sources? Do I need to do it from inside the client's network?
Any assistance you can provide will be greatly appreciated. Thank you.
5 Replies
- Greg_Deckler
Community Champion
I believe that you would need a data gateway in your case because of teh web page as a data source and that you have multiple data sources in the report. I would think that you would not need to setup the data gateway in the client's network. In your case, it might be best to spin up an Azure VM and install the gateway there.
- AnonymousNot applicable
Thank you for the suggestion. It seems promising, but I've hit another obstacle.
I want to test this internally before I try to do this with the client. We do not have anything set up in Azure in-house at the moment. I worked with our DevOps team to spin up a Windows server on an AWS VM, and I've had our network admin open the outbound ports mentioned in the gateway documentation.
I've installed the gateway on this AWS VM, but when I go to add the data source for the Dynamics 365 it tells me the credentials I'm using are wrong. They aren't, because they're the same credentials I'm using to access Dynamics 365 in Power BI Desktop on my machine.
I suspect this may be a configuration issue on the Dynamics 365 end, that it may be keeping me out because it doesn't recognize the gateway. But I want to check all the angles. Does this sound familiar to you--or anyone else? What am I missing?
Thanks!
- Greg_Deckler
Community Champion
Well, I would imagine that you should be using OAuth if it is Dynamics 365, is that the authentication type that you chose? Also, did you install the Enteprise or Personal version? If I recall correctly, if it is Personal, then you shouldn't need to specify the data source credentials. Can you walk me through the steps you are using to configure the data source for the data gateway, sounds like you are doing Enterprise.
- v-piga-msft
Resident Rockstar
Hi Anonymous,
As I know, we don't need to configure the Data Gateway when data source is online.
For online service providers, refresh usually occurs once-a-day. For files loaded from OneDrive, automatic refresh occurs about every hour for data that does not come from an external data source.
For reference, you could have a look at this document Automatic refresh.
Best Regards,
Cherry