Microsoft Hyper-V PowerShell Automation - Vinith Menon - E-Book

Microsoft Hyper-V PowerShell Automation E-Book

Vinith Menon

0,0
23,99 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

This book is great for administrators who are new to automating Hyper-V administration tasks using PowerShell. If you are familiar with the PowerShell command line and have some experience with the Windows Server, this book is perfect for you.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 100

Veröffentlichungsjahr: 2015

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

Microsoft Hyper-V PowerShell Automation
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Instant updates on new Packt books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. New PowerShell Cmdlets in Hyper-V on Windows Server 2012 R2
Installing and configuring Hyper-V using PowerShell
Fundamental concepts of Hyper-V management with the Hyper-V management shell
Shared virtual hard disks
Live virtual hard disk resizing
Expanding the virtual hard disk
Resizing the virtual hard disk
The storage quality of the service feature
Virtual machine generation
Updated features in integration services
Updated features for exporting a virtual machine
Updated features in Hyper-V Replica
Summary
2. Managing Your Hyper-V Virtual Infrastructure
Extracting information about Hyper-V hosts and the associated virtual machines
Creating, deleting, starting, and stopping virtual machines
Creating a virtual machine
Deleting a virtual machine
Starting and stopping a virtual machine
Configuring properties on virtual machines
Managing VHDs on virtual machines
Summary
3. Managing Your Hyper-V Virtual Machines
Managing virtual switches and virtual network adapters
Managing a virtual machine's migration networks
Configuring virtual machine network adapters with a virtual switch
Configuring virtual machine network failover settings
Adding, removing, and renaming virtual machine network adapters
Configuring a virtual machine's network adapter VLANs
Configuring Hyper-V virtual switches and their properties
Creating and removing Hyper-V virtual switches
Managing virtual machine migrations
Managing virtual machine imports, exports, and snapshots
Importing and exporting virtual machines
Managing virtual machine snapshots
Managing virtual machine backups with Hyper-V Replica
Managing virtual machine connections
Summary
4. Creating Reusable PowerShell Scripts Using Hyper-V PowerShell Module Cmdlets
Creating reusable scripts for virtual machine creation utilizing ODX
Creating reusable scripts for virtual machine live migration
Creating reusable scripts to manage export and import of virtual machine snapshots
Creating reusable scripts to automate installation of Integration Service in virtual machines
Summary
5. The Next Step – Integration with SCVMM
Why integrate with SCVMM?
Core fabric management
Resource optimization
Infrastructure enhancements
Cloud management
PowerShell cmdlets in integration with SCVMM
Summary
6. Troubleshooting Hyper-V Environment Issues and Best Practices Using PowerShell
Troubleshooting the Hyper-V environment using the event log
Troubleshooting the Hyper-V environment using BPA
The PowerShell community
Summary
Index

Microsoft Hyper-V PowerShell Automation

Microsoft Hyper-V PowerShell Automation

Copyright © 2015 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: January 2015

Production reference: 1230115

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham B3 2PB, UK.

ISBN 978-1-78439-153-9

www.packtpub.com

Credits

Author

Vinith Menon

Reviewers

Alexander Kellett

Roy Verrips

Commissioning Editor

Dipika Gaonkar

Acquisition Editor

Sonali Vernekar

Content Development Editor

Priyanka Shah

Technical Editors

Pragnesh Bilimoria

Edwin Moses

Copy Editors

Gladson Monteiro

Jasmine Nadar

Project Coordinator

Neha Thakur

Proofreaders

Simran Bhogal

Maria Gould

Ameesha Green

Paul Hindle

Indexer

Monica Ajmera Mehta

Production Coordinator

Conidon Miranda

Cover Work

Conidon Miranda

About the Author

Vinith Menon has extensive experience in the IT industry. At the beginning of his career, he was working with a leading consulting firm as a senior systems engineer managing Windows Server and the VMware virtualization environment. He was also extensively involved in automation using scripting.

Later, he worked with another platinum-level consulting company as a senior software engineer and managed Microsoft Hyper-V and NetApp environments for Avanade using PowerShell scripting. Vinith has done automation for tasks that earlier required manual work using Opalis and integrated them with PowerShell scripting. He has also built integration packs using PowerShell for Microsoft System Center Orchestrator. He has extensive knowledge of Hyper-V and the management of virtual machine environments using System Center Virtual Machine Manager. He has in-depth technical expertise in PowerShell scripting, Active Directory, server administration, and network management.

Vinith is now part of Microsoft Business Unit Technology Evangelism with NetApp. At the moment, he is interested in the automation of various PowerShell scripting, Microsoft Hyper-V virtualization, Microsoft Exchange, and System Center technologies such as SCSM, SCOM, and SCORCH 2012. As a subject matter expert of Hyper-V and PowerShell, he blogs and supports the NetApp PowerShell community.

Vinith is very passionate about automation and PowerShell scripting. You can find him frequently blogging about virtualization, PowerShell, and all automation-related information that deals with Microsoft System Center, Windows Server, and client operating systems. He is also an active member of the PowerShell Bangalore User Group and loves sharing his knowledge with like-minded techies.

About the Reviewers

Alexander Kellett is a relatively recent convert to the Windows world after many years of Linux and Mac OS X experience. After years of struggling to automate virtual machine deployment on other platforms, PowerShell and Hyper-V are a breath of fresh air. His passions include devops, Clojure (script), cooking, and natural languages.

Roy Verrips has been a system administrator since the mid-nineties for environments that include Novell NetWare, Linux/Unix, Microsoft Windows, and even OS X servers. Starting as far back as 2005, he grasped the advances in system administration that virtualizing allowed, and has since worked extensively on virtualizing servers and workstations using KEMU, VMware, KVM, VirtualBox, and Microsoft Hyper-V.

Roy's work has included virtualizing an OS X VDI environment (http://www.aquaconnect.net/cs-united-christian-church-of-dubai). In 2014, he received a CIO 50 award for virtualizing a luxury hotel's 18 physical servers down to a 3-node Hyper-V cluster (http://www.cnmeonline.com/news/cio-50-awards-2014-full-list-of-winners).

Roy wrote his first batch file when he was 9 years old and has been working in the field of command-line programming ever since, most recently using PowerShell extensively as his preferred utility language.

I'd like to thank my wife, Angela, for her love, ongoing support, encouragement, and never-ending patience. God has blessed me so richly with many things, that is, salvation, my wife, my children, and my Christian family. I'm nothing without any of these.

www.PacktPub.com

Support files, eBooks, discount offers, and more

For support files and downloads related to your book, please visit www.PacktPub.com.

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at <[email protected]> for more details.

At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters and receive exclusive discounts and offers on Packt books and eBooks.

https://www2.packtpub.com/books/subscription/packtlib

Do you need instant solutions to your IT questions? PacktLib is Packt's online digital book library. Here, you can search, access, and read Packt's entire library of books.

Why subscribe?

Fully searchable across every book published by PacktCopy and paste, print, and bookmark contentOn demand and accessible via a web browser

Free access for Packt account holders

If you have an account with Packt at www.PacktPub.com, you can use this to access PacktLib today and view 9 entirely free books. Simply use your login credentials for immediate access.

Instant updates on new Packt books

Get notified! Find out when new books are published by following @PacktEnterprise on Twitter or the Packt Enterprise Facebook page.

Preface

Microsoft Hyper-V PowerShell Automation comes with a set of real-world scenarios and detailed scripts that will help you get started with PowerShell for Hyper-V and learn what administrative tasks you can do with PowerShell.

This book starts with the essential topics relating to PowerShell and then introduces the new features in Hyper-V version 3.0. This book explores the cmdlets in Hyper-V version 3.0 that can be used to manage and automate all configuration activities for managing the Hyper-V environment. The cmdlets are executed across the network using Windows Remote Management.

This book goes in depth and looks at the new features that are made available with Hyper-V version 3.0, and breaks down the mystery and confusion that surrounds which feature to use when. It also teaches you the PowerShell way to automate the usage of these features.

What this book covers

Chapter 1, New PowerShell Cmdlets in Hyper-V on Windows Server 2012 R2, explores the new features in Hyper-V Windows Server 2012 R2 and the associated cmdlets to manage these features.

Chapter 2, Managing Your Hyper-V Virtual Infrastructure, explores in depth the cmdlets that are available in the Hyper-V PowerShell module. This also covers cmdlets to manage properties of Hyper-V hosts, associated virtual machines, and virtual hard disks.

Chapter 3, Managing Your Hyper-V Virtual Machines, covers cmdlets to manage virtual switches, virtual machine migrations, snapshots, and also Hyper-V Replica.

Chapter 4, Creating Reusable PowerShell Scripts Using Hyper-V PowerShell Module Cmdlets, takes a deep dive into how to approach various complex administrative tasks and explores solutions for them by developing PowerShell scripts based on the Hyper-V PowerShell module.

Chapter 5, The Next Step – Integration with SCVMM, explores the advantages of integrating Hyper-V with SCVMM and the additional Hyper-V cmdlets that come with SCVMM.

Chapter 6, Troubleshooting Hyper-V Environment Issues and Best Practices Using PowerShell, explores the PowerShell way to troubleshoot a Hyper-V deployment. It also looks at the BPA Hyper-V module that helps to make sure that Hyper-V is deployed as per the best practices recommended by Microsoft.

What you need for this book

This book requires that you have Windows PowerShell 3.0, which is available out of the box in Windows Server 2012 and Windows Server 2012 R2. The latter has the Hyper-V role enabled on it. Windows PowerShell 3.0 is also available for earlier versions of Windows as part of Microsoft's Windows Management Framework 3.0. You should also have System Center Virtual Machine Manager 2012 and Windows Server 2012 R2 with you.

Who this book is for

This book is great for administrators who are new to automating Hyper-V administrative tasks using PowerShell. If you are familiar with the PowerShell command line and have some experience with the Windows Server, this book is perfect for you.

Reader feedback