Windows Azure Mobile Services to Exposing Operational Data for Mobile Devices

Preview:

DESCRIPTION

In this session Kent will take a real world business scenario from the Power Generation industry. The scenario involves real time data collection, power generation commitments made to market stakeholders and current energy prices. A Power Generation company needs to monitor all of these data points to ensure it is maintaining its commitments to the marketplace. When things do not go as planned, there are often significant penalties at stake. Having real time visibility into these business measures and being notified when the business becomes non-compliant becomes extremely important. Learn how Windows Azure and many of its building blocks (Azure Service Bus, Azure Mobile Services) and BizTalk Server 2013 can address these requirements and provide Operations people with real time visibility into the state of their business processes.

Citation preview

brought to you by

BIZTALK SUMMIT 2014, LONDON

MARCH 03-04sessions. discussions. networking and

more

Exposing Operational data to Mobile devices using Windows AzureKent

Weare

About me• Senior Enterprise Architect @ Large Power Generation Company• 9+ years working with BizTalk• 7 time Microsoft MVP (BizTalk/Integration)• Author• Blogger• Speaker• Grad Student @ Arizona State University

Agenda• Why are we talking about Mobility here?• Introducing Windows Azure Mobile Services• How does BizTalk participate in Enterprise Mobility Architectures?• Demo• Summary

…but first

Why are we talking about Mobility here?Every CIO has mobility “on their list”

• What is important to my boss is important to meEnterprise Mobility brings some unique challenges: • Diverse Eco-Systems• Android, Apple, Windows Phone, Windows Store apps

• Skillset fragmentation• Node.js, Angular.js, HTML5 vs XML, XSD, Xlang, WF

• Authentication• Can’t use Facebook credentials to submit timesheet

• Network boundaries• Can’t put everything in the DMZ

• Legacy• Flat files, XML• JSON

• Point to Point is evil!!!• More education is required

For many Mobile Developers Integration is this confusing

How do we bridge the gap?

Leverage Platforms

BizTalk Server/Services+

Azure Mobile Services

simplicity with enablement

http:

//w

ww

.flic

kr.c

om/p

hoto

s/po

pcor

ncx/

3517

6894

78

http:

//w

ww

.flic

kr.c

om/p

hoto

s/da

nzen

/139

7212

05

IDENTITY

DATA

MESSAGING

CONNECTIVITY

LOGIC

MO

BILE

SER

VICE

S

API

DEVICES

Azure mobile services - feature richProvision cloud-connected app in a few clicks, little code

Support for Android, iOS, HTML5, Windows 8, and Windows Phone 8/7.5

Different clients can share the same backend

Easy authn and authz using Google, Microsoft Account, Facebook, or Twitter

Push notifications

Scheduled tasks support

Backend scripting with Node.js *

Custom API support

Push your code via portal or git

Extend backend with third-party services

Looks great, but…

SAP

CRM

SQL Server

Oracle

Custom LOB

DEVICES

The Traditional Enterprise Landscape

How do we get from here to there?

Legacy

IDENTITY

DATA

MESSAGING

CONNECTIVITY

LOGIC

MO

BILE

SER

VICE

S

API

DEVICES

How does BizTalk/Service Bus play a role in this architecture?

MESSAGING

CONNECTIVITY

SalesForce

NetSuite

Box

FinancialForce

Office365

DEVICES

….and by the way

How do we get from here to there?

Facebook

SuccessFactors

Marketo

Tableau

Azure

Twitter

Amazon

The alternative…

Enterprise Integration challenges don’t disappear with Mobility …they have only gotten bigger!

Enterprise Mobility Challenges

Format?Mobility Platform?Storage/Cache?

Availability?Security?

LOB System

Mobile Services

SQL Databases

Service Bus

Active Directory

BizTalk Server/Services

“Enterprise Mobility Stack”

Demo Scenario• Deregulated Power Generation company• Power Generator Commitment includes:• Declared: Potential amount of Power available• Dispatched: Actual amount of Power that is being generated

• Some small variance is expected• When a generator doesn’t meet their commitment there are penalties $$$• Over generating is just as bad as under-generating• Not a replacement for a BI or SCADA solution

Scenario #1 – Updating Dashboard

Mobile Services

SQL Database

Service Bus

BizTalk Server 2013

Historian #1 Historian #2 Historian #3

DEVICES

JSON

Scenario #2 – Push Notifications

Mobile Services

SQL Database

Service Bus

BizTalk Server 2013

Historian #1 Historian #2 Historian #3

DEVICES

JSON

Scheduler

Push Notification

Out of boundsNotification

BizTalk SolutionExpose REST Endpoint

BizTalk SolutionExpose REST Endpoint

BizTalk SolutionExpose REST Endpoint

BizTalk SolutionExpose REST Endpoint

BizTalk SolutionSimple BizTalk Orchestration

BizTalk SolutionSB Messaging Adapter

BizTalk Solution

Custom JSON Pipeline Component *

Mobile Services SolutionProvisioning Service

Mobile Services Solution

Choosing your platform

Mobile Services SolutionData

Mobile Services Solution

Data Table

Mobile Services SolutionReading from a Mobile Services table

Var declare = await App.MobileService.GetTable<PlantCommitmentsModel>().Where(x => x.plantname == "NorthWest U.S.").OrderByDescending(x => x.transactiondate).Take(1).ToListAsync();

Mobile Services SolutionScheduling Service

Mobile Services SolutionScheduling Service Configuration

Mobile Services SolutionScheduling Service Script – Pull from Service Bus Queue

Mobile Services SolutionScheduling Service Script – Insert Record

Mobile Services SolutionScheduling Service Script – Creating Notification

Mobile Services Solution

Scheduling Service Script – Sending Notification

Mobile Services Solution

Notification – Configuration

Mobile Services SolutionCustom API – Call WABS Bridge

Enterprise

MobilityStack

“Building Mobile Apps for the

Enterprise”

BUYHOLDSELL

Coming

Soon

BizTalk Server 2013 R2• Native JSON Support

Windows Azure Mobile Services• C# backend based on

WebAPI• Offline Support

Updated Certification BookIncludes:• 70-595 Certification Exam• Microsoft Partner Network

Technical Competency Assessment

Available March 10, 2014

Resources• Twitter @wearsy• Blog kentweare.blogspot.com• Mobile Services Announcement http://tinyurl.com/lcnrnzg• #msbts