Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to collect performance statistics on our Azure application. Up till now, our process has been to set up the roles with RDP enabled, connect, manually set up the performance counters, log out, and then deploy the app to the running roles.

Ideally I would like to have this perf config as a startup task in the .csdef I deploy with so that it happens automagically.

In trying to determine how to save and load a set of performance counters, I came across this article that recommends the lodctr utility:

The comments in the article though are making me leery about trying to use that tool.

share|improve this question

I later found these articles, which describe the process for setting up counters in the role OnStart() method, as well as deploying additional counters to a running deployment using PowerShell.

Setting Up Performance Counters In Your Azure Web and Worker Roles

Automated Performance Counter Injection in Windows Azure Roles

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.