Forum Discussion
Proper way to create report that hooks up to Azure SQL Server DB
Cliff notes:
1. Install the Enterprise Gateway - it is the plumbing for everything.. you then configure the credentials for the report to use in the gateway.
2. Open Power BI.. click on the "Settings" gear.. select settings, Select the dataset tab - this is where you associate the dataset to the gateway and schedule the refresh.
3. Click on the dataset name.. you will see "Gateway connection" and "Schedule Refresh". Note direct query can only be scheduled hourly.
We have an Azure virtual running SQL. The Enterprise Gateway is installed on this machine. We created a common user to use to upload the reports to the service.
- dwtaggart9 years agoRegular Visitor
Thanks much. So....I did get this working when I installed the gateway on my local machine. Our SQL Server DB is actually in an Azure VM as opposed to being and Azure SQL Server DB. (I just figured that out) So anyway, I installed the Enterprise Gateway on the VM (since my local dev machine isn't always on or whatever) and I can see it and manage it, etc. However...since the DB is on the same Azure VM as the Enterprise Gatewayit won't hook up to the "dbserver.companyname.com", only "dbserver". Unfortunately since I'm developing on a machine outside the Azure VM, in Power BI Desktop, I must use the fully qualified server name.
This is a problem because for some bizarre reason the report only hooks up to the gateway by textually matching the db server name and db name from the report file AND the gateway. There's no way to select a preconfigured datasource or gateway from the Power BI Desktop as far as I can tell.
So anyone have any workarounds?