This Toolkit is now deprecated and is now
The Windows Azure Toolkit for Windows Phone provided developers with the first iteration of support for building backend services for Windows Phone apps using Windows Azure. The main areas of feedback we received from mobile developers was that they
wanted a turn-key set of services for common functionality such as notifications, auth, and data.
Windows Azure Mobile Services directly reflects this feedback by enabling developers to simply provision, configure, and consume scalable backend services. The downloads for this toolkit will be removed on the week of Feb 1st 2013 and all future improvements
will be channeled into Windows Azure Mobile Services rather than this toolkit.
To get started with Mobile Services,
sign up for a Windows Azure account and receive 10 free Mobile Services.

This section describes how to create a new Windows Phone 7 Cloud Application using the project template included in this toolkit. To watch a screencast on how to get started with the toolkit, please visit
Getting Started with the Windows Azure Toolkit for Windows Phone 7 on Channel 9.
Creating a New Windows Phone 7 Cloud Application
- Open Visual Studio 2010 as administrator (this is required to run Windows Azure projects).
- In the File menu point to New and then click
Project.
- In the Installed Templates list on the left of the New Project dialog, select
Cloud under the Visual C# node, select the
Windows Phone Cloud Application template, enter the Name and
Location of the solution, and then click OK.
- In the
New Windows Phone Cloud Application Project dialog, select which storage options you wish to use. You must select at least one of the
Windows Azure Storage or SQL Azure Database options.
Note: Windows Azure Storage is the project template’s default choice to store the Membership providers’ information and other infrastructure data. In case
SQL Azure Database is the only storage choice selected, this information will instead be stored on a SQL Azure database.
- Click Next to move to the next step of the wizard.
- If the Windows Azure Storage option was selected, you need to provide your Windows Azure Storage account information (name and key). If you instead want to use the Storage Emulator, then check the
Use Storage Emulator option.
- Click Next to move to the next step of the wizard.
- If the SQL Azure Database option was selected, you need to provide your SQL Azure database Server information (server name, user and password).
In case you want to use a local SQL Server instance instead of a SQL Azure Database, check
Use local SQL Server instance, and select which instance of SQL Server you wish to use from the list.
- Click Next to move to the next step of the wizard.
- For the Push Notification Services options, select whether you want to include the Push Notifications Service support for Windows Phone and/or iOS devices (by default, only the Microsoft Push Notification Service support option is checked).
If the Apple Push Notification Service (APNS) support option is checked, a dialog window appears showing a list of the certificates installed in your local machine. Select the
certificate to use as the APNS certificate identity and click OK.
Note: To create and install the Apple Push Notification certificate
for a specific iOS application, you first need to register within the
iOS Developer Program and get an SSL certificate from the
iPhone Provisioning Portal. For more information, you can check the
Provisioning and Development article in the
iOS Developer Library.


Note: The Android Push Notification Service is not currently supported.
It will become available in future releases of the toolkit.
- Click
Next to move to the next step of the wizard.
- Select
the authentication mechanism the application will support. You can choose either
ASP.NET membership (default) or Windows Azure Access Control Service.

Note: For additional help on how to choose the authentication mechanism most suitable for your application, check
Choosing the Access Control Strategy.
If the Windows Azure Access Control Service (ACS) option is selected, you need to provide the Namespace and Management key of your ACS service. For instructions on how to obtain
your own Windows Azure Access Control Service namespace and management key, see
Obtain Namespace and Management Key.

Note: If ACS authentication is selected, the template will perform the following configuration steps in your ACS namespace:
- Add the following identity providers: Windows Live ID,
Google and Yahoo.
- Add the new application as a Relying Party Application.
- Define a default set of claim transformation rules (needed for the application)
- Click
OK and wait until Visual Studio finishes creating the projects.
- Explore the solution generated. You should see the following projects:
- WPCloudApp1: Windows Azure project with a Web Role configured.
- WPCloudApp1.Phone: Silverlight for Windows Phone project containing a sample application that shows how to receive push notifications and consume Windows Azure Tables, Blobs and Queues.
- WPCloudApp1.Web: ASP.NET MVC 3 project configured as a Web Role containing the toolkit services and the administration pages.
Note: The project names might be different depending on the name you typed in the New Project dialog.

- Additionally, the project template also creates a Libs folder containing the following assemblies:
- AspProviders.dll: ASP.NET Providers for Windows Azure Tables (Membership, Roles, Profile and Session State Store).
- Microsoft.Samples.Data.Services.Client.dll: Modified version of the OData client library for Windows Phone (System.Data.Services.Client) to make it work with the Windows Azure Table Service API (http://odata.codeplex.com).
- MIcrosoft.Samples.DPE.OAuth.dll (ACS only):
Microsoft DPE OAuth2 library.
- SL.Phone.Federation.dll (ACS only): Microsoft Silverlight ACS sign in control.
- WindowsPhone.Recipes.Push.Messages.dll (Microsoft Push only): Push Notification Server Side Helper Library (http://create.msdn.com/education/catalog/article/pnhelp-wp7).
- WindowsPhoneCloud.StorageClient.dll: Windows Azure Storage Client library for Windows Phone.
Note: The number of assemblies might be different depending on the settings configured in the wizard.
Next step:
Running and Going Through the Windows Phone Cloud Application