SlideShare a Scribd company logo
Cloud Powered Mobile Apps
with Azure
Toan Huynh
Microsoft Azure
What is Mobile Services?
2
Storage
Authentication
Logic
Push
Scheduler
Structured Storage
• Powered by SQL Database
• Supports rich querying capabilities
• Dynamic Schematization
• Data management in:
• Azure Portal
• SQL Portal (Silverlight)
• SQL Management Studio
• REST API
• Azure CLI Tools
• SQL CLI
3Microsoft Azure
The REST API
4
Action HTTP Method URL Suffix
Create POST /TodoItem
Read GET /TodoItem?filter=id%3D42
Update PATCH /TodoItem/id
Delete DELETE /TodoItem/id
Microsoft Azure
Base Endpoint: https://MobileService.azure-
mobile.net/tables/*
Server Side Table Scripts
5
Node.js scripts
Intercept CRUD
requests to tables
Passes through to SQL
by default
Fully customizable
.NET Web API
backend in
Visual Studio
MongoDB, Table
Storage, SQL out of the
box
.NET Backend
• Web API based w/ additional functionality, developed in and deployed
from Visual Studio
• TableController data context can map to SQL, Table Storage, Mongo, etc
• Pull in NuGet modules and other .NET libraries
• Set permissions with attributes on classes
• Local Debug
6Microsoft Azure
Custom API
• Non-table based endpoints
• Accessible from
• GET
• POST
• PUT
• PATCH
• DELETE
• For node.js logic in scripts like table endpoints
• For .NET delivered through a WebAPI
• Expose any functionality you want
7Microsoft Azure
File Storage
• Don’t store files in Mobile Services DB
• Use Mobile Service to provide a Valet Key Pattern to Blob Storage,
aka BLOB SAS
• Create table / custom API script to talk to Blob Storage
• Script generates Shared Access Signature (SAS) URL
• Script returns SAS URL to client app
• Client app uploads data to blob storage directly
• Store file URL in Mobile Service DB as needed
• Blob storage costs less and is built for redundant file storage
• Resource Broker extension for .NET and Node backends
8Microsoft Azure
Notification Hubs
• Separate from Mobile Services
• Can be used regardless of whether you’re storing data in Azure
• Extremely scalable push notifications
• Cross platform support
• Push to iOS, Android, Kindle, Windows Phone, Windows Store
• Tags (i.e. tie my registration to this topic or user ID)
• Templates (i.e. when I get a push, send it in this format)
• Server SDKs for .NET, Java, and Node (also open as REST API)
9Microsoft Azure
Data Authorization
Per HTTP method auth options:
• App Key Required
• Not ideal for production use
• Everyone
• Authenticated Users
• Admins and other scripts
• Requires Master Key as header
401 Unauthorized response if security check fails
10Microsoft Azure
Offline support
TableController
(with optimistic
concurrency)
Mobile ServiceDevice
SQL Database
BYOD
MongoDB
Table Storage
SQLite
Explicit Push/Pull
Conflict resolution
Offline Sync: Potential Uses
• Improve app responsiveness by caching server data
locally on the device
• Make apps resilient against intermittent network
connectivity
• Allow end-users to create and modify data even when
there is no network access, supporting scenarios with
little or no connectivity
• Sync data across multiple devices and detect conflicts
when the same record is modified by two devices
12
Scheduled Jobs
• Executes a script on defined schedule
• Can be run on demand
• Ideal for any backend data processing job
• Length / frequency based of Mobile Service tier
13Microsoft Azure
Diagnostics, Logging, Scale
14
API Calls, # of Devices,
Data Out
Console Logging (auto
error logging)
Scale Service Based off API
Calls
Auto-scale to Save Money
Free Tier for Mobile Free Tier for SQL
Azure Mobile Services
15
Storage
Authentication
Logic
Push
Scheduler
Demo: Mobile Services .NET
Backend
Creating a Leaderboard App
Resources
• Get a FREE Microsoft Azure Trial Account:
• http://azure.microsoft.com
• Videos, Tutorials, and More
• http://azure.microsoft.com/mobile
• SDK Source Code on GitHub
• https://github.com/Azure/azure-mobile-services
• Contact Details
• <Contact Info>
17Microsoft Azure
Get started
Visit azure.microsoft.com
Cloud Powered Mobile Apps with Azure

More Related Content

PPTX
Антон Бойко (Microsoft Azure MVP, Ukrainian Azure Community Founder) «Azure M...
PPTX
Windows Azure - Mobile Services
PPTX
Building a document e-signing workflow with Azure Durable Functions
PPTX
Protecting your online and on premises assets “Cloud Style”
PPTX
The Azure API-ness Factory
PPTX
Zero credential development with managed identities
PPTX
Best ofmms scsm - iaas
PPTX
Cloud Powered Mobile Apps with Azure
Антон Бойко (Microsoft Azure MVP, Ukrainian Azure Community Founder) «Azure M...
Windows Azure - Mobile Services
Building a document e-signing workflow with Azure Durable Functions
Protecting your online and on premises assets “Cloud Style”
The Azure API-ness Factory
Zero credential development with managed identities
Best ofmms scsm - iaas
Cloud Powered Mobile Apps with Azure

What's hot (18)

PPTX
Windows Azure Active Directory
PPTX
Windows Azure Active Directory
PDF
Programming with Azure Active Directory
PDF
Azure Active Directory
PPTX
Azure Active Directory - An Introduction
ODP
Authentication & Authorization in ASPdotNet MVC
PPTX
Azure Active Directory
PPTX
Zero Credential Development with Managed Identities
PPTX
Web App Security
PPTX
Zero Credential Development with Managed Identities for Azure resources
PDF
O365Con18 - Azure Active Directory - Sasha Kranjac & Mustafa Toroman
PPTX
Building Android, iOS and Windows 8 Apps with Windows Azure Mobile Services
PPTX
Windows azure active directory
PPTX
Azure active directory
PPTX
Authentication and Authorization in Asp.Net
PPTX
Windows azure
PPTX
Identity in ASP.NET Core
PPTX
Microsoft Azure Identity and O365
Windows Azure Active Directory
Windows Azure Active Directory
Programming with Azure Active Directory
Azure Active Directory
Azure Active Directory - An Introduction
Authentication & Authorization in ASPdotNet MVC
Azure Active Directory
Zero Credential Development with Managed Identities
Web App Security
Zero Credential Development with Managed Identities for Azure resources
O365Con18 - Azure Active Directory - Sasha Kranjac & Mustafa Toroman
Building Android, iOS and Windows 8 Apps with Windows Azure Mobile Services
Windows azure active directory
Azure active directory
Authentication and Authorization in Asp.Net
Windows azure
Identity in ASP.NET Core
Microsoft Azure Identity and O365
Ad

Viewers also liked (10)

PDF
Reglamento estudiantil disposiciones especiales
PDF
Αναφορά Ν. Μηταράκη σχετικά με τις ελλείψεις στα αγροτικά ιατρεία της Αμανής
DOCX
Matriz planificador 1 (1)
PPT
Paul Jungbluth
PPT
Michael Dhoore
PPT
Michel Vandenbroeck
PDF
PPT
Machteld Verhelst
PDF
Dmytro Gorshkov - Bezpeka informaciynogo prostoru ta protydiya manipulyaciyam
PDF
JOISP2013 Day3 Cake
Reglamento estudiantil disposiciones especiales
Αναφορά Ν. Μηταράκη σχετικά με τις ελλείψεις στα αγροτικά ιατρεία της Αμανής
Matriz planificador 1 (1)
Paul Jungbluth
Michael Dhoore
Michel Vandenbroeck
Machteld Verhelst
Dmytro Gorshkov - Bezpeka informaciynogo prostoru ta protydiya manipulyaciyam
JOISP2013 Day3 Cake
Ad

Similar to Cloud Powered Mobile Apps with Azure (20)

PPTX
Cloud Powered Mobile Apps with Azure
PPTX
Cnam cours azure zecloud mobile services
PPTX
Mobile Services for Windows Azure
PPTX
2015.04.23 Azure Mobile Services
PPTX
Get started azure- Azure Mobile Services
PPTX
Windows Azure Mobile Services - The Perfect Partner
PPTX
Azure Mobile Services
PPTX
Azure Mobile Services Workshop
PPTX
Azure Mobile Services
PPTX
Azure Mobile Service - Techdays 2014
PPTX
Windows azure mobile services from start to rest
PPTX
Building a chat app with windows azure mobile services
PDF
Windows azure mobile services
PPTX
Putting the Cloud in Your Pocket with Azure Mobile Services (.NET)
PPTX
Cross platform mobile backend with mobile services
PPTX
Building a chat app with windows azure mobile
PPTX
Building mobile back ends with windows azure mobile services
PPTX
Windows Azure mobile services - Kolkata - 28 June 2015
PDF
Uwams cloud enable-windows_store_apps_java_script
PDF
Using Windows Azure Mobile Services to Cloud-Enable
Cloud Powered Mobile Apps with Azure
Cnam cours azure zecloud mobile services
Mobile Services for Windows Azure
2015.04.23 Azure Mobile Services
Get started azure- Azure Mobile Services
Windows Azure Mobile Services - The Perfect Partner
Azure Mobile Services
Azure Mobile Services Workshop
Azure Mobile Services
Azure Mobile Service - Techdays 2014
Windows azure mobile services from start to rest
Building a chat app with windows azure mobile services
Windows azure mobile services
Putting the Cloud in Your Pocket with Azure Mobile Services (.NET)
Cross platform mobile backend with mobile services
Building a chat app with windows azure mobile
Building mobile back ends with windows azure mobile services
Windows Azure mobile services - Kolkata - 28 June 2015
Uwams cloud enable-windows_store_apps_java_script
Using Windows Azure Mobile Services to Cloud-Enable

More from GameLandVN (20)

PDF
Mobile Game Asia 2015 Ho Chi Minh City: Mobile games for Asian women
PDF
Mobile Game Asia 2015 Ho Chi Minh City: Vietnam online mobile game market ins...
PDF
Mobile Game Asia 2015 Ho Chi Minh City: Mobile game market in India
PDF
Mobile Game Asia 2015 Ho Chi Minh City: Building a sustainable eSports ecosys...
PDF
Mobile Game Asia 2015 Ho Chi Minh City: An overview of the mobile game market...
PDF
Mobile Game Asia 2015 Ho Chi Minh City: Monetization strategies in Southeast ...
PDF
Mobile Game Asia 2015 Ho Chi Minh City: Rewarded video ads
PDF
Mobile Game Asia 2015 Ho Chi Minh City: The role of a game publisher in Vietnam
PDF
Mobile Game Asia 2015 Ho Chi Minh City: Predictive monetization
PDF
Mobile Game Asia 2015 Ho Chi Minh City: The roadmap of IP creation
PPTX
Windows app & Microsoft's support
PPTX
Kinh nghiệm phát triển Captain Strike
PPTX
Microsoft BizSpark
PDF
Microsoft Azure Introduction
PPTX
OGDC 2014: Animation workflow with Spine in Tiny Busters
PDF
OGDC 2014: Vietnam Smartphone game market 2013 overview
PDF
OGDC 2014: Speed up and make quality for your 3d models
PDF
OGDC 2014: Sky Garden Mobile conceptualization: From PC to Mobile
PDF
OGDC 2014: One-Man Studio: How to make a game prototype
PDF
OGDC 2014: Program farmery by cocos2dx
Mobile Game Asia 2015 Ho Chi Minh City: Mobile games for Asian women
Mobile Game Asia 2015 Ho Chi Minh City: Vietnam online mobile game market ins...
Mobile Game Asia 2015 Ho Chi Minh City: Mobile game market in India
Mobile Game Asia 2015 Ho Chi Minh City: Building a sustainable eSports ecosys...
Mobile Game Asia 2015 Ho Chi Minh City: An overview of the mobile game market...
Mobile Game Asia 2015 Ho Chi Minh City: Monetization strategies in Southeast ...
Mobile Game Asia 2015 Ho Chi Minh City: Rewarded video ads
Mobile Game Asia 2015 Ho Chi Minh City: The role of a game publisher in Vietnam
Mobile Game Asia 2015 Ho Chi Minh City: Predictive monetization
Mobile Game Asia 2015 Ho Chi Minh City: The roadmap of IP creation
Windows app & Microsoft's support
Kinh nghiệm phát triển Captain Strike
Microsoft BizSpark
Microsoft Azure Introduction
OGDC 2014: Animation workflow with Spine in Tiny Busters
OGDC 2014: Vietnam Smartphone game market 2013 overview
OGDC 2014: Speed up and make quality for your 3d models
OGDC 2014: Sky Garden Mobile conceptualization: From PC to Mobile
OGDC 2014: One-Man Studio: How to make a game prototype
OGDC 2014: Program farmery by cocos2dx

Recently uploaded (20)

PPTX
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
PDF
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
PPTX
international classification of diseases ICD-10 review PPT.pptx
PPTX
Module 1 - Cyber Law and Ethics 101.pptx
PPTX
introduction about ICD -10 & ICD-11 ppt.pptx
PDF
Cloud-Scale Log Monitoring _ Datadog.pdf
PPTX
SAP Ariba Sourcing PPT for learning material
PDF
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
PPTX
innovation process that make everything different.pptx
PDF
Testing WebRTC applications at scale.pdf
PDF
The Internet -By the Numbers, Sri Lanka Edition
PPTX
PptxGenJS_Demo_Chart_20250317130215833.pptx
PDF
RPKI Status Update, presented by Makito Lay at IDNOG 10
PDF
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
PDF
An introduction to the IFRS (ISSB) Stndards.pdf
PPTX
522797556-Unit-2-Temperature-measurement-1-1.pptx
PPTX
Introuction about WHO-FIC in ICD-10.pptx
PPTX
Introduction to Information and Communication Technology
PDF
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
DOCX
Unit-3 cyber security network security of internet system
CHE NAA, , b,mn,mblblblbljb jb jlb ,j , ,C PPT.pptx
Best Practices for Testing and Debugging Shopify Third-Party API Integrations...
international classification of diseases ICD-10 review PPT.pptx
Module 1 - Cyber Law and Ethics 101.pptx
introduction about ICD -10 & ICD-11 ppt.pptx
Cloud-Scale Log Monitoring _ Datadog.pdf
SAP Ariba Sourcing PPT for learning material
Automated vs Manual WooCommerce to Shopify Migration_ Pros & Cons.pdf
innovation process that make everything different.pptx
Testing WebRTC applications at scale.pdf
The Internet -By the Numbers, Sri Lanka Edition
PptxGenJS_Demo_Chart_20250317130215833.pptx
RPKI Status Update, presented by Makito Lay at IDNOG 10
APNIC Update, presented at PHNOG 2025 by Shane Hermoso
An introduction to the IFRS (ISSB) Stndards.pdf
522797556-Unit-2-Temperature-measurement-1-1.pptx
Introuction about WHO-FIC in ICD-10.pptx
Introduction to Information and Communication Technology
Vigrab.top – Online Tool for Downloading and Converting Social Media Videos a...
Unit-3 cyber security network security of internet system

Cloud Powered Mobile Apps with Azure

  • 1. Cloud Powered Mobile Apps with Azure Toan Huynh Microsoft Azure
  • 2. What is Mobile Services? 2 Storage Authentication Logic Push Scheduler
  • 3. Structured Storage • Powered by SQL Database • Supports rich querying capabilities • Dynamic Schematization • Data management in: • Azure Portal • SQL Portal (Silverlight) • SQL Management Studio • REST API • Azure CLI Tools • SQL CLI 3Microsoft Azure
  • 4. The REST API 4 Action HTTP Method URL Suffix Create POST /TodoItem Read GET /TodoItem?filter=id%3D42 Update PATCH /TodoItem/id Delete DELETE /TodoItem/id Microsoft Azure Base Endpoint: https://MobileService.azure- mobile.net/tables/*
  • 5. Server Side Table Scripts 5 Node.js scripts Intercept CRUD requests to tables Passes through to SQL by default Fully customizable .NET Web API backend in Visual Studio MongoDB, Table Storage, SQL out of the box
  • 6. .NET Backend • Web API based w/ additional functionality, developed in and deployed from Visual Studio • TableController data context can map to SQL, Table Storage, Mongo, etc • Pull in NuGet modules and other .NET libraries • Set permissions with attributes on classes • Local Debug 6Microsoft Azure
  • 7. Custom API • Non-table based endpoints • Accessible from • GET • POST • PUT • PATCH • DELETE • For node.js logic in scripts like table endpoints • For .NET delivered through a WebAPI • Expose any functionality you want 7Microsoft Azure
  • 8. File Storage • Don’t store files in Mobile Services DB • Use Mobile Service to provide a Valet Key Pattern to Blob Storage, aka BLOB SAS • Create table / custom API script to talk to Blob Storage • Script generates Shared Access Signature (SAS) URL • Script returns SAS URL to client app • Client app uploads data to blob storage directly • Store file URL in Mobile Service DB as needed • Blob storage costs less and is built for redundant file storage • Resource Broker extension for .NET and Node backends 8Microsoft Azure
  • 9. Notification Hubs • Separate from Mobile Services • Can be used regardless of whether you’re storing data in Azure • Extremely scalable push notifications • Cross platform support • Push to iOS, Android, Kindle, Windows Phone, Windows Store • Tags (i.e. tie my registration to this topic or user ID) • Templates (i.e. when I get a push, send it in this format) • Server SDKs for .NET, Java, and Node (also open as REST API) 9Microsoft Azure
  • 10. Data Authorization Per HTTP method auth options: • App Key Required • Not ideal for production use • Everyone • Authenticated Users • Admins and other scripts • Requires Master Key as header 401 Unauthorized response if security check fails 10Microsoft Azure
  • 11. Offline support TableController (with optimistic concurrency) Mobile ServiceDevice SQL Database BYOD MongoDB Table Storage SQLite Explicit Push/Pull Conflict resolution
  • 12. Offline Sync: Potential Uses • Improve app responsiveness by caching server data locally on the device • Make apps resilient against intermittent network connectivity • Allow end-users to create and modify data even when there is no network access, supporting scenarios with little or no connectivity • Sync data across multiple devices and detect conflicts when the same record is modified by two devices 12
  • 13. Scheduled Jobs • Executes a script on defined schedule • Can be run on demand • Ideal for any backend data processing job • Length / frequency based of Mobile Service tier 13Microsoft Azure
  • 14. Diagnostics, Logging, Scale 14 API Calls, # of Devices, Data Out Console Logging (auto error logging) Scale Service Based off API Calls Auto-scale to Save Money Free Tier for Mobile Free Tier for SQL
  • 16. Demo: Mobile Services .NET Backend Creating a Leaderboard App
  • 17. Resources • Get a FREE Microsoft Azure Trial Account: • http://azure.microsoft.com • Videos, Tutorials, and More • http://azure.microsoft.com/mobile • SDK Source Code on GitHub • https://github.com/Azure/azure-mobile-services • Contact Details • <Contact Info> 17Microsoft Azure

Editor's Notes

  • #3: Speaking Notes Azure Mobile Services is a Backend-as-a-Service Instead of you having to design, build, test, deploy, manage, and upgrade your whole backend, we do it for you Features of Mobile Services Storage – SQL DB Authentication – built in support for social providers w/ ability to custom auth Backend logic – data validation, logical flows, etc Push Notifications – across all major mobile platforms Scheduler – backend job processing
  • #4: Speaking points Mobile Service easily connects to SQL Database SQL offers rich querying and indexing capabilities Dynamic Schematization means you don’t have to be a DBA and manage schema Data can be managed in: Azure Portal (read and delete data) SQL Portal (Silverlight) SQL Management Studio (windows) REST API (used by SDKs) Azure CLI tools SQL CLI (Node module)
  • #5: Speaking points This is the mapping for the REST API exposed by table storage Standard REST Anything that can talk REST can connect to your Mobile Service
  • #6: Speaking points Node backend generates Node scripts for each table action Scripts intercept CRUD requests Pass to SQL by default Custom logic added here Edit in portal (NODE) .NET Backend creates Visual Studio project
  • #7: Speaking points .NET backend is currently in preview Bases off of Web API Develop and deploy in VS (also create new Mobile Services with VS project template) Debug locally Can pull in NuGet and other .NET libs TableController is base for accessing data, can be overridden to talk to Table Storage, Mongo, etc Permissions handled as attributes on classes
  • #8: Speaking points All scripts so far tied to a table action Custom APIs are non-table based endpoints Script functionality for normal HTTP methods
  • #9: File storage SQL DB for Mobile Services not ideal for file data storage Best practice is to use Mobile Service as Proxy Mobile Service script generates SAS URL Client uploads file to SAS URL Valet Key Pattern http://msdn.microsoft.com/en-us/library/dn568102.aspx
  • #10: Speaking points Notification Hubs are a separate service from Mobile Services but also used by Mobile Services Pushes to iOS, Android, Kindle, Windows Phone, Windows Store Extremely scalable (millions of pushes in minutes) Tags and templates Server SDKs: .NET, Java (beta), Node, REST API
  • #11: Speaking points Data auth – locking data down Default is App Key Required, great for pre-release time period Not production ready due to key’s accessibility in public apps Authenticated users – requests must contain user ID and matching auth token Admins and other scripts – only external requests with Master Key make it through Otherwise 401 is returned
  • #14: Speaking points Schedule jobs (scripts) can be run by the scheduler Ideal for any backend job processing (regular push notification, remove old data, etc) Length and how often you can run job based off tier of your mobile service
  • #15: Speaking points Some default stats like # of api calls, # of devices connecting, amount of data out Api calls are important because that’s how mobile services’ scale is baed All console statements and errors go to logging area Auto-scaling helps save money Free tier for Mobile Services and SQL while developing
  • #16: Speaking Notes Summarize earlier slide Azure Mobile Services is a Backend-as-a-Service Instead of you having to design, build, test, deploy, manage, and upgrade your whole backend, we do it for you Features of Mobile Services Storage – SQL DB Authentication – built in support for social providers w/ ability to custom auth Backend logic – data validation, logical flows, etc Push Notifications – across all major mobile platforms Scheduler – backend job processing
  • #17: Demo: Getting Started Go to the portal Create a new mobile service (Node backend works with most of deck) Walk through Getting started screen Choose platform Download quick start Run quick start Save and update data Show data in portal (Node) Walk through client code that deals with Mobile Service
  • #18: Speaking points Sign up for a free Azure trial Mobile Services are free to develop with (to a point) on non-trial subscription Additional videos, tutorials, samples available SDK source code (for Mobile Services and Notification Hubs) available in GitHub