You have a Hyper-V host that runs Windows Server 2016. The host contains a virtual machine named VM1.
VM1 has resource metering enabled.
You need to use resource metering to track the amount of network traffic that VM1 sends to the 10.0.0.0/8 network.
Which cmdlet should you run?
A. Add-VMNetworkAdapteiAd
B. Set-VMNetworkAdapter
C. New-VMResourcePool
D. Set-VMNetworkAdapterRoutingDomamMapping
It should be answer (A) Add-VMNetworkAdapterACL
Source:
https://docs.microsoft.com/en-us/powershell/module/hyper-v/add-vmnetworkadapteracl?view=win10-ps
Example:
PS C:\> Get-VMNetworkAdapter -VMName Redmond | Add-VMNetworkAdapterAcl -RemoteIPAddress 192.168.0.0/16 -Direction Outbound -Action Meter
Is it B? I think should be A bcoz Q mentioned “VM1 has resource metering enabled” so next is need to configure NetworkAdapterACls to track based on IP range.
Plz correct me.
is the key the -PortMirroring Destination
than B is right
Set-VMNetworkAdapter -VMName Bellevue -Name PM_Dest -PortMirroring Destination
https://docs.microsoft.com/en-us/powershell/module/hyper-v/set-vmnetworkadapter?view=win10-ps
Answer A
If resource metering is enabled but no NetworkAdapterAcls are configured, Hyper-V configures them to measure total network traffic. To measure network traffic through an IP range, configure the NetworkAdapterAcls for the IP range before calling this cmdlet. (See Add-VMNetworkAdapterAcl for more information.)
Is this answer correct? Shouldn’t it be A-Add-VMNetworkAdapterAcl?