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

Azure permission missing Microsoft.Web/sites/host/properties/read

I am trying to add the following permission to an Azure role due to an error I am seeing in the logs - Microsoft.Web/sites/host/properties/read. However, I cant find this permission to apply when I edit the role definition. Any idea?
JakeUT
  • 359
  • 1
  • 4
  • 16
-1
votes
1 answer

Access specific web role node on Azure Cloud Service

I have a number of Azure Cloud Service deployed (currently Classic, but in the process of upgrading to Extended Support). Each Cloud Service has a web role with a number of nodes (2 or 3 currently depending on the site). Is there a way to force a…
Aleks G
  • 56,435
  • 29
  • 168
  • 265
-1
votes
1 answer

Azure WebApp how client can see new content without refresh when server is updated with new content

I have a webapp on azure, its developed in using ASP.net, JavaScript and Html. Whenever i update my server in background, I expect anybody who is using or the page is already opened, they should see the new content without need to refresh their…
shyam_
  • 2,370
  • 1
  • 27
  • 50
-1
votes
1 answer

Azure WebRole or Worker Role or Logic App or WebJobs

I'm trying to migrate a number of solutions into Azure. The solutions consist of multiple projects but the projects come down to three basic types: ASP.NET MVC/WebForms Application ASP.NET WebApi Application .Net Windows Services (We have a large…
-1
votes
1 answer

Access Denied on Web.config Azure Web Role

My Azure web role suddenly stopped working with the following error. "Access to the path 'F:\sitesroot\0\Web.config' is denied." There was no recent published changes or configuration and it was working without any problems till yesterday! I checked…
Ehsan
  • 357
  • 5
  • 22
-1
votes
1 answer

Azure Web-Role Kudu Remote Execution Console "tasklist.exe" returns nothing

when i'm running the command "tasklist.exe" in the Kudu Web Frontend CMD it returns nothing, it seems that the process is hanging. We need this command in our web application. Does anyone can confirm this or has a resolution ? Our application runs…
S3bb1
  • 3
  • 1
-1
votes
1 answer

Azure website error Your connection is not private

I'm trying to set up a domain name in azure. https://pp.vk.me/c623722/v623722762/180cb/SwBEjiWmCGY.jpg I changed different settings, but that did not work. I get an error: http://booveron.com What could be the problem? Thanks
Michael
  • 11
  • 1
-1
votes
1 answer

Running Script on Azure Web Role Instances

Is there a way to execute some script on Azure Web Role Instances ? I am kind off new to Azure and Azure Management APIs. Basically what i want to achieve is, depending on the environment type, i would like to switch ON/OFF couple of services in all…
Jash
  • 942
  • 4
  • 17
  • 40
-1
votes
1 answer

Simplest way to secure Azure Web Role WCF service

Using latest VS 2013 and Azure SDK 2.4, I've created a Web Role and a WCF service in it. This service will be consumed by a standard generated .NET service reference client proxy. I am trying to figure out what is the simplest way to secure this…
g.pickardou
  • 32,346
  • 36
  • 123
  • 268
-1
votes
1 answer

Create and read html file in a temp folder in azure web role and serve it

We have an application that we would like to migrate to Azure.There is a requirement in which a virtual temporary folder is created if not exist and a dynamic html page is to be created based on some user input which has been done in asp.net…
-1
votes
1 answer

Configured an azure web role for https but it is not working

I have a web role which is configured for 2 endpoints, one http, one https 443: Then I have 3 certs (one is the main and 2 are CA). I have uploaded all of these and also checked thumbprints are correct. But when I deploy, the http site works fine…
-1
votes
1 answer

Adding Azure webrole instances does not affect MVC4 webservice throughput

I have a very simple MVC4 post action as part of Azure webrole: [HttpPost] public ActionResult Index(Request request) { return new JsonResult() { Data = "OK", JsonRequestBehavior =…
ohavryl
  • 397
  • 1
  • 5
  • 17
-2
votes
2 answers

process.start doesn't work in Azure web role

I am trying to open a new window from a web role(Azure). But Process.start doesn't work and it isn't throwing any exceptions Process.Start(url);
-3
votes
1 answer

Azure Appfabric just doesn't cut it

I have an ASP.NET web site project that runs fine when deployed to Azure, but will not run locally in the Compute Emulator. Seems like if it works in Azure it ought to work in the Compute Emulator, but I guess that's not a high priority to the SDK…
jrichview
  • 338
  • 2
  • 14
1 2 3
75
76