azure-configuration

How to find an Azure instance role size programmatically?

风格不统一 提交于 2020-01-12 08:38:42
问题 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. 回答1: 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

Azure: How to execute a startup task delayed?

风格不统一 提交于 2020-01-04 05:59:20
问题 I have two Sites within my WebRole and have defined a Startup task. The first line works fine, it creates a new App pool for me: %WINDIR%\system32\inetsrv\appcmd.exe add apppool /name:"VCPool" /managedRuntimeVersion:"v4.0" /managedPipelineMode:"Integrated" Now I would like to change my second to this new created AppPool, but adding another line right after, doesn't help. %WINDIR%\system32\inetsrv\appcmd.exe set app "WebRole_IN_0_VC/" /applicationPool:"VCPool" It seems the second site is

Azure: How to execute a startup task delayed?

三世轮回 提交于 2020-01-04 05:59:11
问题 I have two Sites within my WebRole and have defined a Startup task. The first line works fine, it creates a new App pool for me: %WINDIR%\system32\inetsrv\appcmd.exe add apppool /name:"VCPool" /managedRuntimeVersion:"v4.0" /managedPipelineMode:"Integrated" Now I would like to change my second to this new created AppPool, but adding another line right after, doesn't help. %WINDIR%\system32\inetsrv\appcmd.exe set app "WebRole_IN_0_VC/" /applicationPool:"VCPool" It seems the second site is

change the value of instances count programmatically in azure

房东的猫 提交于 2019-12-25 08:57:50
问题 I downloaded AutoScale from http://blog.maartenballiauw.be/post/2011/03/21/Windows-Azure-and-scaling-how-(NET).aspx and followed the instructions there. I added it as reference to my existing azure project. But I am not sure what exactly I should pass as the user defined parameters for the 6 parameters required for auto scale. I want to only change the instance count of my worker role depending on the number of documents to be processed. 回答1: Those parameters are all from the management API

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

放肆的年华 提交于 2019-12-22 14:45:06
问题 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

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

好久不见. 提交于 2019-12-22 14:45:06
问题 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

Azure cannot access connection string stored in app service configuration

梦想与她 提交于 2019-12-22 10:20:54
问题 I have an app service in Azure operating as an API for a system I'm designing. As the API is responsible for accessing the database directly, I obviously don't want to be storing connection strings in the source code, so have stored it in the Connection Strings section within the App Service's Configuration on the Azure dashboard. My code is pretty much a carbon copy of this >> https://github.com/medhatelmasry/JwtAuthentication/blob/master/JwtAuthentication/Startup.cs, except I have a check

Getting Error The argument 'nameOrConnectionString' cannot be null, empty or contain only white space with Azure Database

牧云@^-^@ 提交于 2019-12-21 17:36:11
问题 I am having my database and other storage on azure cloud storage.i am using Entity Code first appoach but problem is when i am trying to read connection string from cloud storage using CloudConfigurationManager.GetSetting() i am getting below error: Error:The argument 'nameOrConnectionString' cannot be null, empty or contain only white space. An exception of type 'System.ArgumentException' occurred in EntityFramework.dll but was not handled in user code This is my Azure project:Demo.Web.Azure

Completely remove a subscription from Management Portal

两盒软妹~` 提交于 2019-12-18 14:14:38
问题 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? 回答1: 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

Static IP address for Role in Windows Azure?

[亡魂溺海] 提交于 2019-12-18 12:28:43
问题 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)? 回答1: 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