Tests/Integration/MSFT_NetAdapterBinding.config.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$TestDisableIPv4 = [PSObject]@{
    InterfaceAlias = 'NetworkingDscLBA'
    ComponentId    = 'ms_tcpip'
    State          = 'Disabled'
}

configuration MSFT_NetAdapterBinding_Config {
    Import-DscResource -ModuleName NetworkingDsc

    node localhost {
        NetAdapterBinding Integration_Test
        {
            InterfaceAlias = $TestDisableIPv4.InterfaceAlias
            ComponentId    = $TestDisableIPv4.ComponentId
            State          = $TestDisableIPv4.State
        }
    }
}