[VMware Labs] Onyx for Web Client
If you don’t know Onyx, it is a Plugin to vCenter that can show you PowerShell commands of tasks you do using the GUI. Up to now Onyx was just available to vSphere C# Client. Now it can be used for Web client too!
Installation
- Download Onyx from here and extract it
- Start a PowerShell console and go to extracted file directory
- If neccesary change Execution Policy to at least RemoteSigned by running
Set-ExecutionPolicy RemoteSigned
in a PowerShell console as Administrator
- If neccesary change Execution Policy to at least RemoteSigned by running
- Start Installation by running
.\install.ps1
- Attention: the script will stop Web Client Service!
Using Onyx
After connecting to Web Client you can see new buttons next to search field on top. The red circle starts the recording of tasks that will be converted into PowerShell commands. The PowerShell Icon gets you to the Onyx scripting window. To use Onxy do
- Navigate as near as possibly to the task you want to export to PowerShell commands
- Start recording by pressing the red cycle button
- Do the task(s)
- Click the PowerShell button to jump to scripting window
- Press the Stop button on top of the window, then you see the recorded PowerShell commands.
Notes
- Onyx for Web Client is just available for vSphere Web Client Version 6.0.0 Build 2559277
- Onyx can also be installed in vCenter Appliance
- The installation replaces Web Client files of your installation. This could be a problem in future releases or upgrade of Web Client. So it is highly recommended to use Onyx just in test environments.
- Great Plugin!