4. Who am I?
Introduction
Authentication
Azure AD
Authorization Token
Demo
Resources
Agenda
26/09/2015 | SQL Saturday #434 – Holland4 |
5. Jan Pieter Posthuma – Microsoft Data Consultant
Rubicon, local consultancy firm in the Netherlands
Architect role at multiple projects
Analysis Service, Reporting Service, Big Data,
HDInsight (Hadoop), Cloud BI, Power BI
jp.posthuma@rubicon.nl
http://twitter.com/jppp
http://linkedin.com/jpposthuma
https://docs.com/liprec
Who am I?
26/09/2015 | SQL Saturday #434 – Holland5 |
6. Introduced with the new Power BI service
API (application programming interface): programmatically access
to certain Power BI resources
Ability to push data ‘real-time’
Build on open REST API standards
Introduction
26/09/2015 | SQL Saturday #434 – Holland6 |
7. Power BI uses OAuth2.0 and Azure Active Directory (Azure AD)
Azure AD handles
User Authentication
Permissions
View all Datasets
Read and Write all Datasets
View users Groups
Returns an Authorization Token
Azure AD works best with corporate accounts
Authentication – Azure AD
26/09/2015 | SQL Saturday #434 – Holland7 |
8. Information needed for an Authorization Token
Client ID – Client ID is used by the application to identify themselves to
the users that they are requesting permissions from.
Client Key – The client secret key is sent along with a Client ID when
authenticating to Azure AD to call a web API.
Resource Uri – The resource Uri to the Power BI resource to be
authorized. [https://analysis.windows.net/powerbi/api]
Authority Uri – The authority Uri is an Azure resource that takes a client
id to get an access token.
[https://login.windows.net/common/oauth2/authorize/]
Redirect Url – A Redirect Url for the web app url. The Azure AD service
redirects back to the web app url with an authentication code.
Authentication – Authorization Token
26/09/2015 | SQL Saturday #434 – Holland8 |
9. DEMO
• Walkthrough Power BI API
• Authentication with Azure AD
• Simple web application
• Real-time poll website with Azure Stream Analytics
• PowerShell
26/09/2015 | SQL Saturday #434 – Holland9 |
12. Power BI API provides ‘real-time’ dashboarding
Power BI API uses Azure AD for authentication
Power BI API is build on open standards (REST, OAuth2.0)
Power BI API works for both subscriptions
Wrap up
26/09/2015 | SQL Saturday #434 – Holland12 |
14. Power BI Developer Center
https://powerbi.microsoft.com/developers
Power BI REST API
http://docs.powerbi.apiary.io/
MSDN Library: Power BI API
https://msdn.microsoft.com/en-us/library/mt267603.aspx
Power BI GitHub repository
https://github.com/PowerBI
Azure Active Directory developer's guide
https://azure.microsoft.com/en-us/documentation/articles/active-
directory-developers-guide/
Resources
26/09/2015 | SQL Saturday #434 – Holland14 |