Using measure-vm to plan iops requirements
Measure-vm is a fantastic way to measure the amount of IOPS any VM is using/requires to operate. I use it to plan the amount of IOPS new storage systems will require for Hyper-V clusters.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | $VMName = "DC1" #Enable Hyper-V Resource Monitoring Enable-VMResourceMetering -VMName $VMName $RunTime = 0 Start-VM –Name $VMName while ($RunTime -lt 30) { write-Host "Test $RunTime" get-vm $VMName | measure-VM |select AggregatedAverageNormalizedIOPS | Format-List | Out-File "IOPS.txt" -Append -NoClobber $RunTime++ Start-Sleep -Milliseconds 20000 } Stop-VM –Name $VMName |