dscr-for-vmware icon indicating copy to clipboard operation
dscr-for-vmware copied to clipboard

LCM DebugMode set to ForceModuleImport causes errors

Open lucdekens opened this issue 6 years ago • 1 comments

When setting the LCM parameter DebugMode to ForceModuleImport, a configuration based on VMware.vSphereDsc resources fails with the errors

The specified mount name 'vis' is already in use.
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : NewDriveProviderException,Microsoft.PowerShell.Commands.ImportModuleCommand
    + PSComputerName        : localhost

The specified mount name 'vmstores' is already in use.
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : NewDriveProviderException,Microsoft.PowerShell.Commands.ImportModuleCommand
    + PSComputerName        : localhost

This DebugMode setting is useful when writing new DSC resources. Other PS modules that provide PSDrives do not show this behaviour.

Can these errors be avoided? Can the mounts be made more intelligent in order to not get these errors?

lucdekens avatar Feb 08 '19 11:02 lucdekens

I will investigate it so we can find the root cause of the problem.

SimeonGerginov avatar Jul 19 '19 08:07 SimeonGerginov