Skip to content
This repository was archived by the owner on Jan 20, 2026. It is now read-only.
This repository was archived by the owner on Jan 20, 2026. It is now read-only.

StandardPortGroup needs Teaming Configuration #338

@marcohald

Description

@marcohald

Describe the bug

According to the Docs it is not needed to specify any Teaming configuration to a StandardPortGroup

If I don't do this I receive the Error

AUSFÜHRLICH: [controller]:                            [[VMHostVssPortGroupTeaming]VMHostVssPortGroupTeaming::[StandardPortGroup]StandardPortGroup_san] 19.05.2025 09:48:37	Get-VirtualPortGroup	Finished execution
AUSFÜHRLICH: [controller]:                            [[VMHostVssPortGroupTeaming]VMHostVssPortGroupTeaming::[StandardPortGroup]StandardPortGroup_san] 19.05.2025 09:48:37	Get-NicTeamingPolicy	Finished execution
AUSFÜHRLICH: [controller]: LCM:  [ BeendenFestlegen]  [[VMHostVssPortGroupTeaming]VMHostVssPortGroupTeaming::[StandardPortGroup]StandardPortGroup_san]  in 3.1420 Sekunden.
Die PowerShell DSC-Ressource "VMware.vSphereDSC" konnte die Funktion "Set" nicht ausführen. Fehlermeldung: "Cannot update Teaming Policy of Virtual Port Group san. For more information: Please specify at least one parameter." 
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : localhost
 
AUSFÜHRLICH: [controller]: LCM:  [ BeendenFestlegen]
Die Funktion 'SendConfigurationApply' war nicht erfolgreich.
    + CategoryInfo          : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
    + FullyQualifiedErrorId : MI RESULT 1
    + PSComputerName        : localhost
 

Reproduction steps

  1. Try to create a StandardPortGroup wit this Config

Configuration vmk_portgroup {
    Import-DscResource -ModuleName VMware.vSphereDSC

    Node $AllNodes.NodeName {
        foreach ($vmHostName in $AllNodes.VMHostNames) {

            VMHostPhysicalNic 'VMHostPhysicalNic_vmnic5' {
                Server = $AllNodes.Server
                Credential = $AllNodes.Credential
                VMHostName = $vmHostName
                Name = 'vmnic5'
                BitRatePerSecMb = 10000
                Duplex = 'Full'
            }


            StandardSwitch 'StandardSwitch_san' {
                Server = $AllNodes.Server
                Credential = $AllNodes.Credential
                VMHostName = $vmHostName
                Name = 'san'
                Ensure = 'Present'
                Mtu = 1500
                NicDevice = @('vmnic5')
                BeaconInterval = 1
                LinkDiscoveryProtocolType = 'CDP'
                LinkDiscoveryProtocolOperation = 'Listen'
                AllowPromiscuous = $false
                ForgedTransmits = $false
                MacChanges = $false
                Enabled = $false
                CheckBeacon = $false
                ActiveNic = @('vmnic5')
                StandbyNic = @()
                NotifySwitches = $true
                Policy = 'Loadbalance_srcid'
                RollingOrder = $false
                DependsOn = '[VMHostPhysicalNic]VMHostPhysicalNic_vmnic5'
            }



            StandardPortGroup 'StandardPortGroup_san' {
                Server = $AllNodes.Server
                Credential = $AllNodes.Credential
                VMHostName = $vmHostName
                Name = 'san'
                VssName = 'san'
                Ensure = 'Present'
                #InheritFailback = $true
                DependsOn = '[StandardSwitch]StandardSwitch_san'
            }

        }
    }
}

vmk_portgroup -ConfigurationData $configurationData  -Verbose
  1. If InheritFailback = $true is uncommented it works
    ...

Expected behavior

It should not necessary to provide any Failover Information as described in the Docs here https://github.com/vmware/dscr-for-vmware/wiki/StandardPortGroup

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions