Hi,
Im trying to enable VMResourceMetering for all VM's on a Windows Server 2012 R2 hyper-v host.
Using command:
get-vm | enable-VMResourceMetering
Some of the VM's report a failure when I'm running the command while some VM's will be successfully enabled with VMResourceMetering.
Does anyone have an idea why some fail? Is there any requirements for enabling resourcemetering?
Error Message:
enable-VMResourceMetering : The operation failed.A parameter that is not valid was passed to the operation.
At line:1 char:58
+ get-vm | enable-VMResourceMeteri ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (Microsoft.HyperV.PowerShell.VMTask:VMTask) [Enable-VMResourceMetering]
, VirtualizationOperationFailedException
+ FullyQualifiedErrorId : InvalidParameter,Microsoft.HyperV.PowerShell.Commands.EnableVMResourceMeteringCommand