I'm just starting to get my feet wet learning the technical details of Azure, so apologies if this is a silly question.
If I create a cloud service project in visual studio and add a webrole for an mvc application, within the mvc application I can see the "WebRole.cs" file. However, when I start with an MVC application as the starting point, and later want to enable it for Azure, by right clicking on the project and selecting "Add Windows Azure Cloud Service Project", no WebRole.cs is created.
So where would I go to make things happen on the start event of the WebRole? The Application_Start() event of the Global.asax file?
If so, what's the difference between Application_Start() in Global.asax and the onStart() method of a webrole?
I've found the following post, which offers a partial explanation: What starts first Application_Start or WebRole's OnStart?
So if it's a case that the onStart event of the WebRole occurs before the Application_Start() in Global.asax, what happens if I want to run some code on the onStart() event in a project where I've later enabled the app for Azure?