Skip to main content

VMware vSphere PowerCLI Reference: Automating vSphere Administration, 2nd Edition



VMware vSphere PowerCLI Reference: Automating vSphere Administration, 2nd Edition

Luc Dekens, Jonathan Medd, Glenn Sizemore, Brian Graf, Andrew Sullivan, Matt Boren

ISBN: 978-1-118-92514-0 December 2015 984 Pages


Master vSphere automation with this comprehensive reference

VMware vSphere PowerCLI Reference, Automating vSphere Administration, 2nd Edition is a one-stop solution for vSphere automation. Fully updated to align with the latest vSphere and PowerCLI release, this detailed guide shows you how to get the most out of PowerCLI's handy cmdlets using real-world examples and a practical, task-based approach. You'll learn how to store, access, update, back up, and secure massive amounts of data quickly through the power of virtualization automation, and you'll get acquainted with PowerCLI as you learn how to automate management, monitoring, and life-cycle operations for vSphere. Coverage includes areas like the PowerCLI SDK, SRM, vCOPS, and vCloud Air. Plus guidance toward scheduling and viewing automation, using DevOps methodology and structured testing and source control of your PowerCLI scripts. Clear language and detailed explanations make this reference the manual you've been looking for.

This book is your complete reference for managing vSphere in a Windows environment, with expert instruction and real-world application.

  • Automate vCenter Server deployment and configuration
  • Create and configure virtual machines, and utilize vApps
  • Monitor, audit, and report the status of your vSphere environment
  • Secure, back up, and restore your virtual machines
  • Work with other vSphere components from your PowerCLI scripts
  • Take control of your PowerCLI scripts through versioning and structured testing

Don't spend another day slogging through routine systems management — automate it, with this invaluable guide.

Introduction xxiii

Part I Install, Configure, and Manage the vSphere Environment 1

Chapter 1 Automating vCenter Server Deployment and Configuration 3

Chapter 2 Automating vSphere Hypervisor Deployment and Configuration 41

Chapter 3 Automating Networking 75

Chapter 4 Automating Storage 119

Rule Sets 146

Chapter 5 Using Advanced vSphere Features 165

Part II Managing the Virtual Machine Life Cycle 211

Chapter 6 Creating Virtual Machines 213

Chapter 7 Using Templates and Customization Specifications 243

Chapter 8 Configuring Virtual Machine Hardware 265

Chapter 9 Advanced Virtual Machine Features 293

Chapter 10 Using vApps 331

Part III Securing Your vSphere Environment 373

Chapter 11 Backing Up and Restoring Your Virtual Machines 375

Chapter 12 Organize Your Disaster Recovery 397

Chapter 13 Hardening the vSphere Environment 441

Chapter 14 Maintain Security in Your vSphere Environment 475

Part IV Monitoring and Reporting 495

Chapter 15 Reporting and Auditing 497

Chapter 16 Using Statistical Data 545

Chapter 17 Alarms 585

Part V Integration 619

Chapter 18 The SDK 621

Managed Object References 644

Chapter 19 vCloud Director 663

Chapter 20 vCloud Air 693

Chapter 21 vRealize Orchestrator 711

Chapter 22 Site Recovery Manager 791

Chapter 23 PowerActions 811

Part VI PowerCLI and DevOps 839

Chapter 24 Source Control 841

Chapter 25 Running Scripts 895

Appendix Example Reports 915

Index 935

Appendix A Code
Chapter 1 Code
Chapter 2 Code
Chapter 3 Code
Chapter 4 Code
Chapter 5 Code
Chapter 6 Code
Chapter 7 Code
Chapter 8 Code
Chapter 9 Code
Chapter 10 Code
Chapter 11 Code
Chapter 12 Code
Chapter 13 Code
Chapter 14 Download
Chapter 15 Code
Chapter 16 Code
Chapter 17 Code
Chapter 19 Code
Chapter 20 Code
Chapter 21 Code
Chapter 23 Code
Chapter 24 Code
Chapter 25 Code