Azure configuration settings and Microsoft.WindowsAzure.CloudConfigurationManager

azure, c#, configuration-files

Solution

It will just be an appSettings key/value.

<configuration>
  <appSettings>
    <add key="Foo" value="AzureSetting"/>
  </appSettings>
</configuration>

Problem

Apparently Microsoft.WindowsAzure.CloudConfigurationManager.GetSettings will start by looking in ServiceConfiguration.*.cscfg and then fall back to web.config and app.config. But - what format should this be in web/app .config? E.g. to get `Microsoft.WindowsAzure.CloudConfigurationManager.GetSettings("Foo")` to pick up from app.config what would the XML look like?

Original source