azure-configuration

Is a Windows Azure worker role instance a whole VM?

对着背影说爱祢 提交于 2019-12-13 12:04:15
问题 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? 回答1: It's a whole VM, and the resources allocated are based

Web Role local storage URI

拜拜、爱过 提交于 2019-12-11 10:32:46
问题 I have a local storage folder, called TempStore , set up on my Web Role instances. Is it possible to expose files as a URI from my local storage? E.g: http://myapplication.cloudapp.net/TempStore/helloworld.jpg I understand that I could use blobs for this, but I would prefer to use local storage in this case. 回答1: There is. However I really do not understand the reason for doing this? The only reason I see is some misunderstanding or not fully understanding the capabilities of the Windows

How to get full list of CloudConfiguration from inside a web service at runtime?

风流意气都作罢 提交于 2019-12-11 08:55:07
问题 ConfigurationManager has AppSettings name-value collection but CloudConfigurationManager has only GetSetting(string) method where you can get the config settings 1 by 1 if you know the key. Is there a way to get the whole config of the role runtime? The root cause is that I want to make strong typed configuration in order to abstract it away and make my code more testable. Using CloudConfigurationManager directly is implicit dependency which I want to remove with an abstraction which I want

HTTP 500.79 Error / System.UriFormatException when deploying ASP.NET App to Azure Web App

心已入冬 提交于 2019-12-11 06:38:57
问题 I am attempting to set up a Staging Environment for an ASP.NET MVC Application, and want to do that as an Azure Web App, but I am really stuck on an HTTP 500 at this point. The error I get is: 500.79: The request failed because of an unhandled exception in the Easy Auth module. Using diagnostics logs I was able to get a Stack Trace: 2019-01-14T13:07:22 PID[14448] Critical System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System

Is this how to set Context Connection String Using CloudConfigurationManager?

天大地大妈咪最大 提交于 2019-12-10 01:08:50
问题 I am looking to use CloudConfigurationManager so I can take advantage of Azure configuration files. I want to use a connection string I added a string to my Cloud.cscfg to configure Entity Framework Context. I was configuring my context like this public DomainContext() : base("ContextConnectionString") This was taking the ContextConnectionString from the Web.config I changed the Context Constructor to this public DomainContext() : base(CloudConfigurationManager.GetSetting(

Need ServiceConfiguration.cscfg to populate web.config sessionstate and connection strings

試著忘記壹切 提交于 2019-12-08 17:36:30
I need to propagate connection string changes for entity framework, asp.net membership (which are both in the connectionstrings section of web.config) and session state (which is in sessonstate's sqlconnectionstring) in web.config when I adjust these settings in windows azure's service configuration. During development we test our app as a standard asp.net webforms app, but once it is deployed it is running in azure. So we need to allow for the site running in both non-azure and an azure context. That's why we're just relying upon the values in web.config for now.Since these connection strings

Need ServiceConfiguration.cscfg to populate web.config sessionstate and connection strings

你说的曾经没有我的故事 提交于 2019-12-08 03:31:25
问题 I need to propagate connection string changes for entity framework, asp.net membership (which are both in the connectionstrings section of web.config) and session state (which is in sessonstate's sqlconnectionstring) in web.config when I adjust these settings in windows azure's service configuration. During development we test our app as a standard asp.net webforms app, but once it is deployed it is running in azure. So we need to allow for the site running in both non-azure and an azure

Azure Compute Service worker becomes “busy” following scale-up

懵懂的女人 提交于 2019-12-06 06:03:41
I'm running one service in Azure with 4 worker instances. When I scale up to 5 worker instances the first instance that had started goes into the "busy" state. Why is that? What happens during scale up? Does azure re-run all the startup tasks? I'm very confused and can't seem to find any documentation on this. After scaling up to 5 instances the first instance changes its status to: Busy (Waiting for role to start... Application startup tasks are running. [2014-08-12T18:36:52Z]) And the java process that was running there stops. Why would this happen?! Any help would be appreciated. Startup

Is this how to set Context Connection String Using CloudConfigurationManager?

删除回忆录丶 提交于 2019-12-04 23:45:50
I am looking to use CloudConfigurationManager so I can take advantage of Azure configuration files. I want to use a connection string I added a string to my Cloud.cscfg to configure Entity Framework Context. I was configuring my context like this public DomainContext() : base("ContextConnectionString") This was taking the ContextConnectionString from the Web.config I changed the Context Constructor to this public DomainContext() : base(CloudConfigurationManager.GetSetting("ContextConnectionString")) And it now works. Is there a more elegant way to tell my context constructor to use Azure cscfg

how to create windows virtual machine with 16gb ram

纵然是瞬间 提交于 2019-12-04 10:17:06
I am totally new to cloud services, and using Windows Azure, I need a web server and a database server, each with 16gb of RAM. However, the extra large windows virtual machines only have 14gb of RAM. How would I go about adding 2gb of RAM to each of these servers, or do I need to do something else, such as incorporate a SQL database? I don't need to know the specifics of installation, all I need to know right now is what needs to be paid for, as I am just trying to figure out the price for everything. Thank you. The Extra Large (XL) VM size provides 14GB available RAM. This applies to both