Working with vSphere folders
In a VMware vSphere environment, you can use folders to organize your infrastructure. In the vSphere web client, you can create folders in the Hosts and Clusters
, VMs and Templates
, Storage
, and Networking
inventories. The following screenshot shows an example of folders in the VMs and Templates
inventory:
You can browse through these folders using the PowerCLI Inventory Provider. PowerCLI also has a set of cmdlets to work with these folders: Get-Folder
, Move-Folder
, New-Folder
, Remove-Folder
, and Set-Folder
.
You can use the Get-Folder
cmdlet to get a list of all of your folders:
PowerCLI C:\> Get-Folder
Otherwise, you ...
Get Learning PowerCLI - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.