Introduction into the Power BI REST API Jan Pieter Posthuma Power BI API Introduction into the Power BI REST API Jan Pieter Posthuma 26/09/2015 | SQL Saturday #434 – Holland
Thanks to our sponsors 26/09/2015 | SQL Saturday #434 – Holland
Evaluations Event http://www.sqlsaturday.com/434/eventeval.aspx Sessions http://www.sqlsaturday.com/434/sessions/sessionevaluation.aspx 26/09/2015 | SQL Saturday #434 – Holland
Agenda Who am I? Introduction Authentication Demo Resources Azure AD Authorization Token Demo Resources 26/09/2015 | SQL Saturday #434 – Holland
Who am I? 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 26/09/2015 | SQL Saturday #434 – Holland
Introduction 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 26/09/2015 | SQL Saturday #434 – Holland
Authentication – Azure AD 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 26/09/2015 | SQL Saturday #434 – Holland
Authentication – Authorization Token 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. 26/09/2015 | SQL Saturday #434 – Holland
Demo Walkthrough Power BI API Authentication with Azure AD Simple web application Real-time poll website with Azure Stream Analytics PowerShell Demo 26/09/2015 | SQL Saturday #434 – Holland
26/09/2015 | SQL Saturday #434 – Holland
26/09/2015 | SQL Saturday #434 – Holland
Wrap up 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 26/09/2015 | SQL Saturday #434 – Holland
Questions 26/09/2015 | SQL Saturday #434 – Holland
Resources 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/ 26/09/2015 | SQL Saturday #434 – Holland