Install-Module VMware.PowerCLI -Scope CurrentUserī. Download Open a Windows PowerShell (Admin) console and run the following command. Be sure to visit the VMware PowerCLI Community Repository site on GitHub periodically to get new functions and consider contributing your own. These functions allow you to easily interact with pools, farms, and desktops without having to write scripts from scratch. To get you started quickly, the Horizon 7 team has put together a set of functions that cover common operations. To make exploring the data objects and methods of interacting with them easier, VMware has created a new Developer Center online API Explorer, a unified interface for all API documentation across the VMware stack. The View API is used by the Horizon Console for configuration, administration, and monitoring, so we are now exposing programmatic access to all the functionality available in the console. The View API is a web service and is available from any Connection Server within a Horizon Pod. To accompany the new VMware PowerCLI module, there is also public View API Reference Documentation for Horizon 7 and access to the full public View API. For example, you can write a script to get a list of datastores from a vCenter Server inventory and use that information to select the best datastores on which to create a pool. You can also easily build federated scripts across VMware assets. This allows you to connect and run VMware PowerCLI scripts for Horizon 7 from remote workstations or servers, such as an administrator’s desktop, using different credentials. Importantly, this functionality provides a convenient way to access the full View API and all the capabilities available through the Horizon Console. These cmdlets allow you to connect and disconnect from the View API service. With the VMware PowerCLI Horizon 7 functionality, we actually get three things: the Horizon 7 PowerCLI module itself, 100 percent access to the View API with online documentation, and a set of advanced functions released on GitHub.Įven though the Horizon 7 module contains only two cmdlets, they are extremely useful. VMware PowerCLI has integrated PowerShell support for VMware Horizon 7 to allow for programmatic control and automation through the View API. If you are running VMware Horizon 8, please read this blog. This blog was originally published in January 2017 and updated in January 2020.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |