Developers Introduction to the Power BI Platform.

Slides:



Advertisements
Similar presentations
Attie Naude 14 May 2013 Windows Azure Mobile Services.
Advertisements

Patterns & practices Symposium 2013 Windows Azure Active Directory Vittorio
1 Trillion Azure AD authentications since the release of the service 50 M Office 365 users active every month >1 Billion authentications every.
1 Trillion Azure AD authentications since the release of the service 50 M Office 365 users active every month >1 Billion authentications every.
Fraser Technical Solutions, LLC
App development in SharePoint 2013 LIVE Introducing Cloud App Model Cloud-hosted Apps Experiences from the Field.
OM. Brad Gall Senior Consultant
Office 365 Platform Flexible Tools Each Office 365 Workload API required different Authentication.
Intro to Datazen.
Welcome to Azure App Services! Amie Seisay
UNDERSTANDING YOUR OPTIONS FOR CLIENT-SIDE DEVELOPMENT IN OFFICE 365 Mark Rackley
Secure Mobile Development with NetIQ Access Manager
Today’s Applications Web API Browser Native app Web API Web API
Introduction to the Power BI Platform Presented by Ted Pattison.
Power BI for Developers Rui Romano.   BI Pro / Soft. Architect / Developer  Blog 
Martina Grom MVP Office 365 How to (remote) control Office 365 with Azure Toni Pohl MVP Client Dev
SQLSaturday Paris 2015 Power BI for Developers Rui Romano.
Power BI for Developers Rui Romano SQLSaturday.com
AZURE AD Haishi DX, Agenda Basic concepts Exercise 1: Creating a new Azure AD tenant and a new user Exercise 2: Enable web app Azure AD authentication.
Azure Active Directory is becoming one of, if not the, primary user identity management services for cloud applications. One of Azure Active Directory's.
Real-Time Dashboards on Power BI
A deep dive into Azure AD B2C
Via the REST API and Power BI Embedded Jan Pieter Posthuma
Building Azure Mobile Apps
Getting started with Power BI and Dynamics CRM
4/18/2018 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
5/13/2018 8:08 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Business Directory REST API
Make Power BI Your Own with the Power BI APIs
Microsoft Active Directory Certificate Services and System Center Configuration Manager Internet Based Client Management.
Automate Custom Solutions Deployment on Office 365 and Azure
Migrating SharePoint Add-ins from Azure ACS to Azure AD
Make Power BI Your Own with the Power BI APIs
Understand Hybrid Identity with Azure and Azure Stack
Azure RMS Deep Dive.
SharePoint power hour Rob Howard Program Manager Build 2014
Power BI Security Best Practices
Building Cross-Platform Apps with Windows Azure Mobile Services
Office 365 Development.
Make Power BI Your Own with the Power BI APIs
Azure AD Line Of Business Application Integration
11/14/ :30 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
Office 365 Development July 2014.
Power BI in the New Age!.
Office 365 Development.
Make Power BI Your Own with the Power BI APIs
Introduction to SharePoint Framework
Office 365 Development July 2014.
Welcome to SQL Saturday Denmark
Agenda OAuth Concepts Programming OAuth.
TechEd /11/ :54 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered.
Power BI and SharePoint – the road ahead
SharePoint Online Authentication Patterns
Office 365 Development.
Microsoft Ignite /17/2019 6:00 PM
Building on the Microsoft Graph: 0 - App in 60 minutes
TechEd /22/2019 9:22 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Office 365 Development.
CSG, Power BI & Embedded.
Introduction into the Power BI REST API Jan Pieter Posthuma
Power BI Embedded Bringing Analytics to your App
Microsoft Office 4/3/2019 Deep Dive into native Universal App development with the Office 365 APIs Speaker name Title Microsoft Corporation © 2012 Microsoft.
Azure Active Directory
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
The complete developer's guide to the SkyDrive API
11/11/2019 1:15 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Embedding Power BI in your application
Power BI Embedded for Fun and Profit
Presentation transcript:

Developers Introduction to the Power BI Platform

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Agenda Getting Started with the Power BI REST API Creating a Real-time Dashboard Creating an SPA for Power BI using Angular.js Embedding Reports and Dashboard Tiles Developing Custom Visuals for Power BI #ITDevConnections

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM The Power BI REST API What is Power BI? – Collection of cloud services & tools for building BI solutions – Power BI service available to licensed subscribers – Power BI model based on datasets, reports and dashboards What is the Power BI REST API? – API built on OAuth2, OpenID Connect, REST and ODATA – Allows developers to program datasets, reports and dashboards What can you do with the Power BI REST API? – Create and update datasets – Build real-time dashboards – Embed Power BI reports and dashboards tiles in web pages

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Getting Started What you need to get started? – Organizational account in an Office 365 tenancy – License for Power BI – Get either the Power BI Pro license or free license – Visual Studio 2015 – Azure subscription for application registration – Get the code samples for this session

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM What Operations Are Supported in v1.0? Workspace Group Operations – Get Groups Dataset Operations – Get Datasets – Create Dataset Table Operations – Get Tables – Alter Table Schema Table Row Operations – Add Rows – Delete Rows

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM What Operations are Supported in Beta? Report Operations – Get Reports Dashboard Operations – Get Dashboards – Get Dashboard Tiles Import Operations – Create Import – Get Imports – Get Import by GUID – Get Import by File Path

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM The PowerBiRestApiDemo Sample Project Console application project in Visual Studio 2015 PowerBiRestApiDemo project contains two NuGet packages – Newtonsoft.Json used to convert JSON data to and from and C# – Azure ADAL used to get access tokens from Azure Active Directory

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM App Registration with an Azure Tenant Application must be registered within an Office 365 tenant – Registration can be accomplished using Azure Management portal – Registration can be accomplished using Power BI App Registration Page

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Power BI App Registration

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Important Application Constants Power BI REST API requires Client ID and several URLs – These values are tracked as application constants

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Authenticating with Azure AD User must be authenticated against Azure AD – User authentication used to obtain access token – Can be accomplished with the Azure AD Authentication Library – Access token pass to Power BI REST API in call REST calls Custom App Azure Active Directory Power BI Service Access Token

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Using ADAL to Retrieve an Access Token 1 2 3

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Executing Power BI REST API Calls Generic helper methods designed to execute HTTP operations Custom AppPower BI Service HTTP POST Access Token JSON 1 2

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Using JSON to Create a Custom Dataset Dataset created using JSON-formatted Table Schema

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Creating a Custom Dataset Dataset created by executing HTTP POST operation – One-time operation done as application begins running Power BI Service HTTP POST Access Token JSON My Custom Dataset Countries table States table 1 2 3

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Designing C# Classes to Convert to JSON C# class can be created to facilitate reading & writing JSON – Newtonsoft.Json package contains classes for performing conversions

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Adding Rows to a Table in a Dataset Executing POST to add rows to Countries table Power BI Service HTTP POST Access Token JSON Countries Table 1 2

CREATING A REAL-TIME DASHBOARD

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM The Scenario Being Simulated Contribution website accepts contributions from donors – Website calls web service to process credit card transaction – Website calls to Power BI REST API to create & update dataset Vote for Joe He’ll back an alpaca Back an Alpaca Donate Related LinksPrivacy Policy Copyright 2016 – Alpaca Joe’s Super Pac to Get Back to the Facts When a Jackass Attacks an Alpaca - All Right Reserved Credit Card Authority Power BI Service Contributions Web Site

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM CampaignContributions Demo App Console app similar to PowerBiRestApiDemo – Uses Newtonsoft.Json package to convert JSON data – Uses Azure ADAL.NET to get access tokens from Azure AD

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Contribution Row Data

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Scaling a Real-time Dashboard Low velocity data scenario High velocity data scenario Power BI Service HTTP My App Data Sender Azure Event Hub HTTP Azure Streaming Analytics Power BI Service

CREATING AN SPA FOR POWER BI USING ANGULAR.JS

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM The PowerBiContentViewer Demo Demonstrates SPA application – Built using client-side code (HTML, CSS and JavaScript) – SPA built using Angular-JS – Authentication using ADAL-JS Azure AD Authentication Library for JavaScript

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Understanding the Implicit Grant Flow Implicit Grant Flow – Used when client cannot keep secrets (public client) – Used with SPAs built using JavaScript and AngularJS – Less secure than Authentication Code Grant How does it work? – Client authorizes user with AD authorization endpoint – AD returns access token directly to SPA in browser – Authentication flow does not involve authorization code

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Configuring Implicit Flow in Azure AD Requires configuring AD application in Azure AD – Download manifest from Azure AD – Update oauth2AllowImplicitFlow setting equal to true – Upload manifest to Azure AD to save changes

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Downloading the ADAL-JS Library Developing with ADAL-JS involves to two library files – adal.js – core ADAL-JS library – adal-angular.js –integration of ADAL-JS with AngularJS Library files downloadable from GitHub Repository –

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Initializing ADAL-JS Settings

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Making Secure Calls to Custom Web Services adal-angular.js adds interceptors to $http service – adal detects when calls are made to secure endpoints – adal acquires & caches access tokens behind scenes – adal attaches access token to Authorization header

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Inspecting Authenticated User Claims

EMBEDDING REPORTS AND DASHBOARD TILES

DEVELOPING CUSTOM VISUALS FOR POWER BI

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Power BI Custom Visual Tool What is the Power BI Custom Visual Tool? – Command-line utility for cross-platform dev – Use it with Visual Studio or Visual Studio Code – Requires that you first install node.js Where can you get it? – #ITDevConnections

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Getting Started with PBIVIZ #ITDevConnections

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Creating & Starting a Project #ITDevConnections

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Developing with Visual Studio Code #ITDevConnections

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM #ITDevConnections Developing with Visual Studio 2015

DEVELOPERS INTRODUCTION TO THE POWER BI PLATFORM Summary Getting Started with the Power BI REST API Creating a Real-time Dashboard Creating an SPA for Power BI using Angular.js Embedding Reports and Dashboard Tiles Developing Custom Visuals for Power BI #ITDevConnections

Rate This Session Now! Rate with Mobile App: Select the session from the Agenda or Speakers menus Select the Actions tab Click Rate Session Rate with Website: Register at Go to Select this session from the list and rate it Tell Us What You Thought of This Session Be Entered to WIN Prizes! #ITDevConnections