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 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.