VMware Cloud Community
uremono
Contributor
Contributor
Jump to solution

Error when using Get-Compliance in PowerCLI.

Hi I tried to use PowerShell scripts on my VM's to do some update manager upgrade work, but when I run the command ,e.g. Get-Complaince, error message will appear,

API version '2.52' for vCenter Server xxx is not supported.

+ CategoryInfo : InvalidOperation: (Smiley Happy , NotSupportedException

+ FullyQualifiedErrorId : Insufficient_VIM_API_Version,VMware.VumAutomation.Commands.GetCompliance

Anyone experienced the same error before? How to resolve this issue? Thank you!

Reply
0 Kudos
1 Solution

Accepted Solutions
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You probably try to run the vCenter Update Manager PowerCLI cmdlets against a VMware Infrastructure 2.5 Server. This is not supported. You can only use the vCenter Update Manager PowerCLI cmdlets against a VMware vCenter server. From the vCenter Update Manager PowerCLI Release Notes:

Requirements

To use vCenter Update Manager PowerCLI 4.0 Update 1, you need to have installed the following software:

.NET 2.0 Service Pack 1

VMware vSphere PowerCLI 4.0 Update 1

Update Manager PowerCLI 4.0 Update 1 works only with Update Manager 4.0 Update 1.

Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition

View solution in original post

Reply
0 Kudos
2 Replies
RvdNieuwendijk
Leadership
Leadership
Jump to solution

You probably try to run the vCenter Update Manager PowerCLI cmdlets against a VMware Infrastructure 2.5 Server. This is not supported. You can only use the vCenter Update Manager PowerCLI cmdlets against a VMware vCenter server. From the vCenter Update Manager PowerCLI Release Notes:

Requirements

To use vCenter Update Manager PowerCLI 4.0 Update 1, you need to have installed the following software:

.NET 2.0 Service Pack 1

VMware vSphere PowerCLI 4.0 Update 1

Update Manager PowerCLI 4.0 Update 1 works only with Update Manager 4.0 Update 1.

Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
Reply
0 Kudos
uremono
Contributor
Contributor
Jump to solution

Thank you Robert.

Reply
0 Kudos