Share

List of PowerShell Modules in vRO 8.x [CB10121]

by Mayank Goyal · 25 May 2022

Here is the list of all the PowerShell Modules that comes preinstalled in vRO 8.x. In later versions of vRO, we have 2 PowerShell environments 6.x and 7.x. There is a slight difference in the modules as you can notice below in both the versions.

For Powershell 7.xFor Powershell 6.x
PowerNSXPowerNSX
PowervRAPowervRA
VMware.CloudServicesVMware.DeployAutomation
VMware.DeployAutomationVMware.ImageBuilder
VMware.ImageBuilderVMware.PowerCLI
VMware.PowerCLIVMware.Vim
VMware.VimVMware.VimAutomation.Cis.Core
VMware.VimAutomation.Cis.CoreVMware.VimAutomation.Cloud
VMware.VimAutomation.CloudVMware.VimAutomation.Common
VMware.VimAutomation.CommonVMware.VimAutomation.Core
VMware.VimAutomation.CoreVMware.VimAutomation.Hcx
VMware.VimAutomation.HcxVMware.VimAutomation.HorizonView
VMware.VimAutomation.HorizonViewVMware.VimAutomation.License
VMware.VimAutomation.LicenseVMware.VimAutomation.Nsxt
VMware.VimAutomation.NsxtVMware.VimAutomation.Sdk
VMware.VimAutomation.SdkVMware.VimAutomation.Security
VMware.VimAutomation.SecurityVMware.VimAutomation.Srm
VMware.VimAutomation.SrmVMware.VimAutomation.Storage
VMware.VimAutomation.StorageVMware.VimAutomation.StorageUtility
VMware.VimAutomation.StorageUtilityVMware.VimAutomation.Vds
VMware.VimAutomation.VdsVMware.VimAutomation.Vmc
VMware.VimAutomation.VmcVMware.VimAutomation.vROps
VMware.VimAutomation.vROpsVMware.VumAutomation
VMware.VimAutomation.WorkloadManagementMicrosoft.PowerShell.Host
VMware.VumAutomationMicrosoft.PowerShell.Management
Microsoft.PowerShell.HostMicrosoft.PowerShell.Security
Microsoft.PowerShell.ManagementMicrosoft.PowerShell.Utility
Microsoft.PowerShell.SecurityPackageManagement
Microsoft.PowerShell.UtilityPowerShellGet
PackageManagementPSDesiredStateConfiguration
PowerShellGetPSReadLine
PSReadLinePSReadLine

As you might have noticed, in 7.x, we have two additional modules i.e. VMware.CloudServices & VMware.VimAutomation.WorkloadManagement, but misses out PSDesiredStateConfiguration that is only available in 6.x.

Get your own list

Run this code in a PowerShell or PowerCLI runtime or an action environment based on these runtimes.

PowerShell
function Handler($context, $inputs) {
    $inputsString = $inputs | ConvertTo-Json -Compress
    Write-Host "Inputs were $inputsString"
    Write-Host "Listing available PowerShell modules..."
    
    # Get module information
    $modules = Get-Module -ListAvailable | Select-Object Name, Version, Path, ModuleType
    
    # Create a table string
    $tableString = "Module Name`tVersion`tPath`tType`n"
    $tableString += "----------------------------------`n"
    
    foreach ($module in $modules) {
        $tableString += "$($module.Name)`t$($module.Version)`t$($module.Path)`t$($module.ModuleType)`n"
    }
    
    # Write the table
    Write-Host $tableString
    
    # Add to output
    $output = @{
        status = 'done'
        modules = @($modules | ForEach-Object {
            @{
                Name = $_.Name
                Version = $_.Version
                Path = $_.Path
                ModuleType = $_.ModuleType
            }
        })
    }

    return $output
}

Check out other list of modules here:

for Python: https://cloudblogger.co.in/2022/03/08/list-of-all-available-python-modules-in-vro/

for NodeJs: https://cloudblogger.co.in/2022/03/15/list-of-available-node-js-modules-in-vro/


Discover more from Cloud Blogger

Subscribe to get the latest posts sent to your email.

You may also like