Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start the Azure emulator with an ASP.NET MVC project

I have an ASP.NET MVC project that uses Azure Storage and has been successfully deployed to Azure. However when run the project locally, it does not start the Azure emulator.

The only way I have found of starting the Azure emulator is to make a 'Windows Azure Cloud Service' shortcut and run that manually.

Is there a way to make ensure the Azure emulator runs when I start my app?

like image 979
Tom Avatar asked Oct 21 '22 18:10

Tom


1 Answers

I have a cloud service in the same project as my MVC site. Since you've already created the MVC project give this a try...

  1. Add new Cloud project to your solution. DONT SELECT ANY ROLES WHEN ADDING.
  2. Once the Cloud project is add, right click the Roles and slect...
    • Add "Web Role Project in solution..." There you will be able to select you MVC project.
  3. Last but not least, set the Cloud project as the start up project and it will start the appropriate compute and storage emulators when running locally.

I Just verified this in VS2012, it had been a couple of months since I had done it.

like image 135
cameronjchurch Avatar answered Nov 01 '22 14:11

cameronjchurch