SlideShare a Scribd company logo
1 of 14
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 – Holland2 |
Evaluations
 Event
 http://www.sqlsaturday.com/434/
eventeval.aspx
 Sessions
 http://www.sqlsaturday.com/434/
sessions/sessionevaluation.aspx
26/09/2015 | SQL Saturday #434 – Holland3 |
 Who am I?
 Introduction
 Authentication
 Azure AD
 Authorization Token
 Demo
 Resources
Agenda
26/09/2015 | SQL Saturday #434 – Holland4 |
 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 |
 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 |
 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 |
 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 |
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 |
26/09/2015 | SQL Saturday #434 – Holland10 |
26/09/2015 | SQL Saturday #434 – Holland11 |
 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 |
QUESTIONS
26/09/2015 | SQL Saturday #434 – Holland13 |
 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 |

More Related Content

What's hot

What's hot (20)

API Management and Hybrid Integration
API Management and Hybrid IntegrationAPI Management and Hybrid Integration
API Management and Hybrid Integration
 
Microservices in action: How to actually build them
Microservices in action: How to actually build themMicroservices in action: How to actually build them
Microservices in action: How to actually build them
 
Application Insights for Integration Developers
Application Insights for Integration DevelopersApplication Insights for Integration Developers
Application Insights for Integration Developers
 
Webcast: Apigee Edge Product Demo
Webcast: Apigee Edge Product DemoWebcast: Apigee Edge Product Demo
Webcast: Apigee Edge Product Demo
 
Smartone v1.0
Smartone v1.0Smartone v1.0
Smartone v1.0
 
Apigee Product Roadmap Part 2
Apigee Product Roadmap Part 2Apigee Product Roadmap Part 2
Apigee Product Roadmap Part 2
 
Azure API Apps
Azure API AppsAzure API Apps
Azure API Apps
 
apidays LIVE New York 2021 - Event driven design and serverless by Omid Eidiv...
apidays LIVE New York 2021 - Event driven design and serverless by Omid Eidiv...apidays LIVE New York 2021 - Event driven design and serverless by Omid Eidiv...
apidays LIVE New York 2021 - Event driven design and serverless by Omid Eidiv...
 
Logic apps and PowerApps - Integrate across your APIs
Logic apps and PowerApps - Integrate across your APIsLogic apps and PowerApps - Integrate across your APIs
Logic apps and PowerApps - Integrate across your APIs
 
API Management and Kubernetes
API Management and KubernetesAPI Management and Kubernetes
API Management and Kubernetes
 
Convert your sketches to code with microsoft ai
Convert your sketches to code with microsoft aiConvert your sketches to code with microsoft ai
Convert your sketches to code with microsoft ai
 
Android chatbot grievance-reporting-solution
Android chatbot grievance-reporting-solutionAndroid chatbot grievance-reporting-solution
Android chatbot grievance-reporting-solution
 
What is APIGEE? What are the benefits of APIGEE?
What is APIGEE? What are the benefits of APIGEE?What is APIGEE? What are the benefits of APIGEE?
What is APIGEE? What are the benefits of APIGEE?
 
Customer testimonal API Program Lessons learned
Customer testimonalAPI ProgramLessons learnedCustomer testimonalAPI ProgramLessons learned
Customer testimonal API Program Lessons learned
 
Serverless CQRS in Azure!
Serverless CQRS in Azure!Serverless CQRS in Azure!
Serverless CQRS in Azure!
 
Managing global ecommerce at hyperscale with Azure
Managing global ecommerce at hyperscale with AzureManaging global ecommerce at hyperscale with Azure
Managing global ecommerce at hyperscale with Azure
 
The citizen integrator
The citizen integratorThe citizen integrator
The citizen integrator
 
MN Enterprise Mobile User Group April 2015 Meeting
MN Enterprise Mobile User Group April 2015 MeetingMN Enterprise Mobile User Group April 2015 Meeting
MN Enterprise Mobile User Group April 2015 Meeting
 
We built this city: Behind the scenes of Apigee Edge
We built this city: Behind the scenes of Apigee EdgeWe built this city: Behind the scenes of Apigee Edge
We built this city: Behind the scenes of Apigee Edge
 
Serverless integration - Logic Apps the most comprehensive integration service
Serverless integration - Logic Apps the most comprehensive integration serviceServerless integration - Logic Apps the most comprehensive integration service
Serverless integration - Logic Apps the most comprehensive integration service
 

Similar to Power BI API

Embed Interactive Reports in Your Apps
Embed Interactive Reports in Your AppsEmbed Interactive Reports in Your Apps
Embed Interactive Reports in Your Apps
Teo Lachev
 

Similar to Power BI API (20)

SQLSaturday 551 - Extending Power BI
SQLSaturday 551 - Extending Power BISQLSaturday 551 - Extending Power BI
SQLSaturday 551 - Extending Power BI
 
SQLSaturday 541 - Extending Power BI
SQLSaturday 541 - Extending Power BISQLSaturday 541 - Extending Power BI
SQLSaturday 541 - Extending Power BI
 
Power BI for Developers @ SQLSaturday #420 (Paris)
Power BI for Developers @ SQLSaturday #420 (Paris)Power BI for Developers @ SQLSaturday #420 (Paris)
Power BI for Developers @ SQLSaturday #420 (Paris)
 
Embed Interactive Reports in Your Apps
Embed Interactive Reports in Your AppsEmbed Interactive Reports in Your Apps
Embed Interactive Reports in Your Apps
 
O365 saturday: How to (remote) control office 365 with windows azure-slideshare
O365 saturday: How to (remote) control office 365 with windows azure-slideshareO365 saturday: How to (remote) control office 365 with windows azure-slideshare
O365 saturday: How to (remote) control office 365 with windows azure-slideshare
 
Leveraging Microsoft Power BI To Support Enterprise Business Intelligence
Leveraging Microsoft Power BI To Support Enterprise Business IntelligenceLeveraging Microsoft Power BI To Support Enterprise Business Intelligence
Leveraging Microsoft Power BI To Support Enterprise Business Intelligence
 
Tuga IT - Power BI for Developers
Tuga IT - Power BI for DevelopersTuga IT - Power BI for Developers
Tuga IT - Power BI for Developers
 
.NET Fest 2019. Евгений Полоничко. Power BI embedded
.NET Fest 2019. Евгений Полоничко. Power BI embedded.NET Fest 2019. Евгений Полоничко. Power BI embedded
.NET Fest 2019. Евгений Полоничко. Power BI embedded
 
Full Stack Aadhaar eKYC Solution
Full Stack Aadhaar eKYC Solution Full Stack Aadhaar eKYC Solution
Full Stack Aadhaar eKYC Solution
 
Power BI Summit 2023 - Embedding PowerBI reports in .NET MAUI mobile apps.pptx
Power BI Summit 2023 - Embedding PowerBI reports in .NET MAUI mobile apps.pptxPower BI Summit 2023 - Embedding PowerBI reports in .NET MAUI mobile apps.pptx
Power BI Summit 2023 - Embedding PowerBI reports in .NET MAUI mobile apps.pptx
 
Building Business Applications in Office 365 SharePoint Online Using Logic Apps
Building Business Applications in Office 365 SharePoint Online Using Logic AppsBuilding Business Applications in Office 365 SharePoint Online Using Logic Apps
Building Business Applications in Office 365 SharePoint Online Using Logic Apps
 
Real Time Power BI
Real Time Power BIReal Time Power BI
Real Time Power BI
 
Real-Time PowerBI
Real-Time PowerBIReal-Time PowerBI
Real-Time PowerBI
 
My slides from SharePoint Saturday Oslo
My slides from SharePoint Saturday OsloMy slides from SharePoint Saturday Oslo
My slides from SharePoint Saturday Oslo
 
Pbi iot data viz
Pbi iot data vizPbi iot data viz
Pbi iot data viz
 
Build Interactive Analytics using Power BI
Build Interactive Analytics using Power BIBuild Interactive Analytics using Power BI
Build Interactive Analytics using Power BI
 
Get started azure- Azure Mobile Services
Get started azure- Azure Mobile ServicesGet started azure- Azure Mobile Services
Get started azure- Azure Mobile Services
 
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
TechNet Conference 2013 Berlin-Wie Sie Office 365 mit Windows Azure steuern b...
 
Power BI for Developers
Power BI for DevelopersPower BI for Developers
Power BI for Developers
 
Connect SharePoint Framework solutions to APIs secured with Azure AD
Connect SharePoint Framework solutions to APIs secured with Azure ADConnect SharePoint Framework solutions to APIs secured with Azure AD
Connect SharePoint Framework solutions to APIs secured with Azure AD
 

More from Jan Pieter Posthuma

More from Jan Pieter Posthuma (10)

Extending Power BI with your own custom visual
Extending Power BI with your own custom visualExtending Power BI with your own custom visual
Extending Power BI with your own custom visual
 
Extending Power BI with your own custom visual
Extending Power BI with your own custom visualExtending Power BI with your own custom visual
Extending Power BI with your own custom visual
 
Azure Global Bootcamp - CIS Handson
Azure Global Bootcamp - CIS HandsonAzure Global Bootcamp - CIS Handson
Azure Global Bootcamp - CIS Handson
 
Extending Power BI With Your Own Custom Visual
Extending Power BI With Your Own Custom VisualExtending Power BI With Your Own Custom Visual
Extending Power BI With Your Own Custom Visual
 
PBIG - Power BI en R visuals
PBIG - Power BI en R visualsPBIG - Power BI en R visuals
PBIG - Power BI en R visuals
 
SQLServer Days - Power BI Custom Visuals
SQLServer Days - Power BI Custom VisualsSQLServer Days - Power BI Custom Visuals
SQLServer Days - Power BI Custom Visuals
 
TechDays - Power BI Custom Visuals
TechDays - Power BI Custom VisualsTechDays - Power BI Custom Visuals
TechDays - Power BI Custom Visuals
 
Hadoop from Hive with Stinger to Tez
Hadoop from Hive with Stinger to TezHadoop from Hive with Stinger to Tez
Hadoop from Hive with Stinger to Tez
 
SQLRally Amsterdam 2013 - Hadoop
SQLRally Amsterdam 2013 - HadoopSQLRally Amsterdam 2013 - Hadoop
SQLRally Amsterdam 2013 - Hadoop
 
SQLBits XI - ETL with Hadoop
SQLBits XI - ETL with HadoopSQLBits XI - ETL with Hadoop
SQLBits XI - ETL with Hadoop
 

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Recently uploaded (20)

Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Tech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdfTech Trends Report 2024 Future Today Institute.pdf
Tech Trends Report 2024 Future Today Institute.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 

Power BI API

  • 1. Power BI API Introduction into the Power BI REST API Jan Pieter Posthuma 26/09/2015 | SQL Saturday #434 – Holland
  • 2. Thanks to our sponsors 26/09/2015 | SQL Saturday #434 – Holland2 |
  • 3. Evaluations  Event  http://www.sqlsaturday.com/434/ eventeval.aspx  Sessions  http://www.sqlsaturday.com/434/ sessions/sessionevaluation.aspx 26/09/2015 | SQL Saturday #434 – Holland3 |
  • 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 |
  • 10. 26/09/2015 | SQL Saturday #434 – Holland10 |
  • 11. 26/09/2015 | SQL Saturday #434 – Holland11 |
  • 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 |
  • 13. QUESTIONS 26/09/2015 | SQL Saturday #434 – Holland13 |
  • 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 |