Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
PowerCLI Cookbook

You're reading from   PowerCLI Cookbook Over 75 step-by-step recipes to put PowerCLI into action for efficient administration of your virtual environment

Arrow left icon
Product type Paperback
Published in Mar 2015
Publisher
ISBN-13 9781784393724
Length 274 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Philip Brandon Sellers Philip Brandon Sellers
Author Profile Icon Philip Brandon Sellers
Philip Brandon Sellers
Arrow right icon
View More author details
Toc

Table of Contents (19) Chapters Close

PowerCLI Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
1. Configuring the Basic Settings of an ESXi Host with PowerCLI FREE CHAPTER 2. Configuring vCenter and Computing Clusters 3. Managing Virtual Machines 4. Working with Datastores and Datastore Clusters 5. Creating and Managing Snapshots 6. Managing Resource Pools, Reservations, and Limits for Virtual Machines 7. Creating Custom Reports and Notifications for vSphere 8. Performing ESXCLI and in-guest Commands from PowerCLI 9. Managing DRS and Affinity Groups using PowerCLI 10. Working with vCloud Director from PowerCLI Setting up and Configuring vCloud Director Index

Connecting to a vCloud environment


Before you can do any work in a vCloud environment, you need to connect to it. Connecting to vCloud Director or to a vCloud Hybrid Service Provider looks very similar to connecting to vCenter or an ESXi host.

Getting ready

The cmdlet to connect to vCloud is essentially the same as the Connect-VIServer cmdlet used to connect to vCenter or an individual ESXi host. Instead of the VI acronym, the cmdlets for vCloud Director use CI. So, the cmdlet to connect to vCloud is Connect-CIServer.

How to do it…

In order to connect to a vCloud environment, perform the following steps:

  1. The first step is to connect using the Connect-CIServer cmdlet. Try using it just like a Connect-VIServer cmdlet:

    Connect-CiServer vcloud.lab.local
    

    If the certificate used to install vCloud Director is not trusted, you will be prompted with a message about an invalid certificate, as shown in the following screenshot:

  2. You can choose to accept the certificate either one time or permanently. However...

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 £13.99/month. Cancel anytime
Visually different images