The Preview Release of Windows Azure Mobile Services now available allow you to connect your Windows 8 apps to a cloud backend hosted in Windows Azure and easily store structured data, authenticate users, and send push notifications within minutes.
Microsoft says, that Mobile Services which is currently "only available for Windows 8 apps," with subsequent preview releases will extend to iOS, Android, and Windows Phone.
During preview, Mobile Services are free for first ten Windows 8 applications running on shared instances.
In short you can use Windows Azure Mobile Services to:
- "Create turnkey backend solutions to power your mobile apps.
- Accelerate your mobile app development. Incorporate structured storage, user authentication and push notifications in minutes.
- Create a straightforward and secure backend-as-a-service to handle common tasks and free yourself to focus on the front end that your users value."
To start using Mobile Services, if you have not done so already, "you will need to sign up for the Windows Azure free trial." And, those who already have a Windows Azure account, will need to request to enroll in this preview feature.
"Once you have the mobile services preview enabled, log into the Windows Azure Portal, click the "New" button and choose the new "Mobile Services" icon to create your first mobile backend. Once created, you'll see a quick-start page like below with instructions on how to connect your mobile service to an existing Windows 8 client app you have already started working on, or how to create and connect a brand-new Windows 8 client app with it," Scott Guthrie explained.
Read this getting started tutorial to walkthrough how you can build (in less than 5 minutes) a simple Windows 8 "Todo List" app that stores data in Windows Azure. Or watch the video below showing how to do it step by step:
In other Azure news, August 2012 Preview update of the Windows Azure Plugin for Eclipse with Java includes enhancements such as:
- Inside the Windows Azure Access Control Service Filter:
- Option toembed the signing certificate into your application's WAR file to simplify cloud deployment
- Option tocreate a new self-signed certificate right from the ACS filter wizard UI
- Inside the Windows Azure Deployment Project wizard (and the role's Server Configuration property page):
- Automatic discovery of the JDK location on your computer (which you can override if necessary)
- Automatic detection of the server type whose installation directory you select, informed Microsoft Open Technologies team.
Update 08/30: Added steps to create and mange mobile service -- per Windows 8 blog step-by-step guide:
Create a new Mobile Service
- After you've signed up, go to http://manage.windows.azure.com log in using your Microsoft account. Create a new Mobile Service by clicking on the +NEW button at the bottom of the navigation pane.
- Select Mobile Service and click Create.
- In the New Mobile Service wizard, type a name of your app. This forms part of the URL for your new service.
- When you create a Windows Azure Mobile Service, we automatically associate it with a SQL database inside Windows Azure. The Windows Azure Mobile Service backend then provides built-in support for enabling remote apps to securely store and retrieve data from it, without you having to write or deploy any custom server code. Type the name of the new database, and enter a Login name and password for your new SQL Server. Remember these credentials if you want to reuse this database server for other Mobile Services. If you signed up for a 90 days free trial, you are entitled for one 1GB database for free.
Create a new Windows Store app
- Click the name of your newly created mobile service. You now have two choices: to create a new app, or to connect an existing app to your Mobile Service. Let's pick the first option and create a simple todo list that stores todo items in your SQL database. Follow the steps on the screen.
- Install the Visual Studio 2012 and Mobile Services SDK, if you haven't already done so.
- To store todo items, you need to create a table. You don't need to predefine the schema for your table; Mobile Services will automatically add columns as needed to store your data.
- Browse to the location where you saved the compressed project files, expand the files on your computer, and open the solution in Visual Studio 2012 Express for Windows 8.
- Press F5 to launch the app. In the app, type a todo item in the textbox on the left and click Save. This sends an HTTP request to the new Mobile Service hosted in Windows Azure. This data is then safely stored in your TodoItem table. You receive an acknowledgement from the Mobile Service and your data is displayed in the list on the right.