Automating VMware Cloud Foundation with PowerVCF

In a recent post, I wrote about interacting with VCF using the API to add a new license key as a simple way to begin familiarizing myself with the API. As a huge proponent of PowerShell, I began looking for a module to talk to the API but came up empty handed. I began working on a module with vSphere admins in mind because I know the important role PowerShell plays in day-to-day operations. During a conversation with Jase McCarty, he told me about the PowerVCF project which does exactly that! The module was initially developed and is maintained by Brian O’Connell and has 50 cmdlets which covers ~70% of the API calls in VCF 3.9.0:

  • Get/Commission/Decommission Host
  • Get/New/Set/Remove Workload Domain
  • Get/New/Set/Remove vSphere Cluster
  • Get/New/Remove Network Pool
  • Get/New/Remove Network IP Pool
  • Get/New/Remove License Keys
  • Get/Retry Tasks
  • Get/Set Credentials
  • Get/Set participation in CEIP
  • Get/Start Backup Configuration
  • Get/Request Log Bundle
  • Get/Set Microsoft Certificate Authority
  • Get/Request Certificate CSRs
  • Get/Request/Set Certificates
  • Get/Set Depot Credentials
  • Get PSCs & vCenter servers managed by SDDC Manager
  • Get NSX-V Managers
  • Get NSX-V/T Clusters
  • Get vRealize Log Insight info
  • Get vRealize Lifecycle Manager & Environment info
  • Get vROPS info

PowerVCF is also mostly compatible with VxRAIL too with the exception of commissioning and decommissioning hosts, working with network pools, and creating and removing workload domains.

The biggest functionality missing right now are creating and deleting PKS/Horizon workload domains and creating/joining/tearing down federations. I’m currently working on the PKS workload domain functions and plan to submit a PR soon!

If you’ve recently deployed VCF and looking to orchestrate functionality, I highly recommend checking this module out! If you enjoy creating PowerShell cmdlets and looking to contribute to a project, you’ll find quite a few opportunities to help us work towards feature parity!

2 thoughts on “Automating VMware Cloud Foundation with PowerVCF

  1. Pingback: Introducing PowerVCF – Power to VI Admins – My Cloudy World

  2. Pingback: Introducing PowerVCF | blog.bertello.org

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s