Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vCAC 5.2 MachineProvisioned Powershell - PowerCLI error

$
0
0

Hi

 

I've been running a powershell script as part of the machinedprovisioned stage successfully for a while, I now need to run some PowerCLI commands against vCenter, im hitting some issues, ive got PowerCLI installed on the DEM worker Windows server, and that works ok manually, I've also logged in under the context of the service account that powershell/DEM worker runs against and that's ok too, but when I run a VM deploy im getting errors, specifically :

 

Workflow "WFStubMachineProvisioned" failed with the following exception: A requested PowerCLI component was not found on the local system: VMware.VimAutomation.ViCore.Cmdlets

 

I've got Add-PSSnapin VMware.VimAutomation.Core in the script and also tried adding it into a profile.ps1 script in the powershell config folder, but that also doesn't really help.

i.e.

 

$VMCore = Get-PSSnapin VMware.VimAutomation.Core -EA 0

if ( -not $VMCore ) { Add-PSSnapin VMware.VimAutomation.Core }

 

 

Some times the error doesn't occur, when I run multiple VM deploys in parallel, then it always occurs, one VM deploys but the others fail and delete.

 

any ideas?


Viewing all articles
Browse latest Browse all 9859

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>