Is there a way to get both disk sizes and disk space used in azure?
I can use a query like this and get the percentage or mb used
InsightsMetrics
| where Origin == "vm.azm.ms"
and Namespace == "LogicalDisk" and Name == "FreeSpacePercentage"
| extend Disk=tostring(todynamic(Tags)["vm.azm.ms/mountId"])
| summarize Disk_Free_Space = avg(Val) by Computer, Disk, _ResourceId
| project Computer, Disk, Disk_Free_Space
And see disk sizes like this
resources
| where type == "microsoft.compute/disks"
| project properties['diskSizeGB']
But is there a way to see both size of disk and how much space is left?