{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/607","labels_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/607/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/607/comments","events_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/607/events","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/607","id":122306067,"number":607,"title":"ConfigurationUtility doesn't take RoleEnvironment settings into account","user":{"login":"Fluwit","id":16308286,"avatar_url":"https://avatars.githubusercontent.com/u/16308286?v=3","gravatar_id":"","url":"https://api.github.com/users/Fluwit","html_url":"https://github.com/Fluwit","followers_url":"https://api.github.com/users/Fluwit/followers","following_url":"https://api.github.com/users/Fluwit/following{/other_user}","gists_url":"https://api.github.com/users/Fluwit/gists{/gist_id}","starred_url":"https://api.github.com/users/Fluwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fluwit/subscriptions","organizations_url":"https://api.github.com/users/Fluwit/orgs","repos_url":"https://api.github.com/users/Fluwit/repos","events_url":"https://api.github.com/users/Fluwit/events{/privacy}","received_events_url":"https://api.github.com/users/Fluwit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-15T16:08:57Z","updated_at":"2015-12-15T16:32:47Z","closed_at":null,"body":"The DisableAttribute (and probably others too?) don't take the Azure service definition config settings into account, it only checks the app.config's settings. This pretty much makes it difficult to use these attributes within a worker role.\r\n\r\nBasically the ConfigurationUtility class needs another check against RoleEnvironment.IsAvailable and if true return the value through RoleEnvironment.GetConfigurationSettingValue."},"comment":{"url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/comments/164819517","html_url":"https://github.com/Azure/azure-webjobs-sdk/issues/607#issuecomment-164819517","issue_url":"https://api.github.com/repos/Azure/azure-webjobs-sdk/issues/607","id":164819517,"user":{"login":"Fluwit","id":16308286,"avatar_url":"https://avatars.githubusercontent.com/u/16308286?v=3","gravatar_id":"","url":"https://api.github.com/users/Fluwit","html_url":"https://github.com/Fluwit","followers_url":"https://api.github.com/users/Fluwit/followers","following_url":"https://api.github.com/users/Fluwit/following{/other_user}","gists_url":"https://api.github.com/users/Fluwit/gists{/gist_id}","starred_url":"https://api.github.com/users/Fluwit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fluwit/subscriptions","organizations_url":"https://api.github.com/users/Fluwit/orgs","repos_url":"https://api.github.com/users/Fluwit/repos","events_url":"https://api.github.com/users/Fluwit/events{/privacy}","received_events_url":"https://api.github.com/users/Fluwit/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T16:32:46Z","updated_at":"2015-12-15T16:32:46Z","body":"I certainly feel stupid now. I've been looking over the examples and code but I still managed to miss the INameResolver functionality. Thanks, I got it working now.\r\n\r\nAs for what I meant by ConfigurationUtility: it's the object that seems to resolve the configuration setting values in the WebJobs.Host project. Bad manner of referencing my original intent, I admit."}}