Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • PowerCLI Cookbook
  • Toc
  • feedback
PowerCLI Cookbook

PowerCLI Cookbook

By : Philip Brandon Sellers
4.8 (4)
close
PowerCLI Cookbook

PowerCLI Cookbook

4.8 (4)
By: Philip Brandon Sellers

Overview of this book

If you are a virtualization professional who wants to unleash the power of automation and combat the complexity of sprawling virtual environments, this book is ideal for you. This book will enhance your skills of administering VMware vSphere and vCloud Director with PowerCLI.
Table of Contents (13 chapters)
close
12
Index

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 to specify the template by a parameter:
    New-VM -Template "WinTemplate"
    
  2. The next step is to add the name for the VM and the host or the ResourcePool that the VM is going to deploy into:
    New-VM -Template "WinTemplate" -Name...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete