It’s a good suggestion to watch your Hyper-V VMs to get an summary of the place assets are being consumed. Microsoft sadly doesn’t provide a lot on this space, that is quite left to different third occasion corporations. Nonetheless, we are able to see just a little bit how our VMs are doing. Let’s get began instantly!
Allow-VMResourceMetering
We want the Allow-VMResourceMetering cmdlet for this. And a check VM. The configuration is simple and we are able to begin instantly.
Word that Useful resource Metering is disabled by default!
Open PowerShell and verify if metering is enabled.
Get-VM | Choose-Object -Property Title,ResourceMeteringEnabled
If you happen to didn’t allow it manually, your output will appear to be mine.
Subsequent, I’ll present an instance of the way to allow useful resource metering after which retrieve the information.
Get-VM 'SC01.pagr.inet' | Allow-VMResourceMetering
Get-VM 'SC01.pagr.inet' | Measure-VM
Now you might have an summary what number of assets the VM consumes.
Remember that useful resource metering consumes assets on the Hyper-V host and you might wish to disable this characteristic after a while.
Get-VM 'Server001' | Disable-VMResourceMetering
You could have now seen the way to allow metering for VMs.
Revealed by