Using Azure Mobile Services 
for Modern App Dev 
Puja Pramudya, Microsoft MVP 
Technology Director – Radya Labs Teknologi
We Are PASSIONATE About Mobile Apps
Add a cloud backend to your 
app in minutes without the 
need for server code
Agenda 
1. Intro 
2. Data 
3. Authentication 
4. Push Notifications 
5. Q & A
Rich Feature Set 
SDKs 
Source 
control, 
table scripts, 
custom API 
& 
Active 
Directory 
SQL 
Table 
Storage 
Blob 
Storage 
Facebook Twitter Microsoft Google Scheduler 
WNS & 
MPNS APNS 
GCM 
Mongo 
DB 
Windows Store 
iOS 
Android 
Windows Phone 8 
iOS 
Android 
HTML 5/JS 
REST API
Key Scenarios
DATA
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; 
• Querying
Supported module 
• mssql 
• request 
• console 
• push.* 
• tables 
• xml2js 
• statusCodes 
• Windows Azure Node SDK 
• Windows Store Partners (Sengrid, Twilio, Pusher)
DEMO 
getting started, working 
with data
AUTHENTICATION
Server flow 
FACEBOOK 
GOOGLE 
TWITTER 
MOBILE SERVICE 
DEVICE 
MICROSOFT
Client flow 
FACEBOOK 
GOOGLE 
TWITTER 
MOBILE SERVICE 
DEVICE 
MICROSOFT
Authentication 
• Out of the box support for Microsoft Account, 
Facebook, Twitter and Google 
• Connect 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 Admins 
• More granular control with server-side scripts 
user.level: {admin, authenticated, anonymous} 
user.userID: id or undefined if not authenticated
DEMO 
configure authentication
PUSH
Push at scale 
MPNS/WNS 
APNS 
GCM 
MOBILE SERVICE 
DEVICE 
NOTIFICATION HUB
DEMO 
push notification
Recap 
1. Use dynamic data and get out-of-the box API to 
work on 
2. Leverage 3rd Auth and manage data access 
3. Engage with Push, use notification hub 
Source code : 
https://bitbucket.org/poedja_p/photolane-demo
Q & A
Call to Action 
• Take Microsoft Virtual Academy (MVA) courses 
• Building Apps for Windows Phone 8 Jump Start 
• Windows Phone 8.1 Developer for Absolute Beginners 
• Use Azure Trial (http://azure.microsoft.com/en-us/ 
pricing/free-trial/)
Thank you

Azure Mobile Service - Techdays 2014

  • 1.
    Using Azure MobileServices for Modern App Dev Puja Pramudya, Microsoft MVP Technology Director – Radya Labs Teknologi
  • 2.
    We Are PASSIONATEAbout Mobile Apps
  • 4.
    Add a cloudbackend to your app in minutes without the need for server code
  • 5.
    Agenda 1. Intro 2. Data 3. Authentication 4. Push Notifications 5. Q & A
  • 6.
    Rich Feature Set SDKs Source control, table scripts, custom API & Active Directory SQL Table Storage Blob Storage Facebook Twitter Microsoft Google Scheduler WNS & MPNS APNS GCM Mongo DB Windows Store iOS Android Windows Phone 8 iOS Android HTML 5/JS REST API
  • 7.
  • 8.
  • 9.
    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; • Querying
  • 10.
    Supported module •mssql • request • console • push.* • tables • xml2js • statusCodes • Windows Azure Node SDK • Windows Store Partners (Sengrid, Twilio, Pusher)
  • 11.
    DEMO getting started,working with data
  • 12.
  • 13.
    Server flow FACEBOOK GOOGLE TWITTER MOBILE SERVICE DEVICE MICROSOFT
  • 14.
    Client flow FACEBOOK GOOGLE TWITTER MOBILE SERVICE DEVICE MICROSOFT
  • 15.
    Authentication • Outof the box support for Microsoft Account, Facebook, Twitter and Google • Connect 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 Admins • More granular control with server-side scripts user.level: {admin, authenticated, anonymous} user.userID: id or undefined if not authenticated
  • 16.
  • 17.
  • 18.
    Push at scale MPNS/WNS APNS GCM MOBILE SERVICE DEVICE NOTIFICATION HUB
  • 19.
  • 20.
    Recap 1. Usedynamic data and get out-of-the box API to work on 2. Leverage 3rd Auth and manage data access 3. Engage with Push, use notification hub Source code : https://bitbucket.org/poedja_p/photolane-demo
  • 21.
  • 22.
    Call to Action • Take Microsoft Virtual Academy (MVA) courses • Building Apps for Windows Phone 8 Jump Start • Windows Phone 8.1 Developer for Absolute Beginners • Use Azure Trial (http://azure.microsoft.com/en-us/ pricing/free-trial/)
  • 23.

Editor's Notes

  • #3 Talk about mobile industry Talk about many clients, including business and agency
  • #4 App like photo competition Show local app explain its goal
  • #23 Microsoft Virtual Academy (MVA) => www.microsoftvirtualacademy.com TechNet Virtual Lab => http://aka.ms/virt-labs