Home Page

Introducing the Hidden Power of the PowerCLI SDK

If you’re familiar with PowerCLI, you probably love how easy it makes common administrative tasks across the VMware ecosystem. What if we revealed something exciting? There’s a whole other level of power under the hood. It gives you direct access to every single API endpoint.

Say hello to the PowerCLI SDK!
It’s already bundled with your PowerCLI installation — no extra downloads or setup required.


What Is the PowerCLI SDK?

PowerCLI offers high-level cmdlets. It also includes automatically generated SDK modules for many of our major products. These products range from vSphere to NSX, SRM, and VMware Cloud Foundation (VCF). These SDKs give you one-to-one access to the API through PowerShell, enabling you to build custom, low-level automation with precision.

To see what SDKs are available in your environment, just run:

You’ll see output like this:


Getting Started: Exploring VMware Cloud Foundation with the SDK

Let’s walk through a real example using the VMware.Sdk.Vcf.SddcManager module. This module exposes the full API of VMware Cloud Foundation (VCF) via PowerShell.

1. Load the Module

2. Connect to VCF

Just like Connect-VIServer, the SDK comes with its own connect cmdlet:

Once connected, you’ll see connection details, including access tokens — no need to handle tokens manually in future calls.


Real-World API Call: Retrieve Workload Domains

Let’s say you want to list all workload domains in your VCF environment.

Do not construct a cURL request or raw HTTP call. Instead, you can discover and invoke the correct cmdlet directly in PowerShell.

3. Find the Right Cmdlet

Use Get-VcfSddcManagerOperation to search for available API operations:

This will point you to the cmdlet you need:

4. Call the API

And just like that, you’ve retrieved structured data about your workload domains. There’s no need to write API wrappers. You also do not need to manually handle authentication headers.


Built-In Help & Documentation

The SDK cmdlets also include full help support:

You’ll find usage examples, parameters, and links to the online API reference. This makes it easier than ever to learn and build as you go.


Supported Products

SDK modules are now available for many VMware products, including:

  • ✅ VMware Cloud Foundation (SDDC Manager)
  • ✅ vSphere
  • ✅ NSX-T
  • ✅ Site Recovery Manager (SRM)
  • ✅ vSphere Replication

And the best part? They’re automatically included with the latest versions of PowerCLI.


Final Thoughts

The PowerCLI SDK is a power-user’s dream. It gives you access to the full API surface of VMware products using familiar PowerShell syntax. You have full control when building advanced automation with the SDK. It also allows integration with your CI/CD pipelines without leaving your terminal.

Ready to take PowerCLI to the next level?
Explore the SDK modules in your environment and start building with the APIs like a pro.

Pro Tip: Combine high-level PowerCLI cmdlets with SDK operations for the best of both worlds.


Got feedback or feature requests?
Let us know what APIs you’d love to see covered next — VCF Feature Requests Portal is waiting for you.
Happy automating!

OSZAR »