Azure PowerShell check remaining data disk space for VM
Azure PowerShell is not providing a facility to check the remaining data disk space from the remote PowerShell after login to the azure account.
Example –
((get-azurermvm -resourcegroupname “rgname” -name “vmname”).StorageProfile).DataDisks #FROM THIS WE CAN GET THE DISK NAMES AND TOTAL SPACE BUT no remaining space in the data disks.

1 comment
-
Vien LE commented
Even it is running with the new Azure powershell like this: ((Get-Azvm -resourcegroupname "TestingResources" -Name "AutoTestServer").StorageProfile).OSDisk
It's still no free space percentage.