0

I am trying to get the details for Data Disk attached to the particular VM. The Main purpose is to get notified when the disk space is highly utilized.

I can get the names of Data disks attached to the VM using below command, but not getting the details like Disk Size,Space allocated/Remaining disk space etc.

((get-azurermvm -resourcegroupname $vm.resourcegroupname -name $vm.name).StorageProfile).DataDisks

There is New-Azurermvmdatadisk, Set-Azurermvmdatadisk, but not something like Get-Azurermvmdatadisk

Can anyone help please how i can get the data disk details.

0

The existing cmdlets for Azure Compute will retrieve the MAX size of the data disk, but not the ACTUAL used size. I had raised a case with Microsoft and learned that this feature is not available yet. This is why we use monitoring solutions like OMS, datadog etc, that deploy their agents inside the Virtual Machine to pull detailed information like the one you asked.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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