coverpage
Mastering PowerCLI
Credits
Foreword
About the Author
Acknowledgment
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. PowerShell and PowerCLI Refresher
The essence of PowerShell and PowerCLI
Implementing programming constructs in PowerShell
Automation through PowerShell scripts
Running and scheduling scripts
Using version control with GitHub
Testing your scripts using Pester
Connecting to a vCenter and other VMware environments using PowerCLI cmdlets
Summary
Chapter 2. Reusable Advanced Functions and Scripts
Specifying function attributes
Specifying parameter attributes
Using parameter validation attributes
Dynamic parameters
Switch parameters
PowerShell help files
Creating comment-based help
Error handling in PowerShell
Summary
Chapter 3. Deploying vSphere Hosts
Image Builder with PowerCLI
Using host profiles
Configuring Auto Deploy for ESXi hosts
Adding hosts to a vCenter server
Summary
Chapter 4. Managing Networks
Managing vSphere standard switches
Managing networking for ESXi
Managing vSphere distributed switches
Managing port groups
Creating private VLANs
Configuring vSphere network I/O control
Configuring Netflow
Working with ports
Summary
Chapter 5. Managing Storage
Managing datastores
Configuring Fibre Channel storage
Configuring iSCSI storage
Configuring NFS storage
Configuring virtual SAN
Using datastore clusters
Using Raw Device Mapping
Managing storage using storage policy-based management
Applying VMFS resignaturing
Configuring vFLASH using PowerCLI Extensions
Summary
Chapter 6. Managing Clusters and Other Constructs
Configuring vCenter logical constructs
Configuring the Enhanced vMotion Compatibility mode
Configuring High Availability
Using Dynamic Resource Scheduling
Using the DRS affinity and anti-affinity rules
Managing resource pools
Managing alarms
Summary
Chapter 7. Managing Virtual Machines
Creating virtual machines
Modifying virtual machines
Managing templates
Managing OS customization specifications
Managing the guest OS
Managing vApps
Summary
Chapter 8. Managing vSphere Security SRM vCloud Air and vROps
The vSphere Security Hardening Guide
Managing vSphere Update Manager
Configuring a firewall and services in an ESXi host
Managing host profiles
Managing vCenter Site Recovery Manager
Managing vCloud Air
Managing vRealize Operations Manager
Summary
Chapter 9. Managing the vSphere API
Using the Get-View cmdlet to return .NET View objects
Using the ExtensionData property to return .NET View objects
Using the vSphere API
Creating a vSphere scheduled task
Configuring Distributed Power Management
Configuring Fault Tolerance
Managing Content Libraries
Managing SRM advanced configurations
Generating PowerCLI code using Onyx
PowerActions for vSphere Web Client
Summary
Chapter 10. Using REST APIs
Introducing REST APIs
Introducing JSON
The Invoke-RestMethod cmdlet
vRealize Automation REST APIs
Authenticating and getting a vRA token
Managing tenants
Managing machines
Managing approvals
Managing provisioned resources
Managing network profiles
Summary
Chapter 11. Creating Windows GUI
Different ways to create a Windows GUI
Building a GUI using Windows Forms
Using SAPIEN PowerShell Studio
Building GUI using WPF
Summary
Chapter 12. Best Practices and Sample Scripts
Best practices
Security Hardening Script
Capacity check report
Using a proper editor
Summary
Index
更新时间:2021-07-09 21:48:26