0

We're trying to get the cpu percentage,disk read throughput,etc programmatically using powershell commands for metrics in azure but we are not able to get any of the commands according to new release.

1 Answer 1

1

First of all are you trying to get performance details from Web/Worker Role or New preview release of Windows Azure Virtual Machines?

With Windows Azure Virtual Machine:

You have full access to your Azure VM and configure it the way you would do in any remote VM and the get the performance data out of it. With Windows Azure Virtual Machine if you want to get Performance data from Powershell you would need to do the following:

  1. Configure to Azure VM to have PowerShell Remote Access
  2. Configure Azure VM port settings so you can connect from on-premise machine (this is must and you should know that open port will open connection to VM outside)
  3. Configure Azure VM to collect performance data
  4. Connect from your on-premise machine using PowerShell and collect performance data

You can find several resources on Internet to do above task.

With Web/Worker Role:

Even when you are using new Powershell cmdlets with Windows Azure, older commands are still accessible and working as expected. To get Performance metrics from Azure Here are some resources for your to try:

  1. Windows Azure Diagnostics and PowerShell – Performance Counters: Part 1 | Part 2
  2. How To Easily Enable Windows Azure Diagnostics Remotely
Sign up to request clarification or add additional context in comments.

1 Comment

I am working with virtual machines and we are not using any roles. And trying it programmatically by invoking powershell commands in C#...So please provide us some suggestions and the powershell commands for the metrics...waiting 4 reply

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.