Hey There!
So I am having this issue with vSphere Tags on 6.5U1, this worked fine on 5.5. This is a fresh vCenter deployment. I am only connected to a single VC. When I connect tot he 5.5 vCenter Server the command runs fine and it is used by for deployments
I have been discussing it in #powercli in the vExpert Slack and I have logged a Support case 18923721309
From people in the vExpert slack it seems to work on vCSA 6.7 and vCSA 6.5U2. My Powershell/PowerCLI versions are listed below
I have asked support to confirm if it is tied to U1, if so I already have plans to upgrade, and I can speed up the plans if that is the case. Supports asked me to disable FIPS as a workaround, as it is mentioned here:
https://code.vmware.com/forums/2530/vsphere-powercli#582399
But that did not help.
Just thought I would see if anyone else has come across this issue?
Cheers,
Bilal
Get-VMHost esxi001| Get-VirtualPortGroup -Standard -tag db
Get-VirtualPortGroup Sequence contains more than one element
$psversiontable
Name Value
---- -----
PSVersion 5.1.17134.228
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.17134.228
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
ModuleType Version Name ExportedCommands
---------- ------- ---- ----------------
Script 6.7.0.8... VMware.DeployAutomation {Add-DeployRule, Add-ProxyServer, Add-ScriptBundle, Copy-DeployRule...}
Script 6.7.0.8... VMware.ImageBuilder {Add-EsxSoftwareDepot, Add-EsxSoftwarePackage, Compare-EsxImageProfile, Export-EsxImageProfile...}
Manifest 10.1.1.... VMware.PowerCLI
Script 6.7.0.8... VMware.Vim
Script 10.1.0.... VMware.VimAutomation.Cis.Core {Connect-CisServer, Disconnect-CisServer, Get-CisService}
Script 10.0.0.... VMware.VimAutomation.Cloud {Add-CIDatastore, Connect-CIServer, Disconnect-CIServer, Get-Catalog...}
Script 10.1.0.... VMware.VimAutomation.Common
Script 10.1.0.... VMware.VimAutomation.Core {Add-PassthroughDevice, Add-VirtualSwitchPhysicalNetworkAdapter, Add-VMHost, Add-VMHostNtpServer...}
Script 6.5.4.7... VMware.VimAutomation.HA Get-DrmInfo
Script 7.5.0.8... VMware.VimAutomation.HorizonView {Connect-HVServer, Disconnect-HVServer}
Script 10.0.0.... VMware.VimAutomation.License Get-LicenseDataManager
Script 10.1.0.... VMware.VimAutomation.Nsxt {Connect-NsxtServer, Disconnect-NsxtServer, Get-NsxtService}
Script 10.0.0.... VMware.VimAutomation.PCloud {Connect-PIServer, Disconnect-PIServer, Get-PIComputeInstance, Get-PIDatacenter}
Script 10.1.0.... VMware.VimAutomation.Sdk {Get-PSVersion, Get-InstallPath}
Script 10.0.0.... VMware.VimAutomation.Srm {Connect-SrmServer, Disconnect-SrmServer}
Script 10.1.0.... VMware.VimAutomation.Storage {Add-KeyManagementServer, Copy-VDisk, Export-SpbmStoragePolicy, Get-KeyManagementServer...}
Script 1.2.0.0 VMware.VimAutomation.StorageUtility Update-VmfsDatastore
Script 10.1.0.... VMware.VimAutomation.Vds {Add-VDSwitchPhysicalNetworkAdapter, Add-VDSwitchVMHost, Export-VDPortGroup, Export-VDSwitch...}
Script 10.0.0.... VMware.VimAutomation.Vmc {Connect-Vmc, Disconnect-Vmc, Get-VmcService, Connect-VmcServer...}
Script 10.0.0.... VMware.VimAutomation.vROps {Connect-OMServer, Disconnect-OMServer, Get-OMAlert, Get-OMAlertDefinition...}
Script 6.5.1.7... VMware.VumAutomation {Add-EntityBaseline, Copy-Patch, Get-Baseline, Get-Compliance...}
Out of curiosity, does my rCisTag module still work?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hey LucD,
Yep once I got it up and running it did work.
PS C:\WINDOWS\system32> Get-VirtualPortGroup -Distributed |Get-rCisTagAssignment -Tag db
Uid : /VIServer=/VirtualMachine=DistributedVirtualPortgroup-dvportgroup-70/TagAssignment=/Tag=/
Tag : db
Entity : PortGroup QA 2 DB
Id : com.vmware.cis.tagging.TagAssociationModel
Name : com.vmware.cis.tagging.TagAssociationModel
Client :
Thanks.
So it looks like the issue is really in the PowerCLI implementation, and not in the REST API.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference