This document provides reference information on the data provider Inventory of VMware vCenter.
VMware vCenter data provider is able to collect information about virtual machines.
Following versions have been tested and are supported by the VMware vCenter data provider:
- Version 4.1
- Version 5.0
- Version 5.5
- Version 6.0
- Version 6.5
- Version 6.7
- Version 6.7 Update 1
- Version 6.7 Update 2
- Version 6.7 Update 3
- Version 7.0
- Version 7.0 Update 1
To be able to scan the VMware vCenter infrastructure under a read-only user, select a user that belongs to the Read-only user role in vSphere Client and specify their credentials when configuring the Inventory of VMware vCenter Data Provider.
To successfully scan the VMware vCenter infrastructure, you need to install the latest version of PowerCLI on the machine where you run the data gateway.
We only support VMware PowerCLI 11.5, 12.0 and 12.1 since according to our experience, previous versions may show unexpected behaviors (issues)!
To check which version is currently installed, run command:
Get-Module VMware.PowerCLI -ListAvailable
Before installing, please be ensure that old version of PowerCLI is uninstalled. Upgrading from previous version is impossible.
To uninstall the previous version of PowerCLI, stop the "Matrix42.Data.Gateway" service and run Powershell ISE (not Powershell ISE (x86)) and run the commands below:
(Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force
Additionally check that PowerCLI instance is not installed under the "Programs and Features" in Windows settings. Otherwise uninstall it manually.
To install the latest version of PowerCLI, run the commands as administrator below:
Install-Module -Name VMware.PowerCLI Set-PowerCLIConfiguration -InvalidCertificateAction Ignore -Scope AllUsers
Start "Matrix42.Data.Gateway" service.
-Name VMware.PowerCLI not found
If this error occurs, please run the following command in PowerShell:
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -PublishLocation https://www.powershellgallery.com/api/v2/package/ -ScriptSourceLocation https://www.powershellgallery.com/api/v2/items/psscript/ -ScriptPublishLocation https://www.powershellgallery.com/api/v2/package/ -InstallationPolicy Trusted -PackageManagementProvider NuGet
You can check the compatibility between PowerCLI and VMware vCenter Server by using this matrix.
If PowerShell does not recognize the Install-Module command, please update Windows Management Framework.