Currently when retrieving the AppSettings from a WebApp, the object that is returned is:
IReadOnlyDictionary<string, IAppSetting> AppSettings
This seems to be incorrect; I would expect AppSettings to contain a dictionary of key/value pairs. Instead, it contains a dictionary of key/[value.key, value.value] pairs.
Notice how one has to access the desired key/value pair:
var webApp = azure.WebApps.GetById(resourceId);
var settings = webApp.AppSettings;
foreach (var setting in settings)
{
var key = setting.Value.Key; // this is strange. Should be "setting.Key"
var value = setting.Value.Value; // this is strange. Should be "setting.Value"
}