Chapter 7. Managing Virtual Machines

In the previous chapters, we discussed the different aspects of building and automating a vSphere environment using PowerCLI. In this chapter, we will discuss how to manage virtual machines. In general, we will discuss the following topics:

  • Creating and managing virtual machines
  • Modifying virtual machines
  • Managing templates
  • Managing OS customization specifications
  • Managing the guest OS
  • Managing vApps

We will start our discussion with the creation of VMs and other hardware-related aspects of a VM.

Creating virtual machines

We will use the following cmdlets to manage the different aspects of managing a virtual machine in a vSphere environment using PowerCLI cmdlets:

  • Get-VM
  • Move-VM
  • New-VM
  • Remove-VM
  • Set-VM

We will start by creating ...

Get Mastering PowerCLI now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.