powercli mount name already in use
We've upgraded our vCenters to 6.5 which now requires us to upgrade powercli as the old 6.3 version is no longer supported and can't work with the newer vm hardware versions(version 13).
So we are using v11 of powercli and it no longer supports using the add-snapin method which is fine. But we've run into an issue using the import-module command with it.
From what I've read it 'seems' like OO is using a single appdomain for a flow run so on the first powershell operation thats run its fine but any subsequent ones error out with
import-module : The specified mount name 'vis' is already in use.
Running get-psdrive I can see that the mount is already in use. I played around a bit and found that I could remove the mounts at the end of a powershell script but that seems a little excessive.
Any other ideas on how we could go about this?
using the powershell operation, import the powercli module 'vmware.vimautomation.core', do something then in a subsequent operation within the flow do the same thing and it will error out during the import module command.