azure-web-roles

Is it a good idea to reuse an Azure web role for backend processing?

偶尔善良 提交于 2019-11-28 07:55:54
问题 I'm porting a huge application to Windows Azure. It will have a web service frontend and a processing backend. So far I thought I would use web roles for servicing client requests and worker roles for backend processing. Managing two kinds of roles seems problematic - I'll need to decide how to scale two kinds of roles and also I'll need several (at least two) instances of each to ensure reasonable fault tolerance and this will slightly increase operational costs. Also in my application

How to add a custom post deployment script to azure websites?

馋奶兔 提交于 2019-11-28 07:40:40
My problem is that I need to run a custom cmd file after the build. Instead of modifying the deployment scripts I just want to run few MSDOS commands to my deployment easily. The task I need to do is to run a cmd at the repository located at /source/copyextrafiles.cmd after the build succeeded. How can I achieve that? At the azure portal on the CONFIGURE tab of your website add a "app settings" entry called POST_DEPLOYMENT_ACTION with the value of source/copyextrafiles.cmd Save and the next deploy will run the cmd for you after the deploy. Here the picture: An alternative in addition to the

Multiple roles on the same instance in Windows Azure

大城市里の小女人 提交于 2019-11-28 07:31:56
Is it possible to deploy multiple roles in the same instance? I have three web roles (website in asp.net mvc3, and two WCF services instances) and two worker roles (windows services). The load for this application is very small, so I don't want to create so many instances in Windows Azure and pay for all of the instances now. Instead I want to deploy all my application in the same instance and change it later if I will get some income from my applications. I Googled and found some forum posts than it's possible and some than it's not possible... but I can't find information how to do it... So

azure role not starting after windows update 10February

故事扮演 提交于 2019-11-28 07:06:03
问题 After installation of windows update on 10th February 2016, the azure roles are not starting in emulator (Full/Express). The logs show below [00005748:00006624, 2016/02/14, 12:03:24.391, FATAL] Role process exited with exit code of -2147024809 [00005748:00006624, 2016/02/14, 12:03:24.397, INFO ] Stopping role: deployment25(0).AzureCloudService2.WebRole1_IN_0. Notify: False Recycle: False StopTimeout: 30 [00005748:00006624, 2016/02/14, 12:03:24.398, IMPRT] State of deployment25(0)

Azure Roles and Instances

爱⌒轻易说出口 提交于 2019-11-28 03:59:04
问题 Can I have a Web Role and a Worker role run on the same instance, or do I have to obtain 2 separate hosting instances and pay twice the amount I would otherwise? I have a WCF Web API that I want to host on Azure. I also have a Worker Role that listens to a Queue in Azure Storage. Every time a message is added to the Queue, it will obtain that and run a small task depending on the message. I was wondering if I can just run these two on the same instance or not. 回答1: "Worker Role" and "Web Role

Do you need 2 instances of Azure websites for SLA like Web Roles?

耗尽温柔 提交于 2019-11-28 03:24:38
问题 On cloud services web roles you must create at least 2 instances to get Azure's 99.95% SLA because when they do updates to the servers' OS etc, Azure will need to restart the machines (one at a time). This is well documented and you will be shouted at by the portal when running a one instance web role for doing this. With Azure websites you don't get such warnings and I cannot find any documentation suggesting 2 instances for the 99.9% SLA. However, I also can't find any documentation saying

Role in Azure Compute Emulator stuck cycling between Unknown and Destroyed states

让人想犯罪 __ 提交于 2019-11-28 02:26:00
My Azure Cloud Service's Web Role works fine when deployed to Azure but can't get it running with the Emulator. When starting the role from within Visual Studio (2015) the window just displays "Starting the roles for the application in the Microsoft Azure compute emulator...". When starting with the debugger OnStart() doesn't seem to be hit at all, so something before that gets stuck. The role doesn't seem to be started because the app's custom logs are not created either. Looking at the Compute Emulator's UI reveals that the role is continuously (and very slowly) cycling between Unknown and

Azure CDN - Enabling HTTP Compression - Hosted Web Role

烈酒焚心 提交于 2019-11-27 20:47:43
Has anyone successfully configured Azure CDN for HTTP compression using their hosted web role? We are having trouble compressing HTTP content at the Azure edge servers. The CDN is only caching the uncompressed version of the content. If we hit our resource link ( webresource.axd ) from a non-Azure approach it compresses via gzip ( using the xxxx.cloudapp.net/cdn/webresource.axd ) as expected. However, as soon as we point our resource link to Azure CDN ( xxxx.vo.msecnd.net ), the content is served up uncompressed, despite the browser telling the Azure CDN it accepts gzip. I posted this same

Chrome34 ignores cookies with domain “.cloudapp.net”

∥☆過路亽.° 提交于 2019-11-27 15:15:24
问题 After a lot of debugging from our dev/test environments hosted as web roles in Azure, that suddenly stopped working with Chrome 34, we realize that Chrome was ignoring the set-cookie response that has cookies with domain name ".cloudapp.net" (the default public Microsoft domain for cloud services in Azure). The reason we choose this name was to be able to generate CORS requests among different cloud services that needed secure requests from the same javascript App. This means getting an

How does Microsoft Azure handle Session State?

匆匆过客 提交于 2019-11-27 06:55:19
Does anyone have any information on how state is managed in Azure when you choose to have multiple instances? It seems like InProc would be worthless and you would have to have another state server instance, or use the datastore to store the users state across servers. Or does it implement sticky sessions, so InProc is all you need. Found the answer here: Azure Forums Table Storage would be the most logical place. Other server farm type setups also use a database table to store session info. Take a look at the AspProviders project in the Windows Azure SDK samples. It has a SessionState