You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Details of the scenario you tried and the problem that is occurring
Running Get-DscConfiguration returns error:
"Get-DscConfiguration : The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The Name key is not a valid property in the corresponding DSC resource schema file. The results from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable
must be the same as the properties in the corresponding DSC resource schema file."
Verbose logs showing the problem
DSC Operational Log Event: 4097 shows...
Resource Id is [NetAdapterAdvancedProperty]Adapter1-SRIOV and Source Info is .ps1::205::25::NetAdapterAdvancedProperty. Error Message is The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The Name key is not a valid property in the corresponding DSC resource schema file. The results from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the same as the properties in the corresponding DSC resource schema file..
Suggested solution to the issue
Rather than return $result.Name which is not defined in the schema, return $result.NetworkAdapterName
Details of the scenario you tried and the problem that is occurring
Running Get-DscConfiguration returns error:
"Get-DscConfiguration : The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The Name key is not a valid property in the corresponding DSC resource schema file. The results from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable
must be the same as the properties in the corresponding DSC resource schema file."
Verbose logs showing the problem
DSC Operational Log Event: 4097 shows...
Resource Id is [NetAdapterAdvancedProperty]Adapter1-SRIOV and Source Info is .ps1::205::25::NetAdapterAdvancedProperty. Error Message is The PowerShell DSC resource returned results that are not valid from Get-TargetResource. The Name key is not a valid property in the corresponding DSC resource schema file. The results from Get-TargetResource must be in a Hashtable format. The keys in the Hashtable must be the same as the properties in the corresponding DSC resource schema file..
Suggested solution to the issue
Rather than return $result.Name which is not defined in the schema, return $result.NetworkAdapterName
The DSC configuration that is used to reproduce the issue (as detailed as possible)
# insert configuration here
The operating system the target node is running
Version and build of PowerShell the target node is running
Version of the DSC module that was used ('dev' if using current dev branch)
Master - 6.2.0.0
The text was updated successfully, but these errors were encountered: