-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't import a specific resource #47
Comments
@jdhitsolutions What is your full PowerShell/WMF version? |
|
I still think there is something funky with DSC and PSDscResources and PSDesiredStateconfiguration. If I try to use this in a config:
I still get this error:
Even running the config in new PowerShell session with no profiles. |
So you aren't importing PSDscResources in your config and this error is still showing up? This is similar to #43 |
I get errors whether I import it or not. I have tried numerous combinations and the only thing that works is to uninstall PSDscResources. It looks like xPSDesiredStateConfiguration is automatically imported whether you specify it or not and I wonder if that is trying to automatically load something else. So I see two symptoms here and they may be related. 1 - You can't import a resource by name. 2 - PowerShell reports resource name conflicts between this module and PSDesiredStateConfiguration. |
Fine -- if you want to close this but even after looking at #43 I don't think you've really addressed this issue. I'll come up with a set of steps to repro and and re-post an issue. |
Sorry didn't mean to do that |
Does importing PSDscResources by itself even work? |
@jdhitsolutions Where is your version of WMF coming from? I am using 5.1.14409.1005 (the newest version I know of that you can download here) and I can also confirm that it works on 5.1.14393.693 which I have on a test box. Since your version is 5.1.15055.0 I would expect it to be newer than the versions I have. However, the version of WMF 5.1 that went out as the 'WMF 5.1 Preview' was something like 5.1.14394.0 which looks newer than 5.1.14393.693 but was actually from a different branch of code that didn't have the right DSC engine bug fix yet so it was actually older code. |
@jdhitsolutions Are you on Windows Server 2016/Windows 10? |
@jdhitsolutions Is this WMF from an Insider build? |
@jdhitsolutions Aha! This is the latest Windows Insider build that was released last week. I have opened this bug with DSC. I am marking this bug as external for now since there is nothing I can do in this repository/module to fix this. |
Ok. I'll try to test with another Win10 client that isn't on the Insider Build ring or 5.1 on Windows 8.1 |
I guess life in the fast lane has its ups and downs. Got a new build last night and re-running the same configs now works as expected without any of the errors I reported.
And this was with v2.5 of the module installed. |
converting files to UTF-8 and updating module paths
I am finding this module challenging to use since there are naming conflicts with PSDesiredStateconfiguration. But for now I am trying to use this in a DSC Configuration
But both the ISE and VSCode give me an error that the resource can't be found. I know the syntax is correct because this line parses correctly.
The text was updated successfully, but these errors were encountered: