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.