Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I test changing Azure service configuration settings at runtime locally?

I am writing our Azure app to use Azure service configuration settings so we can change it in real time. I can test it by deploying and then changing them in the Azure web portal.

How do I allow changing service configuration in real time on my local azure compute emulator?

like image 545
GraemeMiller Avatar asked Aug 31 '12 13:08

GraemeMiller


People also ask

How to change web Config in Azure?

If you want to change web. config files you can use the Azure portal, there is a tool called "App Service Editor" in preview or Kudu that lets you edit any of the files you've deployed.

How do I connect to Azure app configuration?

In the upper-left corner of the home page, select Create a resource. In the Search services and marketplace box, enter App Configuration and select Enter. Select App Configuration from the search results, and then select Create. Select the Azure subscription that you want to use to test App Configuration.

What is Azure configuration management?

Azure Automation State Configuration is an Azure configuration management service that allows you to write, manage, and compile PowerShell Desired State Configuration (DSC) configurations for nodes in any cloud or on-premises datacenter.


1 Answers

In order to update the service configuration you need to modify the *.cscfg file and execute csrun.exe (in C:\Program Files\Microsoft SDKs\Windows Azure\Emulator):

csrun.exe /update:<deployment-id>;<service-configuration-file>

Note that this seems to work only when running the application without debugger.

I recently blogged about this here: Controlling your instances in the Windows Azure Compute Emulator (look under Handling the RoleEnvironment.Changing event in the emulator).

like image 63
Sandrino Di Mattia Avatar answered Oct 06 '22 01:10

Sandrino Di Mattia