Examples/Resources/cVMNetworkAdapterSettings/VMNetworkAdapterSettingsVMMultiple.Example.ps1

Configuration VMAdapterSettings
{
    Import-DscResource -ModuleName cHyper-V -Name cVMNetworkAdapterSettings
    Import-DscResource -ModuleName PSDesiredStateConfiguration

    cVMNetworkAdapterSettings VMAdapterSettings01 {
        Id = 'Management-NIC'
        Name = 'Management-NIC'
        VMName = 'DHCPVM01'
        SwitchName = 'SETSwitch'
        DhcpGuard = 'On'
        DeviceNaming = 'On'
    }

    cVMNetworkAdapterSettings VMAdapterSettings02 {
        Id = 'App-NIC'
        Name = 'App-NIC'
        VMName = 'DHCPVM01'
        SwitchName = 'SETSwitch'
        DeviceNaming = 'On'
    }
}