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
0
votes
1 answer

Can I control which Windows Services are started on the VM where my Azure instance runs?

Recently I tried to enumerate the Windows Services on the VM where my Azure web role instance runs using ServiceController.GetServices() - there's a lot of them including Telephony and CloudDrive which I don't need and so having them started is a…
sharptooth
  • 167,383
  • 100
  • 513
  • 979
0
votes
3 answers

Azure webrole excesive headers

I have a website running in Azure Web Roles. I tested the site against asafaweb.com and got an "Excessive Headers" warning. Basically Azure sends out the IIS version and the .net version as part of the header. There is plenty of information on…
Greg
  • 3,442
  • 3
  • 29
  • 50
0
votes
3 answers

Windows Azure and a third-party Windows Service

I am developing a website that I intend to run within Windows Azure using a single Web Role. The site will make use of the Sphinx Search engine which will need to run as a Windows Service. So, my question is this...is it possible to install the…
MotoSV
  • 2,348
  • 17
  • 27
0
votes
1 answer

Would AzureDistributionBundle play well with AsseticBundle?

I'm very much interested in getting my hands dirty to run Symfony2 Application on Windows Azure. I've tried but no luck. Recently I found the AzureDistributionBundle that would automatically configure Symfony2 to play well with Windows Azure. But…
bernardnapoleon
  • 373
  • 1
  • 3
  • 13
0
votes
1 answer

webrole dev fabric browser launch url instead of IP

When I debug/run a webrole in the dev fabric, it launches a browser instance that goes to the loopback address(http://127.0.0.1/). This is the normal visual studio behavior for debugging a webrole/cloud project. Is there a way to get the debug/run…
0
votes
1 answer

Same project in multiple sites with different configuration

I want to deploy same web application to multiple sites with different domains and different web ui and database. In my ServiceDefinition i have this:
camaya
  • 377
  • 1
  • 4
  • 15
0
votes
2 answers

Integrating YAF 1.9.5.5 with Azure

I have a problem with integrating YAF 1.9.5.5 to azure 'web role'. I successfully added forum to my page and configured config as recommended. <%@ Page MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" ValidateRequest="false"…
0
votes
1 answer

httphandlers in azure 500 internal server error

I am not able to work with htpphandlers in azure after deploy, it is ok with in the local machine. In web.config I declared as follows In…
user1273357
0
votes
1 answer

Document templates / content - how to store?

If possible - I want to use ASP.NET / Azure / Local SQL Server for caching Is should be possible to create forms (its ok if the developer team can do that) without lots of coding work since customers will have different forms (avoid proudct lines).…
damike
  • 323
  • 1
  • 12
0
votes
1 answer

Azure asp.net mvc 3 publishing/deployment issue

Hi I have a MVC 3 web project which has been deployed to Azure successfully previously. Since i had some problems with github, and the Azure cloud project just won't publish, we have tried to delete/create new projects; updated varies settings,…
Kiddo
  • 5,052
  • 6
  • 47
  • 69
0
votes
1 answer

SQL Azure multiple instances web role :- session not working on local machine

We are hosting our web application over azure. Everything went well so far with a web role of only 1 small instance. We then decided to try out 2 x extra small instances for our web role so that http requests will be load balanced. Our session is…
Kevin Vella
  • 1,869
  • 1
  • 16
  • 18
0
votes
3 answers

WebRole vs WorkerRole

Hi I am implementing a TCPIP listener in Azure WorkerRole. The WorkerRole listens for incoming TCP data and stores it in Azure Table Storage. Everything is working fine when i do this in Run() of WorkerRole. But when implement the same thing in a…
Anil Maddala
  • 898
  • 16
  • 34
0
votes
3 answers

How can I test multiple Web Role instances in Windows Azure?

Background: I've deployed an MVC3 application to 2 Azure Web Role instances, but I'm confused as to how I can test out the possibility of one of these instances failing. Is there a way that I can test to ensure that my Web Role code works seamlessly…
David P
  • 3,604
  • 3
  • 37
  • 54
0
votes
2 answers

Is tracing allowed within a asp .net web role?

I am trying to develop a asp.net web role that allows to tracing when, for instance, clicking a button. I have tried lots of things, namely I have also tried what i suggested in the question "Trace.WriteLine in ASP.NET Azure", but it does not work…
0
votes
1 answer

load behavior of azure configuration files - serviceconfiguration.csdef, serviceconfiguration.cloud.cscfg

In terms of loading and reading do serviceconfiguration.csdef, serviceconfiguration.cloud.cscfg behave the same way as web.config? According to MSDN the settings in web.config are "calculated once and then cached across subsequent requests. ASP.NET…
user529265
  • 820
  • 10
  • 27
1 2 3
75
76