2. REBOOt
About Me
• Work at Trivium eSolutions , Bangalore
• Microsoft MVP – Client Development
• Speaker , Blogger , Software Engineer.
• BDOTNETTER( Bangalore .NET User Group )
• Windows Phone enthusiast
Blog : MobileOSGeek.com
Twitter : @isenthil
3. REBOOt
Agenda
• What is Windows Azure Mobile Services ?
• Cloud + Mobility
• Azure Mobile Services Features
• Scenarios for Windows Azure Mobile Services
• How to Create Windows Azure Mobile Services ?
• Demo
• Q & A
4. REBOOt
What is Windows Azure Mobile Services ?
Data
Notifications
Auth
Server Logic
Scale
Logging
Diagnostics
5. REBOOt
Windows Phone
• Mobile OS from Microsoft
• Modern Style UI
• Content than Chrome
• Present SDK Version is Windows Phone SDK 8.0
• C# / VB.NET , XAML , C++
6. REBOOt
Cloud
• Elastic Scale
• Near-infinite Capacity
• Consumption-based Pricing
• No Long-Term Commitments
• High Reliability
• Global Presence
7. REBOOt
Mobility + Cloud = Perfect Pair
Mobility Cloud
Limited Compute Limitless Compute
Limited Storage Limitless Storage
Connect from Anywhere Services via the internet
(APIs)
Rapidly Growing Market Scale and Elasticity
8. REBOOt
Scenarios
• Modern mobile apps
• Reduces the friction associated with repeated and common tasks such as
user authentication, push notifications and structured storage.
• Rapid Development
• Get your app up and running sooner when you use Mobile Services to
configure a straightforward and secure backend quickly within few 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.
11. REBOOt
Structured Storage
• Powered by SQL Database
• Same DB – Multiple Mobile Services
• Data management in
• Windows Azure Portal
• SQL Portal
• SQL Management Studio
• REST API
12. REBOOt
Server Logic
• Automatic service REST API generated for storage
• Dynamic Schema on/off
• Ability to author server logic that intercepts CRUD operation
pipeline
• Rich querying capability
• Node.js scripts
• Intercept CRUD requests to tables
• Fully customizable logic flow
14. REBOOt
REST API
Action HTTP Verb URL Suffix
Create POST /TodoItem
Read GET /TodoItem?$filter=id%3D42
Update PATCH /TodoItem/id
Delete DELETE /TodoItem/id
Data Operations and their REST Equivalents
Base REST API Endpoint URL
https://Mobileservice.azure-mobile.net/tables/*
15. REBOOt
Push Notifications
1. Register for push notifications
with GCM
2. Send your identifier to Mobile
Service
3. Send push from server scripts
4. GCM delivers notification to
device
16. REBOOt
Authorization & Authentication
• Authentication
• Facebook , Twitter , Google , Windows Live
• Table level permissions for each CRUD operation
Everyone
Anyone with the Application Key
Only Authenticated Users
Only Scripts and Admins
• 400 / Unauthorized response if a call doesn’t pass
18. REBOOt
Scheduler
• Execute scripts on a schedule
• Execute scripts on demand
• Frequency and length of execution based off of service level
• Ideal for backend data processing
19. REBOOt
Custom API
• Non-table based scripts
• Accessible from
• Get
• Post
• Put
• Patch
• Delete
• Same permissions as tables
21. REBOOt
Diagnostics, Logging and Scale
Diagnostics
• API calls
• CPU Time
• Data Out
Logging
• console.error(…)
• console.log(…)
Scale - Compute
• Scale out instance count
• Scale up VM size
Scale - Storage
• Scale out mobile service
tenant to dedicated SQL DB
• Scale up SQL DB
23. REBOOt
Resources
• Windows Azure Mobile Services
http://aka.ms/mobileservices
• SDK and Samples available on GitHub
https://github.com/WindowsAzure/azure-mobile-services
• Inside Windows Azure Mobile Services
http://channel9.msdn.com/posts/Kirill-Gavrylyuk-and-Josh-Twist-Inside-Windows-Azure-Mobile-Services
• Windows Azure FREE Trial
http://bit.ly/MikeAzureTrial