O'Reilly logo

Mastering PowerCLI by Sajal Debnath

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required