10-21-2022 06:35 AM
Hi,
I'm struggling to figure out the right PowerShell cmdlets to use, in order to add a VLAN group onto a VNIC template.
To add individual VLANs, this works:
$VNICTemplate = Get-UcsVnicTemplate -Name 'ESXi-iSCSI-A'
$VNICTemplate | Add-UcsVnicInterface -ModifyPresent -DefaultNet 'yes' -Name 'iscsi-a' -ModifyPresent -ErrorAction Stop
Creating a VLAN group requires the use of `Add-UcsFabricNetGroup`,
The documentation against vnic templates doesn't say how. I've searched via google and it seems others have struggled too. Does anyone know?
Thanks!
Solved! Go to Solution.
10-21-2022 06:46 AM
Solved using a tip from another post in here, by looking at the XML submitted via POST request made when performing the action in the browser.
$VNICTemplate | Add-UcsFabricNetGroupRef -Name 'core'
10-21-2022 06:46 AM
Solved using a tip from another post in here, by looking at the XML submitted via POST request made when performing the action in the browser.
$VNICTemplate | Add-UcsFabricNetGroupRef -Name 'core'
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide