VMware Cloud Community
MsafiriKool
Contributor
Contributor

Cloud Assembly PowerShell scripts

I am using vRA 8.2 Cloud Assembly to execute Windows scripts on the provisioned VM, but not working. When I run the same script on the provisioned node it work fine.

 

below is how I am calling the script 

& "D:\sccmclient\sccm-install.ps1"

and below is the error log 

"script":"& \"D:\\sccmclient\\sccm-install.ps1\"\n sleep: 300\n"}
ERRORInvoke-VMScript : 11/25/2020 18:02:19 Invoke-VMScript SSPI is not supported on Unix OS.
ERRORAt /run/vco-polyglot/function/handler.ps1:14 char:15
ERROR+ ... $result = Invoke-VMScript -VM $vm -ScriptText $script -GuestUser $r ...
ERROR+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ERROR+ CategoryInfo : NotSpecified: (:) [Invoke-VMScript], ViError
ERROR+ FullyQualifiedErrorId : Client20_ClientSideTaskImpl_ThreadProc_UnhandledException,VMware.VimAutomation.ViCore.Cmdlets.Commands.InvokeVmScript
ERROR

0 Kudos
2 Replies
Rahul418282
Contributor
Contributor

How you are triggering the script? is it via cloudConfig or ABX ?

0 Kudos
mcity
Contributor
Contributor

via ABX

0 Kudos