VMware PowerCLI 12.1.0

VMware PowerCLI 12.1.0

Six months after the previous version of PowerCLI, VMware released the new VMware PowerCLI 12.1.0. I will cover in this article the improvements brought by PowerCLI 12.1.0 and the easy installation process on both Windows and Linux. For full documentation on this version of PowerCLI you can check the code.vmware.com page.

PowerCLI 12.1.0 Changes

New features and updates:

  • New cmdlets have been added to the VMware.VimAutomation.WorkloadManagement module: Get-WMCluster, Set-WMCluster, Enable-WMCluster, Disable-WMCluster.
  • New cmdlets have been added to the VMware.VimAutomation.Core module for managing vSphere Lifecycle Manager: Get-LcmImage, Test-LcmClusterCompliance, Test-LcmClusterHealth.
  • Existing cmdlets from VMware.VimAutomation.Core module have been improved: New-Cluster, Set-Cluster, New-ContentLibraryItem, Set-ContentLibraryItem, New-VM, Set-VM, New-Datastore, New-HardDisk, Get-NetworkAdapter, Get-VirtualNetwork, Set-ScsiLun.
  • New cmdlets have been added to the VMware.VimAutomation.Vmc module for specifying cluster’s EDRS policies: Get-VmcClusterEdrsPolicy, Set-VmcClusterEdrsPolicy.
  • Existing cmdlets from VMware.VimAutomation.Vmc module have been improved: New-VmcSddc, Add-VmcSddcHost, Remove-VmcSddcHost.
  • New cmdlets have been added to the VMware.VimAutomation.Storage module for managing vSAN secure disk wipe: Start-VsanWipeVsanDisk, Get-VsanWipeDiskState, Stop-VsanWipeVsanDisk.
  • New cmdlets have been added to the VMware.VimAutomation.Storage module for managing Cloud Native Storage volumes: Get/New/Set/Remove-CnsVolume, New-CnsContainerCluster, New-CnsKubernetesEntityReference, New-CnsKubernetesEntityMetadata, New-CnsVolumeMetadata, Add-CnsAttachment, Remove-CnsAttachment.
  • New cmdlet has been added to the VMware.VimAutomation.Storage module for managing Virtual Volume (vVol) storage containers: Get-VvolStorageContainer.
  • Existing cmdlets from VMware.VimAutomation.Storage module have been improved: Set-VsanClusterConfiguration, Get-VsanClusterConfiguration, Get-VsanSpaceUsage, Get-VasaStorageArray, Get-VasaProvider.
  • Existing cmdlets from VMware.VimAutomation.Security module have been improved: Get-TrustedClusterAppliedStatus, Set-TrustedCluster, New-TrustAuthorityKeyProvider, Set-TrustAuthorityKeyProvider, Set-TrustAuthorityTpm2AttestationSettings, Add-TrustedClusterAttestationServiceInfo, Add-TrustedClusterKeyProviderServiceInfo, Remove-TrustedClusterKeyProviderServiceInfo, Remove-TrustedClusterAttestationServiceInfo.
  • Added to the supported list in the compatibility matrix: vCenter Server 7.0 U1, vSAN 7.0 U1, vSphere 7.0 U1, Site Recovery Manager 8.3 and 8.3.1, Horizon 7.13
  • Removed from the supported list in the compatibility matrix: vCloud Director for Service Providers 9.5, Site Recovery Manager 6.1.1, vRealize Operations Manager 6.6.1 and 6.7
Read More
PowerCLI 12.0.0

VMware PowerCLI 12.0.0

VMware released a new PowerCLI version, version 12.0.0. I will cover in this article the improvements brought by PowerCLI 12.0.0 and the easy installation process on both Windows and Linux. For full documentation on this version of PowerCLI you can check the code.vmware.com page.

PowerCLI 12.0.0 Changes

New features:

  • New module: VMware.VimAutomation.WorkloadManagement -provides cmdlets for managing namespace lifecycle and policy for Project Pacific.
  • New module: VMware.CloudServices – provides cmdlets for managing VMware Cloud Services.
Read More
PowerCLI 11.1.0

PowerCLI 11.1.0 – More on Linux Side

During the last few days of December 2018, VMware released the 6th PowerCLI version of the year: PowerCLI 11.1.0. The coolest new features move around Site Recovery Manager:

  • Support for SRM module in MacOS and Linux
  • Support for Site Recovery Manager 8.1 API features
  • VMware.VimAutomation.Storage module received updates on 2 cmdlets: Get-VsanDisk and Start-SpbmReplicationTestFailover

There is nothing new on the install / update routines for Windows, so if you need guidance you can take a look at one of my previous article: VMware PowerCLI 10.1.0.

Read More
PowerCLI 10.1.0

VMware PowerCLI 10.1.0

VMware released a new PowerCLI version, version 10.1.0. I will cover in this article the improvements brought by PowerCLI 10.1.0, the installation process on Windows and the update procedure on both Windows and Linux.

PowerCLI 10.1.0 Changes

New features:

  • New module: VMware.Vim provides vSphere API bindings, allowing access to the latest features available in the VMware Cloud on AWS.
  • New cmdlets: Set-ScriptBundleAssociation and Remove-ScriptBundle added to the VMware.DeployAutomation module. They provide the ability to work with script bundles modification.

Updates:

  • NSX-T module has been updated to support the new API features in VMware NSX-T 2.1.
  • VMware PowerCLI has been updated to support the new API features in VMware vSphere 6.7.
  • Instead of producing a warning when connecting to resources using invalid or self-signed certificates, PowerCLI now produces an error.
  • The Import-VApp cmdlet has been updated to support SHA-256 and SHA-512 hash algorithms.
  • The Version parameter of the New-VM and Set-VM cmdlets has been deprecated and replaced by the HardwareVersion parameter that accepts string input.
  • The Version property of the VirtualMachine object has been deprecated and replaced by the HardwareVersion property.

Read More

PowerCLI 10.0.0 Linux Error in VMware.VimAutomation.Srm Module

VMware released recently version 10.0.0 of PowerCLI. One of the major “selling” points for PowerCLI 10.0.0 is the way it works exactly the same regardless of the platform: Windows, Linux, and Mac OS. As a result, immediately after I updated my Windows installation to 10.0.0, I proceeded to install a Linux version of PowerCLI.

I will document in this article how to install PowerShell Core 6.0.1 on Linux and how to install PowerCLI 10.0.0. I will then write about the error I met (“Import-Module : VMware.VimAutomation.Srm module is not currently supported on the Core edition of PowerShell”) and how I solved it. Update 5 May 2018: VMware released a new version 10.1.0, same error is present.

First stop was “Compatibility Matrixes for VMware PowerCLI 10.0.0”. The only supported Linux OS is Ubuntu 16.04. I then installed a VM running this Ubuntu version. I then followed the Microsoft provided instructions to install PowerShell Core 6.0.1. (On a related note, I ran PowerCLI 10.0.0 on CentOS 7 without other issues – except of course for the modules errors).

Read More

New Release – VMware PowerCLI 10.0.0

PowerCLI 6.5.4 is dead, welcome PowerCLI 10.0.0 🙂  VMware released few days ago the latest version, marked with a huge jump in numbering, moving straight from 6 to 10. This version marks also the promote of the former Fling PowerCLI Core into the main PowerCLI product. Now we have same product running multiplatform: Windows, Linux, and MacOS. This makes things simpler. How do you install PowerCLI on Windows? That’s “Install-Module -Name VMware.PowerCLI”. How about Linux? “That’s “Install-Module -Name VMware.PowerCLI”. MacOS? You got this, it’s the same.

PowerCLI 10.0.0 consists of the following modules:

  • VMware.DeployAutomation
  • VMware.ImageBuilder
  • VMware.PowerCLI
  • VMware.VimAutomation.Cis.Core
  • VMware.VimAutomation.Cloud
  • VMware.VimAutomation.Common
  • VMware.VimAutomation.Core
  • VMware.VimAutomation.HA
  • VMware.VimAutomation.HorizonView
  • VMware.VimAutomation.License
  • VMware.VimAutomation.Nsxt
  • VMware.VimAutomation.PCloud
  • VMware.VimAutomation.Sdk
  • VMware.VimAutomation.Srm
  • VMware.VimAutomation.Storage
  • VMware.VimAutomation.StorageUtility
  • VMware.VimAutomation.Vds
  • VMware.VimAutomation.Vmc
  • VMware.VimAutomation.vROps
  • VMware.VumAutomation

Not all these modules are supported on PowerShell Core, generating an error when trying to launch on Linux, but I will detail this in a future article. [Update 05 March 2018: The article is here: PowerCLI 10.0.0 Linux Error in VMware.VimAutomation.Srm Module. The mentioned error: “Import-Module : VMware.VimAutomation.Srm module is not currently supported on the Core edition of PowerShell”.]

Read More

PowerCLI 6.5.4

New Release – VMware PowerCLI 6.5.4

Although VMware released PowerCLI 6.5.3 a little over a month ago, here comes a pleasant surprise: few days ago VMware made available the shiny new version PowerCLI 6.5.4! The new version brings us improvements in two areas:

  • new module for VMware Cloud on AWS
  • new cmdlets for storage module

Read More