Skip to content

WaitForNetworkTeam

dscbot edited this page Jun 7, 2024 · 4 revisions

WaitForNetworkTeam

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String Specifies the name of the network team to wait for.
RetryIntervalSec Write UInt32 Specifies the number of seconds to wait for the network team to become available.
RetryCount Write UInt32 The number of times to loop the retry interval while waiting for the network team.

Description

The resource is used to wait for a network team to achieve the 'Up' status.

Examples

Example 1

Creates the switch independent Network Team 'HostTeam' using the NIC1 and NIC2 interfaces. It sets the load balacing algorithm to 'HyperVPort'. The config will then wait for the 'HostTeam' to achieve the 'Up' status.

Configuration WaitForNetworkTeam_AddNetworkTeam_Config
{
    Import-DSCResource -ModuleName NetworkingDsc

    Node localhost
    {
        NetworkTeam AddNetworkTeam
        {
            Name                   = 'HostTeam'
            TeamingMode            = 'SwitchIndependent'
            LoadBalancingAlgorithm = 'HyperVPort'
            TeamMembers            = 'NIC1', 'NIC2'
            Ensure                 = 'Present'
        }

        WaitForNetworkTeam WaitForHostTeam
        {
            Name      = 'HostTeam'
            DependsOn = '[NetworkTeam]AddNetworkTeam'
        }
    }
}