VMware Aria Automation Tools

 View Only
  • 1.  PowerShell Extensibility Action - Invoke-Command

    Posted Oct 26, 2023 05:27 PM

    Is it possible to use the use PowerShell Invoke-Command in a Extensibility Action PowerShell script  to execute commands on remote Windows instances. I have used Invoke-VMscript in the past against vCenter but looking at using Invoke-Command to Windows servers that are EC2 instances.

    Any examples?



  • 2.  RE: PowerShell Extensibility Action - Invoke-Command

    Posted Oct 26, 2023 07:20 PM


  • 3.  RE: PowerShell Extensibility Action - Invoke-Command

    Posted Oct 27, 2023 07:21 AM

    Hi,

    theoritically it is possible. In my experience it is very complex to create a secure communication between vRO and a Windows Server. I found it easier to create a PowerShell WebService on one Windows Server to repond to Webrequests and execute Powershell commands from there. If you follow that idea you have an Invoke-Command between Windows Servers which is much easier...

    Regards
    Robert



  • 4.  RE: PowerShell Extensibility Action - Invoke-Command

    Posted Oct 27, 2023 05:04 PM

    Thanks I will look into that.

    I thought ABX Actions run in a kubernetes container on the vRA Appliance and doesn't rely on remote vRO Powershell host.