Super Hybrid BI - PowerBI Gateway
Super Hybrid BI - PowerBI Gateway
Super Hybrid BI - PowerBI Gateway
http://blogs.prodata.ie/author/bob.aspx
bob@prodata.ie
Agenda
• Gateway Architecture
• On premise gateway installation
• Cloud gateway configuration
• Identity / Security
• Deployment Topologies
• Troubleshooting
• Fun with Power Apps using the gateway
• Q+A
Cloud Data Cloud Source Data
Identity
HTTPS
Queries /
Mashups
AppWorkspace
App Workspace
AppApp
Cloud Services and Apps Query
Dashboards
Dashboards Publish
Publish
Dashboards
Dashboards Alerts
Alerts
App
App
Publish
DataSets PBIX Reports
Reports
Reports
Reports Subscriptions
Subscriptions
Workbooks
Workbooks
Workbooks
Workbooks Print/Export
Print/Export
Reports
DataSets
DataSets
DataSets
DataSets Access
Access
SSAS Models
Oracle
Mainframe
Getting data into Power BI
Option Where is Data Role of Gateway
Import Loaded into PBI Desktop Refresh entire dataset
Live Streamed from Model Run query on model
Direct Query Streamed from Source Run query on Source
Get Data
How The Gateway Works
Azure Analysis
Power BI Microsoft Flow Power Apps Logic Apps
Services
Query
(DAX/SQL/MDX) Gateway Cloud Service
( In Azure)
Analysis
SQL Excel Files
Services
https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-indepth
Installation and Configuration
https://powerbi.microsoft.com/en-us/gateway/
Installation
The On-premise Gateway Service Account
• Only handles connection to cloud and service bus
(Does not need rights to any data sources)
• Connects to internet via computer account.
• Recommendation
• Use default unless very locked down / strict proxy server
The Cloud Gateway Service
• Gateway Installation creates Cloud Gateway
• You have to add Data Sources
• Each Data Source has
• Credentials are used to connect
• Credentials must have query access
Cloud Gateway Demo
SSO Identity for Models
• Only supported on SSAS
• In Azure Identity is via UPN in Azure Active Directory
• Gateway uses impersonation to send UPN to data source
• Most common Error is below (UPN Mapping)
UPN Mapping
• Azure AAD UPN Must match On-premise UPN
• DirSync matches usernames and UPNs
• Eg bob@prodata.ie
• What if it doesn’t?
• UPN Mapping feature in cloud gateway settings
• Change in Active Directory Controller
SSO Identity for Other Sources
• Direct Query ONLY for SQL and SAP Hana
• Supports using Kerberos to flow identity to data source
Implementing RLS
• First get Identity Working
• Test by using USERPRINCIPLENAME() function in dax.
• Add roles in Model with membership to AD groups or users
RLS
and
Data Security
Deployment Options
• Depends On
• Capacity (Concurrency)
• High Availability
• Need for Isolation
Gateway
DWH
DW Server
and BI1 Appliance
Server BI Server
Gateway Server 2
On Premise
ETL andGateway
Integration On Premise Gateway
Reporting Services
ETL and Integration
Analysis Services
On Premise Gateway
Monitoring and
Troubleshooting
Firewall and Network Considerations
• Azure service Bus Needs these outbound port ranges
• 443, 5671, 5672, 9350-9354
• IP Range is as per Microsoft Datacenter IP List
• Recommendations
• whitelist IP ranges
• Recommendation: avoid proxy servers
• Express Route may need routing configuration
IP Ranges: https://www.microsoft.com/en-us/download/details.aspx?id=41653
Performance and Monitoring
• Windows Performance Object On-Premise data gateway