Skip to content

xVMNetworkAdapter

dscbot edited this page Jun 4, 2022 · 1 revision

xVMNetworkAdapter

Parameters

Parameter Attribute DataType Description Allowed Values
Id Key String
Name Required String
SwitchName Required String
VMName Required String
MacAddress Write String
NetworkSetting Write xNetworkSettings
VlanId Write String
Ensure Write String Present, Absent
DynamicMacAddress Read Boolean

xNetworkSettings

Parameters

Parameter Attribute DataType Description Allowed Values
IpAddress Write String
Subnet Write String
DefaultGateway Write String
DnsServer Write String

Description

Manages VM net adapters attached to a Hyper-V virtual machine or the management OS.

Requirements

  • The Hyper-V Role has to be installed on the machine.
  • The Hyper-V PowerShell module has to be installed on the machine.