azure-web-roles

cspack behaviour differs from msbuild

巧了我就是萌 提交于 2019-12-10 09:46:08
问题 Using Visual Studio 2012, Azure SDK 2.1, I am trying to figure out the best way to create the csx folder for running in the azure emulator. My understanding is that the csx folder is not created until I package the Azure project. I can create a package manually from Visual Studio, but this is not an option for an automated build. The other option is to create the package using the msbuild command line. This seems a bit heavy handed as it will actually do a build which is more time consuming

Automatic start of Azure webrole after deploy

懵懂的女人 提交于 2019-12-09 06:04:20
问题 A have an azure webrole with a test page and a service in that role. After publishing the role it doesn't start automatically, only at first use. So if the role is shut down for some reason the first usage after that is quite slow. Is there a way to make webroles start automatically right after they are deployed (either first time, or after a migration)? 回答1: Check out the auto start feature of IIS 7.5. Make sure you set osFamily="2" for the webrole so that it uses the Windows 2008 R2 OS.

Azure websites RoleEnvironment.IsAvailable equivalent [duplicate]

久未见 提交于 2019-12-09 00:34:31
This question already has answers here : How to check if code is running on Azure Websites (2 answers) Closed 4 years ago . I'm migrating an web app from an Azure Cloud Services Web Role to Azure Websites. Websites can't find Microsoft.WindowsAzure.ServiceRuntime and doesn't seem to like the Cloud Service helpers in general. The app uses RoleEnvironment.IsAvailable in a few places to behave differently online versus on a development computer. (We ran in development outside of the Web Role emulator for speed.) Is there an equivalent property to RoleEnvironment.IsAvailable for determining

What exactly are Windows Azure Instances? [closed]

自作多情 提交于 2019-12-08 18:30:41
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . On Windows Azure Portal ( as of Jan 2013) What do i get when i scale the Windows Azure Website instance from 1 to 6? Does it mean there will be 6 physical instances of my website on the same server? In IIS terms are there 6 running websites all automatically load balanced? But judging from the help text it

Deployment to cloud fails saying size of DiagnosticStore cannot be reduced?

送分小仙女□ 提交于 2019-12-08 17:06:00
问题 I recently upgraded my azure storage libraries from 1.7 to 2.1 and since then I have not been able to deploy to my cloud service. I keep getting this deployment error. The size of local resources cannot be reduced. Affected local resource is DiagnosticStore in WorkerRole. Current size is 20000. Requested size is 4096. I haven't enabled caching and I tried using Small and even Medium VM's but still the issue persists. Any idea where the issue might be? 回答1: Don't deploy directly to the

'Expiration time buffer' of SessionSecurityTokenHandler of WIF 4.5 in Azure web role

戏子无情 提交于 2019-12-08 07:33:56
问题 everyone. What does 'Expiration time buffer' mean? Let me explain this to you. In my Azure Cloud service project, there is only one Web Role. And I integrated the ACS namespace enabled with some identity provider. And the identity provider will issue an token. Anyhow, there will be a SessionSecurityToken instance. And my web role will handle its expiration. Here is the sample code, void SessionAuthenticationModule_SessionSecurityTokenReceived(object sender,

Why does this call to aspnet_compiler not produce new .NET assemblies?

送分小仙女□ 提交于 2019-12-08 06:41:07
问题 I'm trying to make Visual Studio precompile my ASP.NET application that will be deployed on Azure. I've added the following to my .csproj file: <Target Name="AfterBuild"> <Message Text="Starting AspNetCompiler for $(ProjectDir)" Importance="high" /> <AspNetCompiler VirtualPath="/" PhysicalPath="$(ProjectDir)" /> </Target> Now when I ask Visual Studio to prepare a service package the following appears in the build output: Starting AspNetCompiler for [PathToMyProject] C:\Windows\Microsoft.NET

Deploy a Web Role and Worker Role in a single instance

血红的双手。 提交于 2019-12-08 04:30:04
问题 I'm developing a scalable app and I use the web role, queue, worker role design... But right now (in the alpha tests phase) i'm concerned a little about cost cutting because i'm suffering from the common "out of cash" problem... So due to the test nature of the phase i was wondering if there's a way to make a role behave as web role and worker role? So i could deploy both of my projects (the "WebFrontEnd" project and the "QueueProcessor" project) on a single instance... Edit1: i do know how

Trouble with CSS Icon Generated Content in a published Azure Web Role

て烟熏妆下的殇ゞ 提交于 2019-12-08 02:08:01
问题 I have an MVC4 web application that I'm trying to publish as an Azure web role. The website is utilizing Metro UI CSS. Overall, the published web role is functioning as expected, but the issue I'm having is with CSS generated content. Take for example the following snippet for an icon in the Metro UI modern.css: .metrouicss .icon-arrow-right-3:before { content: "\e09d"; } The generated content corresponds to the following glyph in the associated font files: <glyph unicode="" d="M 288.00,352

How is VIP swapping + CNAMEs better than IP swapping + A records?

五迷三道 提交于 2019-12-08 02:07:22
问题 I'm in the middle of updating my DNS setup to use all CNAMEs instead of A records, because I need support for VIP swaps between Staging and Production. I can't use A records for this because that puts a dependency on a VIP that will be changing for each deployment. Previously, I was using A records because of wildcard AND base domain support - I could map mydomain.com and all subdomains to the VIP and everything just worked. CNAMEs make this a bit more complicated, but not impossible. My