Skip to content

NetBios resource failing for Azure VMs with Accelerated Networking enabled #521

@fongendnv

Description

@fongendnv

Problem description

When enabling Accelerated networking the NetBios resource will detect a NetAdapter Mellanox which is not IP Enabled. In module 9.0.0, it will write to registry if IPEnabled = false, but the resource fails with the following error record:
"ErrorRecord": "Cannot find path \u0027HKLM:\SYSTEM\CurrentControlSet\Services\NetBT\Parameters\Interfaces\Tcpip_{3457DBDB-ED8E-448C-8BAE-525091A1FD48}\u0027 because it does not exist."

Verbose logs

"ErrorRecord":  "Cannot find path \u0027HKLM:\\SYSTEM\\CurrentControlSet\\Services\\NetBT\\Parameters\\Interfaces\\Tcpip_{3457DBDB-ED8E-448C-8BAE-525091A1FD48}\u0027 because it does not exist."

DSC configuration

NetBios DisableNetBios
          {
               InterfaceAlias = '*'
               Setting        = 'Disable'
          }

Suggested solution

No, but I am hoping the gurus here have.

Operating system the target node is running

OsName               : Microsoft Windows Server 2019 Datacenter
OsOperatingSystemSKU : DatacenterServerEdition
OsArchitecture       : 64-bit
WindowsVersion       : 1809
WindowsBuildLabEx    : 17763.1.amd64fre.rs5_release.180914-1434
OsLanguage           : en-US
OsMuiLanguages       : {en-US}

PowerShell version and build the target node is running

Name                           Value                                                                                                                                                          
----                           -----                                                                                                                                                          
PSVersion                      5.1.17763.2931                                                                                                                                                 
PSEdition                      Desktop                                                                                                                                                        
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                                                                                        
BuildVersion                   10.0.17763.2931                                                                                                                                                
CLRVersion                     4.0.30319.42000                                                                                                                                                
WSManStackVersion              3.0                                                                                                                                                            
PSRemotingProtocolVersion      2.3                                                                                                                                                            
SerializationVersion           1.1.0.1

NetworkingDsc version

Name          Version Path                                                                             
----          ------- ----                                                                             
NetworkingDsc 9.0.0   C:\Program Files\WindowsPowerShell\Modules\NetworkingDsc\9.0.0\NetworkingDsc.psd1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions