24
David Isbitski Technical Evangelist, Microsoft http://blogs.msdn.com/davedev @TheDaveDev Building Windows Phone Apps with Windows Azure Mobile Services

Windows Phone 8 and Azure Mobile Services

Embed Size (px)

DESCRIPTION

Session: 5 - Windows Phone 8 and Azure Mobile Services Event: Washington DC Windows Phone 8 Jumpstart Date: March 2013

Citation preview

Page 1: Windows Phone 8 and Azure Mobile Services

David IsbitskiTechnical Evangelist, Microsofthttp://blogs.msdn.com/davedev@TheDaveDev

Building Windows Phone Apps with Windows Azure Mobile Services

Page 2: Windows Phone 8 and Azure Mobile Services

Now is the time to write your game. Enjoy the first to market advantage!

twitter.com/thedavedev | [email protected]

http://bit.ly/genapp8

Page 3: Windows Phone 8 and Azure Mobile Services

Windows Azure Mobile ServicesDataPush NotificationsAuthDiagnostics & Scale

Agenda

Page 4: Windows Phone 8 and Azure Mobile Services

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

What is Windows Azure Mobile Services?

Page 5: Windows Phone 8 and Azure Mobile Services

Windows Azure Mobile Services are ideal for:

Modern mobile appsReduces the friction associated with repeating common tasks such as user authentication, push notifications, and structured storage

Rapid DevelopmentTime is money. Get your app up and running sooner when you use Mobile Services to configure a straightforward and secure backend in less than five minutes.

Apps requiring structured data Seamlessly connect to a Windows Azure SQL database for simple data management and dynamically created tables. Easy to set and manage permissions.

Key Scenarios

Page 6: Windows Phone 8 and Azure Mobile Services

a backend for your mobile apps in minutes

demoGetting Started

Page 7: Windows Phone 8 and Azure Mobile Services

Structured StorageStructured Storage with SQL DatabaseIf using single database apps are partitioned by schema

AppX.TodoitemAppY.Todoitem

Manage data inPortalSQL PortalSQL Management StudioREST API…

Page 8: Windows Phone 8 and Azure Mobile Services

Server Logic

Automatic service REST API generated for storageDynamic Schema on/offAbility to author server logic that intercepts CRUD operation pipelineRich querying capability

Page 9: Windows Phone 8 and Azure Mobile Services

REST API to SQL type mappings

JSON Value T-SQL TypeNumeric values (integer, decimal, floating point)

Float(53)

Boolean BitDateTime DateTimeOffset(3)String Nvarchar(max)

Page 10: Windows Phone 8 and Azure Mobile Services

adding server logic on CRUD operations

demoServer Logic

Page 11: Windows Phone 8 and Azure Mobile Services

1. Request Channel URI

2. Register with your Cloud Service

3. Authenticate & Push Notification

Windows 8

(1)

(2)

(3)

(3)

Push Notification Overview

Page 12: Windows Phone 8 and Azure Mobile Services

Auth*

Authenticate against Windows LiveTable level permissions for each CRUD operation

EveryoneAnyone with the Application KeyOnly Authenticated UsersOnly Scripts and Admins

More granular control with server side scripts

Page 13: Windows Phone 8 and Azure Mobile Services

hooking up to Twitter or Facebook in minutes

demoAdding Authentication

Page 14: Windows Phone 8 and Azure Mobile Services

Push Notifications

Integrates with WNS to provide Toast, Tile, Badge and Raw notificationsPortal captures your WNS client secret and package SIDpush.wns.* provides:

clean easy object model to compose notifications

Performs auth against WNS for you

Page 15: Windows Phone 8 and Azure Mobile Services

push notification lifecycle made easy

demoPush Notifications

Page 16: Windows Phone 8 and Azure Mobile Services

Diagnostics, Logging and Scale

DiagnosticsAPI callsCPU TimeData Out

Loggingconsole.error(…)console.log(…)

Scale - ComputeScale out instance countScale up VM size

Scale - StorageScale out mobile service tenant to dedicated SQL DBScale up SQL DB

Page 17: Windows Phone 8 and Azure Mobile Services

demo

Diagnostics, Logging, Scale

Page 18: Windows Phone 8 and Azure Mobile Services

Free Offer at Preview

Running on shared instances

10 Mobile Services 1GB SQL

Database

Must be deployed to US-East DC

Data transfer is per subscription, not per mobile service

No SLA during Preview. Only small instances available. Can upgrade to a reserved instance at 33% discount from normal Pay-As-You-Go rates during Preview.

From

WA

Free Tria

lUnlimited ingress

165MB daily egress

Page 19: Windows Phone 8 and Azure Mobile Services

Pricingpricing & licensing $ service level

agreements

PreviewNo availability SLA

General Availability99.9%

Shared Instance (multitenant environment)

Small instance is the only size available; multiple may be purchased

Free at public preview launch

Up to 10 applications

Reserved Instance (private VM)

Small instance is the only size available; multiple may be purchased

Charge for Preview will be at the same reduced rate as Web Sites

Up to 10 applications

Page 20: Windows Phone 8 and Azure Mobile Services

Summary

Data

Notifications

Auth

Server Logic

Scale

Logging

Diagnostics

Page 21: Windows Phone 8 and Azure Mobile Services

Resources• http://www.WindowsAzure.com/mobile

Page 22: Windows Phone 8 and Azure Mobile Services

David IsbitskiTechnical Evangelist, Microsofthttp://blogs.msdn.com/davedev@TheDaveDev

Building Windows Phone Apps with Windows Azure Mobile Services

Page 23: Windows Phone 8 and Azure Mobile Services

Now is the time to write your game. Enjoy the first to market advantage!

twitter.com/thedavedev | [email protected]

http://bit.ly/genapp8

Page 24: Windows Phone 8 and Azure Mobile Services

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS

PRESENTATION.