Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Mastering PowerCLI

You're reading from   Mastering PowerCLI Master PowerCLI to automate all aspects of VMware environments

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher Packt
ISBN-13 9781785286858
Length 430 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Sajal Debnath Sajal Debnath
Author Profile Icon Sajal Debnath
Sajal Debnath
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. PowerShell and PowerCLI Refresher FREE CHAPTER 2. Reusable Advanced Functions and Scripts 3. Deploying vSphere Hosts 4. Managing Networks 5. Managing Storage 6. Managing Clusters and Other Constructs 7. Managing Virtual Machines 8. Managing vSphere Security, SRM, vCloud Air, and vROps 9. Managing the vSphere API 10. Using REST APIs 11. Creating Windows GUI 12. Best Practices and Sample Scripts Index

Configuring vCenter logical constructs


In this section, we will discuss the different components, which are as follows:

  • A folder

  • A datacenter

  • A cluster

Folder

We are connected to a vCenter server with nothing configured in it. We will start with creating a folder. A folder is the most basic component of the logical constructs in a vCenter environment. We create folders to organize different constructs. We can use the following cmdlets to manage folders in an environment:

  • Get-Folder

  • Move-Folder

  • New-Folder

  • Remove-Folder

  • Set-Folder

First, we will create a folder under the root folder. To get the root folder, we can use the following cmdlet:

PS C:\> Get-Folder -NoRecursion

Name                           Type           
----                           ----           
Datacenters                    Datacenter  

Tip

Notice the –NoRecursion switch, by default the Get-Folder cmdlet is recursive in nature, it starts with the root folder, and shows the rest. Here, we want to see only the root folder...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image