Book Image

Mastering PowerCLI

By : Sajal Debnath
Book Image

Mastering PowerCLI

By: Sajal Debnath

Overview of this book

Have you ever wished that every morning you could automatically get a report with all the relevant information about your datacenter in exactly the same format you want? Or whether you could automate that boring, exhausting task? What if some crucial task needs to be performed on a regular basis without any error? PowerCLI scripts do all that and much more for VMware environments. It is built on top of the popular Windows PowerShell, with which you can automate server tasks and reduce manual input, allowing you to focus on more important tasks. This book will help you to achieve your goals by starting with a short refresher on PowerShell and PowerCLI and then covering the nuances of advanced functions and reusable scripts. Next you will learn how to build a vSphere-powered virtualized datacenter using PowerCLI while managing different aspects of the environment including automated installation, network, and storage. You will then manage different logical constructs of vSphere environment and different aspects of a virtual machine. Later, you will implement the best practices for a security implementation in vSphere Environment through PowerCLI before discovering how to manage other VMware environments such as SRM, vCloud Director and vCloud Air through PowerCLI. You will also learn to manage vSphere environments using advanced properties by accessing vSphere API and REST APIs through PowerCLI. Finally, you will build a Windows GUI application using PowerShell followed by a couple of sample scripts for reporting and managing vSphere environments with detailed explanations of the scripts. By the end of the book, you will have the required in-depth knowledge to master the art of PowerCLI scripting.
Table of Contents (21 chapters)
Mastering PowerCLI
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Preface
Index

Acknowledgment

First and foremost, I would like to thank my wife, Ananya, for standing beside me throughout my career and writing this book. She has been my inspiration and motivation for continuing to improve my knowledge and move my career forward. During the writing of this book, I spent nearly every waking hour of my day either in the office or writing this book, including weekends. Whenever I felt low and lacked enthusiasm, she guided me through this phase; sometimes with me complaining and kicking. She had to bear with the grumpy me. She is my rock and I would like to dedicate this book to her.

I would like to thank my parents for giving me the freedom to choose my career path and always believing in me, and my elder brother, Ujjwal, for being my best friend.

Thank you Niladri Chakraborty for being there and supporting me. Without you, I wouldn't be where I am today.

Thank you Kalyan Guin and Suprovat Sinha for supporting me through thick and thin.

I must thank B S Nagarajan for supporting me throughout my career in VMware and helping whenever I required it. I hope that someday I can be more like you.

I want to specially thank Naresh Purohit for always believing in me and being the guiding star for me both professionally and personally.

Prashant Dwivedi, without you this book wouldn't have happened in the first place. Thank you for encouraging me so much.

I want to thank Alan Renouf for taking time out of his busy schedule, supporting me, and providing me with access to the required materials and information.

Thank you Brian Graf, Massimo Re Ferre, Dr. Tobias Weltner, and Jason Wasser for providing me with the material and support for this book.

I would like to thank my reviewers, especially Kyle Ruddy, Jason Gaudreau, Amit Agarwal, and Brian Wuchner, for not only reviewing the book but also for giving me suggestions to improve it as well. I would also like to thank Arun Nadar for following up with me and arranging everything for me.

Last but not least, thank you Packt Publishing for giving me the opportunity to write this book. I'd also like to thank every team member who contributed to this project, the external reviewers, and the other guys whom I didn't meet—your contributions were invaluable and this book wouldn't be what it is without you.