none
AzureRMVMDatadisk to get the details of Data Disks attached to VM RRS feed

  • Question

  • 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 am getting the 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 no Get-Azurermvmdatadisk :( 

    Can anyone help please. 


    Bishmeet Singh

    • Moved by Bill_Stewart Wednesday, December 12, 2018 4:49 PM This is not "scripts on demand"
    Monday, August 13, 2018 12:42 PM

All replies