How can we improve Azure Cloud Services (Web and Worker Role)?

Make CloudConfigurationManager.GetSetting("setting") less verbose

Each calls to CloudConfigurationManager.GetSetting("setting") generate garbage in the trace outputs. Its not necessary and very annoying when analysing output traces.

The simple statement CloudConfigurationManager.GetSetting("setting") generates this:
Getting "setting" from ServiceRuntime: FAIL.
Getting "setting" from ConfigurationManager: PASS (0).

109 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Andrew KoltzAndrew Koltz commented  ·   ·  Flag as inappropriate

        Agreed. Independent configuration is the right answer here. I want to be able to focus on my application's logs, not be distracted by the platform's.

      • SimonSimon commented  ·   ·  Flag as inappropriate

        Besides the obvious annoyance-factor this might also have security implications. The PASS-entry writes the actual value of the setting (e.g. a SQL or blob connection string) to the trace log which possibly exposes the data in an unwanted fashion (i.e. via log access or by hooking in a trace listener).

      • Anonymous commented  ·   ·  Flag as inappropriate

        Could not agree more. At least allow us to independently configure the tracing level of the CloudConfigurationManager trace messages so we can turn these off without disabling tracing globally.

      Feedback and Knowledge Base