vmware / dscr-for-vmware

The Repository contains Microsoft PowerShell Desired State Configuration (DSC) Resources for managing VC and ESXi settings.
Other
140 stars 41 forks source link

error running start-vmwdscconfiguration #325

Closed harrezzebra closed 3 years ago

harrezzebra commented 3 years ago

I'm using visual studio code and powershell version 7.1.3, getting below error

VERBOSE: Invoking DSC Resource with id: [Datacenter]ENG_ACTON Exception: C:\Windows\System32\WindowsPowerShell\v1.0\Modules\VMware.PSDesiredStateConfiguration\1.0.0.16\Classes\Public\DscConfigurationRunner.ps1:203:13 Line | 203 | throw $dscResourceErrorMessage | ~~~~~~ | Set method of Datacenter DSC Resource failed with the following | error: The term 'Invoke-DscResource' is not recognized as a name of a | cmdlet, function, script file, or executable program. Check the | spelling of the name, or if a path was included, verify that the path | is correct and try again.

jatinpurohit92 commented 3 years ago

https://github.com/vmware/dscr-for-vmware/blob/master/VMware.PSDesiredStateConfiguration.md Please check this out.

Have you enabled the experimental feature?

harrezzebra commented 3 years ago

working after enabling experimental feature. thanks