Hi all !
I'm trying to clean up some tag assignement with PowerCLI on VM but I'm in front of a misterious behaviour
This behaviour appears on a lot of VM (not all) and I did not find a common point between them...
In more, when I clean tag assignement in web client, that's work...
Have you any idea on it guys ?
Thanks in advance !
Fabien
The PowerCLI Change Log mentions that in 11.5.0 the Remove-TagAssignment cmdlet was changed for a performance improvement.
That might have broken something (in some situations).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Which PowerCLI version are you using?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi LucD,
From Get-PowerCLIVersion command:
My vCenter version:
6.5.0.10964411
I can't recreate what you are seeing.
For me the Tag assignment removal works like expected.
Did you stop/start your PS/PowerCLI session before doing a test?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Yes I tried, and a vCenter restart, but no effect
If you've no idea, I will open an official case to VMware about it so.
That's a strange behaviour...
I tried with a colleague with a PowerCLI version of VMware PowerCLI 11.2.0 and that's works.
I'try to donwgrade from VMware PowerCLI 11.5.0 to VMware PowerCLI 11.2.0 and come back with result.
The PowerCLI Change Log mentions that in 11.5.0 the Remove-TagAssignment cmdlet was changed for a performance improvement.
That might have broken something (in some situations).
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi,
I tried since 2 hours to uninstall/reinstall right version of PowerCLI but no way to delete completely 11.5...
I tried:
(Get-Module VMware.PowerCLI -ListAvailable).RequiredModules | Uninstall-Module -Force
Get-Module VMware.PowerCLI -ListAvailable | Uninstall-Module -Force
Then:
Install-Module -Name VMware.PowerCLI -RequiredVersion 11.2.0.12483598
I also tried to cleanup directories without more success
Still on it
EDIT: Just saw this script you worked on:
Will try it and come back asap
Thanks,
F.
First check where the PowerCLI modules are located with
If they are in any of the Program Files or Windows folders, not your personal folders, you would probably need to use a PowerShell session started as Administrator.
But just deleting the PowerCLI folders (make sure you have all of them, also the ones in different paths) should be sufficient.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I tried (I'm not bad in powershell) but no effect.
Issue may be at installation, as mentionned on a script you worked on:
I'm trying this script and come back asap
Thanks for your constant help
F.
An alternative is to use the ZIP file for 11.2.0.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Your script resolved my version issue.
And this 11.2 version resolve my tag assignment issue !
Thanks for your help, it's OK for me.
Last question, have you any access to a bug reporter VMware to alert on it LucD ?
I'm afraid not.
You have a couple of options,
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Okay, I'll tweet them so
Do you have the option to upgrade to PowerCLI 12.0?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference