Azure / Microsoft.AVS.Management

AVS PowerCLI based Automation Tools for Administrators
MIT License
11 stars 20 forks source link

Capture and Reuse VC Connection Session #226

Closed fprinvil-ms closed 10 months ago

fprinvil-ms commented 10 months ago

Problem

The scriptUser session was being used to retrieve HCX vm information and it's role does have the priviledge to turn on/off the VM.

Solution

Using the tempUser session with VC to retrieve the HCX vm information and pass that to subsequent function calls. I have read the contributor guidelines and have completed the following: