Skip to content

vmware/powerclicore

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.

PowerCLI Core

Overview

A container image for VMware PowerCLI and supporting modules, community modules, and community script examples.

This image includes the following components:

Component Description
VMware.PowerCLI A collection of PowerShell modules for managing and automating VMware products.
VMware.vSphereDSC PowerShell module for vSphere desired state configuration.
VMware.CloudServices PowerShell module for VMware Cloud Services.
VMware.vSphere.SsoAdmin PowerShell module for vCenter Single Sign-on.
PowerVCF PowerShell module for VMware Cloud Foundation.
PowerNSX PowerShell module for VMware NSX for vSphere.
PowerCLI Examples A collection of community contributed PowerShell modules and scripts.

Get Started

Run the following to download the latest container from Docker Hub:

docker pull vmware/powerclicore:latest

Run the following to download a specific version from Docker Hub:

docker pull vmware/powerclicore:x.y.z

Open an interactive terminal:

docker run --rm -it vmware/powerclicore

Run a local script: docker run --rm --entrypoint="/usr/bin/pwsh" -v ${PWD}

docker run --rm --entrypoint="/usr/bin/pwsh" -v ~/scripts:/tmp/scripts vmware/powerclicore /tmp/scripts/example.ps1

Where ~/scripts is the local directory path for your PowerShell scripts.

For more methods, read 5 ways to a run PowerCLI script using the PowerCLI Docker Container by William Lam.