Skip to content
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

PSv7 and VMware.vSphereDSC and Get-DscResource #274

Open
lucdekens opened this issue Aug 31, 2020 · 3 comments
Open

PSv7 and VMware.vSphereDSC and Get-DscResource #274

lucdekens opened this issue Aug 31, 2020 · 3 comments
Labels
bug Something isn't working question Further information is requested

Comments

@lucdekens
Copy link
Contributor

While trying to use the Invoke-DscResource cmdlet on a Linux box, I noticed that the resources for one reason or another are not found.

On PSv7 on a Windows box the Get-DscResource cmdlet only lists the composite resources (3).
On a Linux box (Ubuntu & Photon) with PSv7, the Get-DscResource cmdlet returns nothing.

According to PowerShell issue#10350 the Get-DscResource cmdlet should return class-based resources.

Is this a known issue?
Anything specific to VMware.vSPhereDSC?

@KristiyanGK
Copy link
Contributor

We are currently looking into this issue and researching it.

@lucdekens
Copy link
Contributor Author

Btw, the Invoke-DscResource cmdlet also has issues in PSv5.1.

With the composite resources it errors out with

Invoke-DscResource : Failed to serialize properties into CimInstance.

which is an old known issue. See Invoke-DSCResource on WindowsFeatureSet fails.

And with non-composite resources it errors out with

The PowerShell DSC resource VMHostRole from module <VMware.vSphereDSC,2.1.0.58> does not exist at the PowerShell
module path nor is it registered as a WMI DSC resource.

All in all, it looks as if Invoke-DscResource is a no-go for now.

@SimeonGerginov
Copy link
Contributor

@lucdekens the issue seems to be the same as the one described here. We've verified the workaround provided there: To comment FunctionsToExport and it works as expected on PSv7 on a Windows box.

Can you confirm that it works as well on your boxes ?

@SimeonGerginov SimeonGerginov added this to the 2.2-Consider milestone Sep 3, 2020
@SimeonGerginov SimeonGerginov added bug Something isn't working question Further information is requested labels Sep 3, 2020
@SimeonGerginov SimeonGerginov removed this from the 2.2-Consider milestone Jan 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants