0

I am not able to find the cpu utilization of an azurerm using azurerm python sdk.

Peter Pan
  • 23,476
  • 4
  • 25
  • 43
Ramani
  • 3
  • 1

1 Answers1

0

@Ramani, I don't know there are any APIs of Azure SDK for Python which can directly get the Azure VM CPU utilization data, even Azure REST APIs.

However, there is a way to help you getting the VM diagnostic data which includes CPU utilization, please see below.

  1. You need to refer to the article Microsoft Azure Virtual Machine Monitoring with Azure Diagnostics Extension to save the diagnostic data into Azure Table Storage if you are using Windows VM. For Linux VM, please see the article Use the Linux Diagnostic Extension to monitor the performance and diagnostic data of a Linux VM.
  2. Then, you can view the diagnostic data via the tool AzureStorageExplorer, and get these data using Python SDK for Azure Table Storage and filter the data you need.
Peter Pan
  • 23,476
  • 4
  • 25
  • 43
  • Thank you so much Peter Pan for the information. I will try the scenarios by following the above mentioned steps. – Ramani Jul 18 '16 at 03:23