azure-configuration

Is a Windows Azure worker role instance a whole VM?

不羁的心 提交于 2019-12-04 03:14:48
When I run a worker role instance on Azure, is it a complete VM running in a shared host (like EC2)? Or is it running in a shared system (like Heroku)? For example, what happens if my application starts requesting 100 GB of memory? Will it get killed off automatically for violation of limits (á la Google App Engine), or will it just exhaust the VM, so that the Azure fabric restarts it? Do two roles ever run in the same system? It's a whole VM, and the resources allocated are based directly on the size of VM you choose, from 1.75GB (Small) to 14GB (XL), with 1-8 cores. There's also an Extra

How to find an Azure instance role size programmatically?

可紊 提交于 2019-12-03 16:31:00
Is there an API in azure to find the properties of a role (and an instance role)? I'm looking for the instance size, and it is not available in the Azure Management API. VM size isn't exposed in the API, as you've already found out. As suggested by Neil Mackenzie here , you can call Environment.ProcessorCount from your Azure application, which lets you deduce VM size. You could then store this in an Azure table, for example, and query the table. EDIT: Here's a screen snapshot where I pushed an Extra-Large instance to Windows Azure and called Environment.ProcessorCount: EDIT June 6, 2011 - The

Azure Web Role “warm up” strategies [closed]

随声附和 提交于 2019-12-03 02:02:11
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I found that making requests to our web role after periods on inactivity would result in a very slow request (up to 30 seconds). After that initial request, the role would perform as it should. After much Googling, I came across four different strategies (listed below): (a)

Azure Web Role “warm up” strategies [closed]

爷,独闯天下 提交于 2019-12-02 15:38:54
I found that making requests to our web role after periods on inactivity would result in a very slow request (up to 30 seconds). After that initial request, the role would perform as it should. After much Googling, I came across four different strategies (listed below): (a) Disabling IIS idle timeout in RoleEntryPoint.OnStart() public override bool OnStart() { using (var server = new ServerManager()) { server.ApplicationPoolDefaults.ProcessModel.IdleTimeout = TimeSpan.Zero; server.CommitChanges(); } return base.OnStart(); } This also requires that the role runs at an elevated level. (b)

Struggling to move Web Role to a smaller vmsize

試著忘記壹切 提交于 2019-12-02 02:14:03
问题 I want to move my web role to a smaller VM size for cost saving purposes. I changed the vmsize attribute in WebRole in the ServiceDefinition.csdef accordingly. On publishing I received the following error: Total requested resources are too large for the specified VM size So I then reduced the size of the local storage resources in the ServiceDefinition.csdef . Then I got the error while publishing: The size of local resources cannot be reduced. Affected local resource is DataFiles in role

Struggling to move Web Role to a smaller vmsize

旧巷老猫 提交于 2019-12-02 01:32:44
I want to move my web role to a smaller VM size for cost saving purposes. I changed the vmsize attribute in WebRole in the ServiceDefinition.csdef accordingly. On publishing I received the following error: Total requested resources are too large for the specified VM size So I then reduced the size of the local storage resources in the ServiceDefinition.csdef . Then I got the error while publishing: The size of local resources cannot be reduced. Affected local resource is DataFiles in role Website. From what I have read online, I will need to delete the deployment and republish it . But this

Completely remove a subscription from Management Portal

不羁的心 提交于 2019-11-30 11:13:08
In my Windows Azure Management Portal, I still see the "3-Month Free Trial" subscription although it has already expired and been canceled automatically. I've deleted both the hosted service in it and also the database, but it still doesn't disappear. What can I do to completely remove a subscription? Visit the portal. In the upper-right corner, you should see a link for Billing. This will take you to a list of your subscriptions. Select your subscription. Then, on the right side, you'll see a few options, and one toward the bottom should be 'Cancel Subscription.' According to the Azure

Static IP address for Role in Windows Azure?

百般思念 提交于 2019-11-30 07:08:28
Does anyone knows if obtaining a static IP address for a Web or Worker Role on Windows Azure is possible (possibly only in private beta)? user1393477 A few years later, Azure now lets you reserve IP addresses for VMs and cloud services (Web and Worker roles). However, it is only accessible from PowerShell for the time being (this will change in the future, apparently). The first five static IP addresses are free. To create an IP you will need to make sure you have the latest version of the Azure PowerShell command-line interface and also have your Azure account linked to Azure PowerShell

Where do I store my Azure role settings that are not to be stored as plain text?

强颜欢笑 提交于 2019-11-29 04:54:57
Looks like the standard way of storing settings of Azure roles is under <ConfigurationSettings> tag in the .cscfg file. Looks convenient, but the file is not encrypted in any way - it is an XML that is uploaded to the Azure portal as plain text and is stored as plain text and can be edited at any time. In my application I'll need settings that should not be stored as plain text - like for example a password to my SQL Azure database. I'd rather not have a plaintext XML file with that password. How do I store such role settings? The typical way to do this on-premises is to use DPAPI on a single

Where do I store my Azure role settings that are not to be stored as plain text?

守給你的承諾、 提交于 2019-11-27 22:47:58
问题 Looks like the standard way of storing settings of Azure roles is under <ConfigurationSettings> tag in the .cscfg file. Looks convenient, but the file is not encrypted in any way - it is an XML that is uploaded to the Azure portal as plain text and is stored as plain text and can be edited at any time. In my application I'll need settings that should not be stored as plain text - like for example a password to my SQL Azure database. I'd rather not have a plaintext XML file with that password.