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
I am using the NewFile example in the docs. If the module containing the DSC resources is changed from RootModule to NestedModules then Get-DscResource will not return the module's resources.
A class-based DSC Resource is defined as a PowerShell class in a module file (.psm1). The class-based DSC Resource doesn't have special requirements for where it's defined. You can define it:
Name Value
---------
PSVersion 7.3.3
PSEdition Core
GitCommitId 7.3.3
OS Microsoft Windows 10.0.19044
Platform Win32NT
PSCompatibleVersions {1.0,2.0,3.0,4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Version
3.0-beta1
Visuals
No response
The text was updated successfully, but these errors were encountered:
Prerequisites
Steps to reproduce
I am using the NewFile example in the docs. If the module containing the DSC resources is changed from
RootModule
toNestedModules
thenGet-DscResource
will not return the module's resources.The docs mention that this is a valid configuration: Class-based resources
Expected behavior
# resources are returned
Actual behavior
# resources are not returned
Error details
No response
Environment data
Version
3.0-beta1
Visuals
No response
The text was updated successfully, but these errors were encountered: