List VLANs and VLAN Groups from Cisco UCS Manager using PowerShell

1) Download and install Cisco UCS Powertool suite (in this example i will be using v2.4.1.3)

2) Install UCS Manager Module

Install-Module -Name Cisco.UCSManager -RequiredVersion 2.4.1.3

3) Start Powertool suite and list modules:

Get-Command -module Cisco.UCSManager | more

4) Connect to the UCS Manager

Connect-Ucs -Name {10.10.10.1}

5) List VLANs and their VLAN Groups 

Get-UcsFabricNetGroup -Ucs {Name_of_UCS} | Get-UcsFabricPooledVlan | Select-Object -Property Name,Dn