dscr-for-vmware
dscr-for-vmware copied to clipboard
LCM DebugMode set to ForceModuleImport causes errors
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?
I will investigate it so we can find the root cause of the problem.