Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8709761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:26:44+00:00 2026-06-13T04:26:44+00:00

I spent entire day trying to set up Windows Azure Diagnostic module. I set

  • 0

I spent entire day trying to set up Windows Azure Diagnostic module.
I set up WAD using diagnostics.wadcfg for both worker and web role. This wadcfg file properly copying to bin folders. This is my wadcfg files for WorkerRole and WebRole (links for more clear question). For diagnostic configuration initialization I use very simple and generic call: just

DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");

in WorkerRole’s and WebRole’s (both classes – descendants of RoleEntryPoint) OnStart()

Connection string set up properly, both role sections in Service configuration contains LocalResource section

<LocalResources>
    <LocalStorage name="DiagnosticStore" sizeInMB="5000" cleanOnRoleRecycle="false"/>
</LocalResources>

Unfortunatey this not working as I expecting: no IIS logs shipped, no Custom directory content shipped to blobs, perfomance counters and WindowsEventLogs once shipped properly, but then halted (no more rows added since few initial shippings)

Also wad-control-container have pretty strange xml configuration for both roles: WorkerRole and WebRole.

What I’m missing and what the proper way to initialize Diagnostic via diagnostics.wadcfg ?

Why stored configuration so different from diagnostics.wadcfg format?

Should I run DiagnosticMonitor.SetCurrentConfiguration() after monitor initialization to store current configuration in Blob?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T04:26:45+00:00Added an answer on June 13, 2026 at 4:26 am

    If you want to use the diagnostics.wadcfg (my preferred method for role instance defaults), then you should strip all the code out of your OnStart(). There is actually no reason to call Start anymore if you are just passing defaults. The agent will automatically start with defaults even if you did nothing (assuming you include the plugin).

    Also, there is no reason to set the LocalResource anymore either unless you specifically need more than 4GB of disk quota space. In that case, you can set a larger value. By default, the Diagnostics agent will assign itself 4GB of a local resource.

    To use the diagnostics.wadcfg, simply mark it as content or copy local (make sure it gets packaged). It needs to be at the root of the worker role (next to Worker.cs) or in the bin directory for a web role. Assuming you have configured it correctly, it will use those values as the defaults if it does not already find a configured set of values in blob storage.

    Three notes:

    1. You cannot use custom performance counters here (unless they are already installed on the machine). The agent runs before most startup scripts that would install custom counters, so if you configure custom counters in the diagnostics.wadcfg, you are too early and it will fail.
    2. Be careful with your quota numbers. Stuff will fail if you accidentally assign a total of more than 4GB to your data sources (unless you change the quota limit).
    3. Diagnostics.wadcfg is used as the last default. If you set a value (which you are doing programmatically), it will use that first. If it finds a value already in blob storage (think reboot), it will use that. It only works when nothing has been set – no defaults already exist.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so i've spent the entire day trying to figure this one out- but
I've spent the entire day trying to work out what my mod_rewrite rules should
I have spent the entire day trying to get this code snippet to work:
About a month a go I spent almost an entire week trying to figure
Possible Duplicate: Validating a form with overloaded init I've spent the entire afternoon trying
Every time I set up a Magento store I must spend an entire day
Spent a solid hour trying to sort out why on earth this (coffeescript) $.ajax
Have spent an hour trying to solve this - but to no avail. I'm
I spent a month writing an elaborate payment system that handles both credit card
Sorry to be posting this question. :( But I have spent almost the entire

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.