Miranda Luna Reid Simon WADB319 Agenda Overview Windows Store Data Push Auth Source control via local Git Custom API Diagnostics amp Scale What is Windows Azure Mobile Services ID: 638319
Download Presentation The PPT/PDF document "Developing Connected Windows Store Apps ..." is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.
Slide1
Developing Connected Windows Store Apps with Windows Azure Mobile Services: Overview
Miranda LunaReid Simon
WAD-B319Slide2
Agenda
Overview Windows Store
Data
Push
Auth
Source control via local
Git
Custom API
Diagnostics & ScaleSlide3
What is Windows Azure Mobile Services?
Connected Apps
SDKs
Source control, table scripts, custom API
&
Scheduler
Push Notifications
Store Data in the Cloud
User Authentication
Facebook
Twitter
Microsoft
Google
Active Directory
SQL
Table Storage
Blob Storage
WNS & MPNS
APNS
GCM
Mongo DB
Windows Store
iOS
Android
Windows Phone 8
iOS
Android
HTML 5/JS
REST APISlide4
Supported Platforms
iOS
Windows 8
Windows Phone
Android
HTML5 &
JavascriptSlide5
Demo
Create a Mobile ServiceSlide6
Data
Structured Storage with SQL databasePoint multiple apps at the same
db
, partitioned
AppX.Todoitem
AppY.TodoitemManage data in Portal—Mobile Services or SQL
SQL Management Studio REST API CLI Tools
azure mobile create <service-name> <server-admin> <server-password>Slide7
Table scripts
Automatic service REST API generated for storage
Dynamic schema on/off
item.created
= new Date();
Server logic that intercepts CRUD operations
Connect to Windows Azure and third party services
var azure = require(‘azure’);
var
sendgrid = require
(‘
sendgrid’).SendGrid;
QueryingSlide8
Table Scripts
Supported Modules
and
Globals
mssql
request console push
.* tables xml2js
statusCodes Windows Azure Node SDK Windows Store Partners (
Sengrid, Twilio, Pusher
)Slide9
Demo
Table scripts on CRUD operationsSlide10
Push Notifications
Request Channel URI
Register with your Cloud Service
Authenticate and Push Notification Slide11
Push Notifications
Integrates with WNS (and MPNS, APNS, or GCM)Toast, Tile, Badge and Raw notifications
Portal captures WNS client secret and package SID
push.wns
* provides:
Clean object model to compose notifications
Auth against WNS for you Slide12
Demo
Adding push notificationsSlide13
Authentication
Out of the box support for Microsoft Account, Facebook, Twitter and GoogleConnect to WA Active Directory through azure module and to on-
prem
ADFS from there
Table level permissions for each CRUD operation
Everyone, Anyone with Application Key, Only Authenticated users, or Only Scripts and AdminsMore granular control with server-side scripts
user.level: {admin, authenticated, anonymous}
user.userID: id or undefined if not authenticatedSlide14
Demo
Twitter AuthenticationSlide15
Source control via local
Git
Integrated source control
Ability to upload and share your own node modules
No out of the box support for TFS or
GitHub
. Yet.Slide16
Demo
Upload Twilio node moduleSlide17
Custom API
Three options for server-side scripts:
Table Scripts
Scheduler
Custom API
Accomplish two things:
Custom endpoints not tied to a CRUD operation More control over data reading/writing on the wire –e.g XML and Windows Periodic Notifications or HTTP headersCustom API scripts can call other scripts, expose and share your API with other developersSlide18
Demo
Send SMS from TwilioSlide19
Diagnostics, Logging and Scaling
Diagnostics
API
calls
CPU
Time
Data OutLogging
console.error(…) console.log
(…) console.warn(…)
ScalingSlide20
Additional Resources
Windows
Azure
Mobile Services Overview, Tutorials and Resources
http://www.windowsazure.com/en-us/develop/mobile
/
Collection of Helpful Tutorials and Resources
http://aka.ms/
CommonWAMS
Learn/Channel 9
http://channel9.msdn.com/Series/Windows-Azure-Mobile-Services
SDKs on
GitHub
https://github.com/WindowsAzure/azure-mobile-services/
REST API Reference
http://msdn.microsoft.com/en-us/library/windowsazure/jj710108.aspxWindows Azure Pricing
https://www.windowsazure.com/en-us/pricing/calculator/UserVoice for Feature Requestshttp://mobileservices.uservoice.comMicrosoft Azure Certified Training
http://www.microsoft.com/learning/en/us/training/azure.aspxSlide21
© 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows 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.Slide22
Appendix
Upload Twilio node moduleSlide23
Scheduler
All JavaScript
Execute
scripts on a Schedule
by
Minutes, Hours, Days or MonthsExecute scripts on Demand
Examples Periodic data cleanup Poll and aggregate from 3rd party (Twitter, RSS, others)
Process/resize images Schedule sending push notifications
at a given time of day