Transcript Slide 1

Windows Azure
Conference 2014
Windows Azure Conference 2014
Windows Azure Mobile
Services from ground up
Agenda
•
•
•
•
•
•
Building Apps
Building Apps with mobile Service
Data Storage
Push Notifications
Security and authentication
Questions
Windows Azure Conference 2014
What are we Building Apps for?
Windows Azure Mobile Services
Windows Azure Conference 2014
Getting started with HTML / JS
Windows Azure Conference 2014
Structured Storage
• Powered by SQL Database
• Same DB – Multiple Mobile Services
• Data management in:
–
–
–
–
–
Windows Azure Portal
SQL Portal
SQL Management Studio
REST API
CLI Tools
Windows Azure Conference 2014
The REST API
Base REST API Endpoint URL
http://Mobileservice.azure-mobile.net/tables/*
Data Operations and their REST Equivalents
Action
HTTP Verb
URL Suffix
Create
POST
/TodoItem
Retrieve
GET
/TodoItem?$filter=id%3D42
Update
PATCH
/TodoItem/id
Delete
DELETE
/TodoItem/id
Windows Azure Conference 2014
JSON to SQL Type Mappings
JSON Value
Numeric values (integer,
decimal, floating point)
Boolean
DateTime
String
Windows Azure Conference 2014
T-SQL Type
Float
Bit
DateTimeOffset(3)
Nvarchar(max)
Server Side Scripts
Customizing data flow on the server
Windows Azure Conference 2014
Node Modules
Extensibility through numerous modules
Windows Azure Conference 2014
Adding Server Logic
Windows Azure Conference 2014
Push Notifications
Windows Azure Conference 2014
Pushing with Native
Windows Azure Conference 2014
User Authentication
Windows Azure Conference 2014
Data Authorization
• Table level permissions for each operation
–
–
–
–
Everyone
Anyone with the Application Key
Only Authenticated Users
Only Scripts and Admins
• User options in scripts
– user.level (admin, authenticated, anonymous)
– user.userId (provider:id or undefined)
Windows Azure Conference 2014
Adding Authentication with
Xamarin
Windows Azure Conference 2014
Command Line Tools
Scriptable control from PowerShell / Bash
Windows Azure Conference 2014
Using the CLI
Windows Azure Conference 2014
Scheduler
• Execute scripts on a Schedule
• Execute scripts on demand
• Frequency and length of execution based
off of service level
Windows Azure Conference 2014
Custom API
• Non-table based scripts
• Accessible from:
–
–
–
–
–
Get
Post
Put
Patch
Delete
• Same permissions as Tables
Windows Azure Conference 2014
Script Source Control
• Handled through Git repo
• Access to table, scheduler, custom API, shared scripts, and
permissions
Shared Scripts
• Make scripts accessible from other scripts
• Like creating Node Modules
NPM
• Ability to use ‘npm install module’ to download NPM modules
• Currently accessible from Custom API only
Windows Azure Conference 2014
Scheduler, Custom API, Script
Source
Windows Azure Conference 2014
Diagnostics, Logging, Scale
Windows Azure Conference 2014
Service Scale
Free
• 500K API calls per subscription per month
Standard
• 1.5M API calls per unit per month
Premium
• 15M API calls per unit per month
Windows Azure Conference 2014
Diagnostics, Logging, and Scale
Windows Azure Conference 2014
Preview Pricing
Small instance is the only size
available; multiple may be
purchased
Small instance is the only size
available; multiple may be
purchased
First 10 Mobile Services are free,
with no plans to start charging
Charge for Preview will be at the
same reduced rate as Web Sites
Up to 100 Mobile Services
Windows Azure Conference 2014
Preview
No availability SLA
Mobile Services GA Pricing
Price
API Calls
Scale
Scheduled Jobs
SQL Database
(required)
Free
Standard
Premium
Free
Up to 10 services,
Up to 100 Active Devices**
$25 USD/mo
(per unit**)
$199 USD/mo
(per unit**)
500K
(per subscription)
1.5M
(per unit)
15M
(per unit)
N/A
Up to 6
Standard units
Up to 10
Enterprise units
Limited
Included
Included
20MB Included,
Standard rates apply
for more capacity
20MB Included,
Standard rates apply
for more capacity
20MB Included,
Standard rates apply
for more capacity
Windows Azure Conference 2014
General Availability
99.9%
Windows Azure Conference 2014
Windows Azure Conference 2014