using a gateway to leverage on premises data in power bi
TRANSCRIPT
Using a Gateway to Leverage On-Premises Data in Power BIAdam SaxtonSr. Content Developer@GuyInACube
Adam Saxton
Adam Saxton
@guyinacube /guyinacube/guyinacube
I write stuff and create
videos…
Starting with Power BI Desktop
SQL Server Analysis Services
Live Power BI reports &
dashboards
Live query
Cloud
On-premises
Data Source
Data Source
Direct query
Scheduled refresh
Getting data into PBI DesktopThree options:• Import• DirectQuery• Live connections (SSAS only)
Data pulled into PBI Desktop
Data is streamed from
source
Supported import sourcesSupported 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
More added
regularly!
What this looks like…
File location and freshness
File locations
Files from your
computerFiles in
the cloud
What location means…Local Files:• Only copy the model to the cloud• Local files is never updated or pulled from
Files in the cloud:• Model is copied to Azure BI backend• Poll original file for updates• Refresh will update model and original file
About
hourly
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 dependencyEasy & simple to use: Lightweight one-click installer running on your computerOne Personal Gateway per userRuns either as a service or an app
On-premises Data GatewayCentralized way to refresh on-premises content in Power BI and other services Access control to data sourcesMonitor and track usageLive, interactive query with on-premises data sources
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 AdminFeatures 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 controlServices supported
Power BI Power BI, PowerApps, Microsoft Flow, Azure Logic Apps and Azure Analysis Services
Personal v/s On-premises data gateway
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
Gateway service
How this works…
Cloud
DB
On-premises
1. Install & configure gateway2. Create a data source or
schedule refresh3. Interact with report, schedule
refresh or refresh now4. Gateway Service pushes to
Service Bus5. Gateway polls bus looking for
requests6. Gateway takes request and
decrypts creds7. Gateway connects and runs
query8. Gateway sends results back up
stack
Power BIScheduler
Service creds
Troubleshooting
FirewallOutbound connection from gateway to Azure Service Bus
Outbound Ports:• 443• 5671, 5672• 9350-9354
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
© 2014 Microsoft Corporation. All rights reserved.