Windows azure web role on local IIS

azure, azure-web-roles, iis

Solution

There are two ways to achieve that, with varying levels of fidelity to the target environment.

The simplest is just to run your website project locally. You can attach it as a virtual directory on IIS and run it from the browser or debug it from Visual Studio. This will run as a regular IIS web application, but it won't be running as a web role.

The second is to package your application as a cloud service and run it under the Windows Azure Compute Emulator installed on your development machine. There are several tutorials on how to do that, including:

- Developing and Deploying Windows Azure Cloud Services Using Visual Studio - see "Debugging a Windows Azure Application Locally".

- Run a Windows Azure Application in the Compute Emulator

- Windows Azure Basics–Compute Emulator

- Building the web role for the Windows Azure Email Service application - 3 of 5

- How-to deploy application to Windows Azure Compute Emulator with CSRUN

The Compute Emulator simulates several features of Windows Azure Cloud Services, but yout have to be aware of Differences Between the Compute Emulator and Windows Azure. Your application can tweak its behavior according to the environment by reading the RoleEnvironment.IsAvailable and RoleEnvironment.IsEmulated properties.

Problem

I am developing windows azure web role. Can I host the azure web role on my local IIS. If yes..what are the steps I need to follow ? Local Machine is currently running on windows server 2008 R2

Original source