Using a Gateway to Leverage On-Premises Data in Power BI 6/1/2018 11:48 AM Using a Gateway to Leverage On-Premises Data in Power BI Adam Saxton Sr. Content Developer @GuyInACube Adam Saxton © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
I write stuff and make videos Who am I? Sr. Content Developer working on Business Intelligence products 10 years supporting SQL Connectivity and BI Products Avid blogger and YouTuber
Starting with Power BI Desktop
Getting data into PBI Desktop Data pulled into PBI Desktop Three options: Import DirectQuery Live connections (SSAS only) Data is streamed from source SQL Server Analysis Services Live Power BI reports & dashboards Live query Cloud On-premises Data Source Direct query Scheduled refresh
Supported import sources More added regularly! Supported cloud sources: SaaS sources Azure – SQL, DW, Blob, Table, HDInsight, Marketplace SharePoint, web sources, Odata OneDrive Supported on-prem sources: SQL Server, Teradata, Oracle, DB2, MySQL, PostgreSQL, SAP BW, SAP HANA Sybase, Access, Custom SQL, Custom ODBC Drivers SQL Server Analysis Services Files/folder, SharePoint on-premises
What this looks like…
File location and freshness
Files from your computer File locations Files from your computer Files in the cloud
What location means… Local Files: Only copy the model to the cloud Local files is never updated or pulled from About hourly Files in the cloud: Model is copied to Azure BI backend Poll original file for updates Refresh will update model and original file
Refresh & Gateways
How do you want to refresh data? Import (cached mode) DirectQuery or Live connection Refresh frequency Scheduled - hourly or daily Real-time Performance No noticeable delay since data is already cached Depends on how fast the data source is as queries are executed in real-time Data storage in Power BI Since it is cached mode, data is stored in the cloud No data is stored in Power BI. Data is always on-premises* Data size Current limit of 1GB (compressed) per model The on-premises database is the limit; no Power BI limitation Row level security No support for on-prem row level security. Supports Cloud RLS. Re-use on-prem role based row level security for Analysis Services. Non-SSAS supports Cloud RLS. *Some data is cached for optimizing first-time load performance
Power BI Gateway - Personal Self-service refresh – no IT dependency Easy & simple to use: Lightweight one- click installer running on your computer One Personal Gateway per user Runs either as a service or an app
On-premises Data Gateway Centralized way to refresh on-premises content in Power BI Access control to data sources Monitor and track usage Live, interactive query with on-premises data sources
Personal v/s On-premises data gateway Personal Gateway On-premises data gateway (Enterprise gateway) Target Persona Business analyst sets up and uses the gateway for her data sources BI Admins set up the gateway for their department/ company Multiple users use the gateway setup by the admins Usage Directly by analysts BI Admin Features Import with scheduled refresh Direct query and scheduled refresh Data source connections managed per user Central data source mgmt. and access control No central monitoring/control Central monitoring and control Services supported Power BI Power BI, PowerApps, Microsoft Flow, and Azure Logic Apps
Data gateway and Analysis Services Gateway Service Account needs to be Admin on AS Instance Org Account sent via Effective User Name connection property Email address Email address has to match UPN for account in local domain May need to use Azure AD DirSync or can use alternate UPN Suffix
How this works… Power BI Gateway service Install & configure gateway Scheduler Service How this works… creds Install & configure gateway Create a data source or schedule refresh Interact with report, schedule refresh or refresh now Gateway Service pushes to Service Bus Gateway polls bus looking for requests Gateway takes request and decrypts creds Gateway connects and runs query Gateway sends results back up stack Gateway service Cloud On-premises DB
Troubleshooting
Firewall Outbound connection from gateway to Azure Service Bus 6/1/2018 11:48 AM Firewall Outbound connection from gateway to Azure Service Bus Outbound Ports: 443 5671, 5672 9350-9354 Azure Service Buss Port settings - https://msdn.microsoft.com/en-us/library/azure/ee732535.aspx © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Tools of the trade Make sure on latest version of the gateway 6/1/2018 11:48 AM Tools of the trade Make sure on latest version of the gateway Refresh history Event Logs Trace logs for gateway Performance Counters Proxy configuration Fiddler Troubleshooting articles Personal Gateway - https://powerbi.microsoft.com/en-us/documentation/powerbi-admin-troubleshooting- power-bi-personal-gateway/ On-premises Data Gateway – https://powerbi.microsoft.com/en-us/documentation/powerbi-gateway-onprem- tshoot/ Configure Proxy - https://powerbi.microsoft.com/en-us/documentation/powerbi-gateway-proxy/ Tile refresh errors - https://powerbi.microsoft.com/en-us/documentation/powerbi-refresh-troubleshooting-tile- errors/ © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
asaxton@microsoft.com
6/1/2018 11:48 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.