This topic shows you how to get started with Mobile Services as quickly as possible. It is designed for customers new to this Azure feature. If you are already familiar with Mobile Services or are looking for more in-depth information, please select a topic from the left-navigation or see the relevant links in Next steps.
This tutorial shows you how to add a cloud-based backend service to an iOS app using Azure Mobile Services.
To complete this tutorial, you need an Azure account. If you don't have an account, you can sign up for an Azure trial and get free mobile services that you can keep using even after your trial ends. For details, see Azure Free Trial.
Follow these steps to create a new mobile service.
Log into the Management Portal. At the bottom of the navigation pane, click +NEW. Expand Compute and Mobile Service, then click Create.
This displays the Create a Mobile Service dialog.
This displays the Specify database settings page.
As part of this tutorial, you create a new SQL Database instance and server. You can reuse this new database and administer it as you would any other SQL Database instance. If you already have a database in the same region as the new mobile service, you can instead choose Use existing Database and then select that database. The use of a database in a different region is not recommended because of additional bandwidth costs and higher latencies.
In Name, type the name of the new database, then type Login name, which is the administrator login name for the new SQL Database server, type and confirm the password, and click the check button to complete the process.
You have now created a new mobile service that can be used by your mobile apps.
You can follow an easy Quick Start in the Management Portal to create a new app connected to your mobile service:
In the Management Portal, click Mobile Services, and then click the mobile service that you just created.
In the Quick Start tab, click iOS under Choose a platform and expand Create a new iOS app. This displays the steps to create an iOS app connected to your mobile service.
Click Create TodoItem table to create a table to store app data.
Under Download and run your app, click Download. This downloads the project for the sample To do list application that is connected to your mobile service, along with the Mobile Services iOS SDK. Save the compressed project file to your local computer, and make a note of where you saved it.
The final stage of this tutorial is to build and run your new app.
Browse to the location where you saved the compressed project files, expand the files on your computer, and open the project file using Xcode.
Press the Run button to build the project and start the app in the iPhone emulator.
In the app, type meaningful text, such as Complete the tutorial and then click the plus (+) icon.
This sends a POST request to the new mobile service hosted in Azure. Data from the request is inserted into the TodoItem table. Items stored in the table are returned by the mobile service, and the data is displayed in the list.
Back in the Management Portal, click the DATA tab and then click the TodoItem table. This lets you browse the data inserted by the app into the table.
Learn how to perform additional important tasks in Mobile Services:
Get started with offline data sync
Learn how to use offline data sync to make your app responsive and robust.
Add authentication to an existing app
Learn how to authenticate users of your app with an identity provider.
Add push notifications to an existing app
Learn how to send a very basic push notification to your app.