Horizon 7 Powercli

Is there a doc for all horizon 7 cmdlets out there?

I need to automate a very time consuming task. I have inherited a large horizon environment with dedicated pools with persistent disks.

I need to automate the detach and re-attach of the persistent disks via Horizon API.  there is no way of passing objects in connect-vserver to connect-hvserver.

it is easy to attach vmdk files within vcenter for 1000 VMs but cannot find a way to reattach 1000 persistent disks within horizon

any suggestion would be fantastic.

0 Kudos
1 Reply

The Horizon module itself only has 3 cmdlets, as you can check with

Get-Command -Module VMware.VimAutomation.HorizonView

There is a 'helper' module, named VMware.Hv.Helper, available on the PowerCLI repo.

In there are several functions (currently 37) that are a kind of wrappers around the View API.

Some of the functions in there have help pages, others don't.

This module is community-driven, you can create an 'issue' on the repo if you have a specific question/request.

There is an introductory blog post, see Getting Started with PowerCLI for Horizon View.

And several user posts that describe how to use and what is available:

Quick Guide to the Horizon 7 API with VMware PowerCLI

Automating VMware Horizon 7 with VMware PowerCLI 6.5

And Wouter, an active contributor to the Helper module, has a series of blog posts on the subject.

Blog:  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos