Windows Azure Websites
|Windows Azure Account - Preview Features|
Once you have received the e-mail message that your account has been activated, you can navigate to the brand new Windows Azure Portal and create a new website. Since I will be deploying my 'DeliveryTracker' Single Page Application, I will also need to create a database.
|New - Web Site - Create With Database|
Follow the wizard that appears. If you don't have a SQL Database in Azure already allow the wizard to create one for you.
SQL Databases in Windows Azure
|Deploy Database to SQL Azure|
In any case you need to make sure that the firewall of the SQL Azure server accepts the ip address of your local machine to connect. This you can also manage from the SQL Azure portal
- Download the DeliveryTracker application, unzip it and open it with Visual Studio 2010.
- Open the web.config file and rename the 'DefaultConnection' to 'AppDbContext' which is the name of the actual Entity Framework Code First DbContext that is used.
- Right-click the DeliveryTracker project and choose 'Publish...'. A wizard opens.
- In the first screen ('Profile') of the wizard you can import a publishing profile. This publishing profile is available for download in the management console for your new website in the Azure portal
- In the third screen ('Settings') of the wizard, make sure that the connection string is called 'AppDbContext' and is pointing to the correct database that was created above in SQL Azure.
- Click Publish