Extract historical data of disk space utilization in Azure Windows VM

Justine Paul Padayao 21 Reputation points
2022-09-29T08:14:15.817+00:00

As the title says,

Is there a way to extract historical data of disk space utilization in Azure Windows VM?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,015 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
668 questions
0 comments No comments
{count} votes

Accepted answer
  1. KarishmaTiwari-MSFT 20,772 Reputation points Microsoft Employee Moderator
    2022-09-30T04:24:33.757+00:00

    Hi @Justine Paul Padayao , Thanks for posting your query on Microsoft Q&A.

    Yes, you can see the historical data of disk space utilization in Azure Windows VM.

    1. In the Azure portal, select Virtual Machines.
    2. From the list, choose a VM and in the Monitoring section choose Metrics.

    You can query for historical time ranges of up to 30 days using the Time Range selector and can download to excel as shown in the image below.

    246344-image.png

    There are various disk related metric options available in the Metric dropdown.

    246270-image.png

    You can also go to Insights under Monitoring section and select the Performance Tab.
    VM insights monitors key operating system performance indicators related to processor, memory, network adapter, and disk utilization. It has Logical Disk Space Used % - defaults showing the average and 95th percentile.

    246250-image.png

    Following are limitations in performance collection with VM insights:

    • Metrics are only available for data disks on Linux virtual machines using XFS filesystem or EXT filesystem family (EXT2, EXT3, EXT4).
    • Logical Disk Space Used % - shows the top five machines with the highest average disk space used % across all disk volumes.

    If you are interested in a view of all monitored VMs deployed across workgroups in your subscriptions or in your environment, then you can use the Multi-VM perspective from Azure Monitor as described in detail in this document :
    https://learn.microsoft.com/en-us/azure/azure-monitor/vm/vminsights-performance#multi-vm-perspective-from-azure-monitor

    Few other resources you might find helpful:
    https://stackoverflow.com/questions/71296546/is-there-a-way-see-used-disk-space-with-the-actual-disk-size-of-the-vms-in-a-spe
    https://squaredup.com/blog/how-to-visualize-free-disk-space-available-in-azure/

    ----------

    If this answers your query, click “Accept the answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let me know in the comments.

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Justine Paul Padayao 21 Reputation points
    2022-09-30T07:08:57.007+00:00

    Thank you @KarishmaTiwari-MSFT !

    Is the 30-day limit on the amount of data we may extract a restriction? Is there a way to collect data for longer than that period?

    0 comments No comments

  2. Charbel Nemnom 0 Reputation points
    2023-04-17T09:31:20.66+00:00

    Hello @Justine Paul Padayao ! Yes, of course, you can get the data longer than 30 days, you need to set the Log Analytics workspace Data Retention for more than 30 days... up to 730 days if you want. Hope it helps! Best, -Charbel

    If this answers your query, click “Accept the answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further queries do let me know in the comments.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.