Questions tagged [azure-web-roles]

A Microsoft Azure Web Role is a Windows Server Compatible Virtual Machine (VM) with IIS enabled, along with scaffolding code that provides a launch point for your own code to run within the VM.

Web Roles and Worker Roles form the basis of the Azure Cloud Services PaaS offering, removing the need for developers to manage the platform on which their applications will run.

The primary difference between a Web Role and Worker Role is the enabling of IIS. Both Web Roles and Worker Roles may run the same code, though it's often useful to split code between different roles for scaling purposes.

Within Visual Studio, you'll also see a slightly different role template, but the 4 primary events/overrides are available in both:

  • OnStart()
  • Run()
  • Stopping()
  • OnStop()

Further: If apps need to be installed (or registry changes are needed), and those tasks need elevated privileges, there's the ability to run startup tasks, which execute prior to OnStart().

In either roles you can choose the type of operating system running by modifying the service configuration file (.cscfg). Possible options are:

  • osFamily 1: equivalent of Windows Server 2008 SP2 x64
  • osFamily 2: equivalent of Windows Server 2008 R2
  • osFamily 3: equivalent of Windows Server 2012
  • osFamily 4: equivalent of Windows Server 2012 R2

You can read more about service configuration schema here.

1139 questions
4
votes
2 answers

How to scale effectively in windows azure?

I have been having some difficulties in identifying the right configurations for effectively scaling my cloud service. I am assuming we just have to use the scale section of the management portal and nothing programmatically? My current…
Bitsian
  • 2,238
  • 5
  • 37
  • 72
4
votes
2 answers

Show internal server error?

I have the following output when running my web application: The page cannot be displayed because an internal server error has occurred. Screenshot: In my web.config, the following are set:
Dave New
  • 38,496
  • 59
  • 215
  • 394
4
votes
1 answer

How to deploy multiple web roles in Azure

I had gone through multiple articles and SO Questions like - this, this, and this (and many others) However none of them serves my issue. I would like to deploy two web roles in one cloud service. I tried deploying the same but found one is running…
Anil Purswani
  • 1,857
  • 6
  • 35
  • 63
4
votes
3 answers

Log4net.Azure configuration

Recently, we moved our solution (ASP.NET MVC4) to Windows Azure and so far, it is working fine. Our only concern is that we are not able to locate our logs files no matter what method we do implement: Actually, our existing application uses log4net…
mahoosh
  • 553
  • 1
  • 7
  • 21
4
votes
1 answer

Azure - Prod/Test/Dev environments

I have an Azure Cloud Service that hits an Azure SQL Server. When I first set this up, I really didn't know much about what I was doing and just wanted to get familiar with Azure. So now I'm at the spot where I want to take what I have and turn it…
Mike Homol
  • 481
  • 5
  • 19
4
votes
1 answer

How to generate certificate signing request for Azure WebRole

I have a WebRole running in Windows Azure, using a *.cloudapp.net domain that I have CNAMEd my real domain to. I don't have a Virtual Machine. Is it possible for me to issue a certificate signing request to a CA with this setup? Or do I need to…
user1379417
4
votes
1 answer

Azure Cloud Service with SSL is not working

We want to configure SSL for our application in Windows Azure Cloud. As per the instructions in windows azure (ref: http://msdn.microsoft.com/en-us/library/windowsazure/ff795779.aspx), 1) we have obtained a SSL wildcard certificate from a…
user10489
  • 255
  • 2
  • 6
  • 17
4
votes
2 answers

Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1

Simple question but lots of meaning/discussion behind!!! Is it possible to have the Windows Azure emulator open the browser to a URL other than 127.0.0.1 and port 81?
4
votes
1 answer

UDP multicast in Windows Azure cloud service

Is there any support for multicast UDP within a Windows Azure cloud service? I've set up internal endpoints for the UDP protocol in my roles, but my guess is that they're only opened for the IP addresses assigned to the web/worker roles in my cloud…
Scott
  • 1,077
  • 2
  • 11
  • 23
4
votes
2 answers

Running many items in an azure web role

At my current company we are doing some research into azure with the view to moving some of our older systems into the cloud. We have the following systems which are all installed at the customers location. Database (SqlServer) Processing Server…
deanvmc
  • 5,957
  • 6
  • 38
  • 68
4
votes
2 answers

Azure SDK 1.8 binds several web roles to the same port on local emulator

After updating azure SDK to 1.8 I'm not able to run our project properly anymore. Looks like local emulator creates IIS application in a wrong way using the same port numbers. The problem can be reproduced if I just create a new Cloud project with…
Vladimir Sachek
  • 1,126
  • 1
  • 7
  • 20
4
votes
1 answer

Mixing node.js and ASP.NET projects in a single Azure Web Role?

It's quite easy to host multiple ASP.NET projects on a single Azure Web Role (tutorial) but is it possible to use a single Web Role to host both ASP.NET and node.js projects?
Mikael Koskinen
  • 12,306
  • 5
  • 48
  • 63
4
votes
1 answer

Add WebRole.cs - and have it called - in an existing ASP.NET MVC site converted to web role

I have an ASP.NET MVC 4 site running perfectly well in an Azure WebRole. The ASP.NET MVC project was started on its own, after which I added an Azure Cloud Service project to the solution and added the ASP.NET project/site as one of the 'roles' of…
Nicholas Petersen
  • 9,104
  • 7
  • 59
  • 69
4
votes
2 answers

assembly is not compatible with the 64-bit processor architecture used by IIS on Windows Azure

I am getting a warning message when I try to run my asp.net application on my devmachine appfabric .and I am getting error message when I upload my application to azure cloud project contains the following assembly: C:\Program Files (x86)\Microsoft…
Millar
  • 1,095
  • 6
  • 16
  • 34
4
votes
1 answer

Azure Cloud Service Deployment Error

I trying to Deploy a moderated size project in cloud as Service, it giving me a fatal error , i am not able to figure out what the mean of error and cause is Azure Deployment Stack Trace : Role instances recycled for a certain amount of times during…
joshua
  • 2,371
  • 2
  • 29
  • 58