O'Reilly logo

PowerCLI Cookbook by Philip Sellers

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

Deploying new virtual machines from a template

Deploying a new virtual machine from a template is surprisingly easy. This is a task that you will perform often. Although there are some template specific cmdlets, these have to do with making changes to templates after they are converted. To deploy a VM, you come back to New-VM cmdlet.

Getting Started

To get started, you should open a new PowerCLI window and connect to the vCenter server where you defined our template VM.

How to do it…

  1. To begin this recipe, you will need to assemble a New-VM cmdlet. The first step is to specify the template that is to be cloned from using the -Template cmdlet. As of vSphere 5.5, the -Template parameter can accept pipeline input, but this is deprecated, so it is better ...

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