VMware Cloud Community
Torrent007
Contributor
Contributor
Jump to solution

Remove-TagAssignment not workig but no error appears

Hi all !

I'm trying to clean up some tag assignement with PowerCLI on VM but I'm in front of a misterious behaviour Smiley Happy

pastedImage_1.png

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

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

View solution in original post

0 Kudos
15 Replies
LucD
Leadership
Leadership
Jump to solution

Which PowerCLI version are you using?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

Hi LucD,

From Get-PowerCLIVersion command:

pastedImage_0.png

My vCenter version:

6.5.0.10964411

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

Yes I tried, and a vCenter restart, but no effect Smiley Sad

If you've no idea, I will open an official case to VMware about it so.

That's a strange behaviour...

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

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.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

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

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

Hi,

I tried since 2 hours to uninstall/reinstall right version of PowerCLI but no way to delete completely 11.5... Smiley Sad

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 Smiley Sad

Still on it Smiley Happy

EDIT: Just saw this script you worked on:

Obtaining Specific PowerCLI Versions from the PowerShell Gallery - VMware PowerCLI Blog - VMware Blo...

Will try it and come back asap

Thanks,

F.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

First check where the PowerCLI modules are located with

Get-Module -Name VMware* -ListAvailable

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

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

I tried (I'm not bad in powershell) but no effect.

Issue may be at installation, as mentionned on a script you worked on:

Obtaining Specific PowerCLI Versions from the PowerShell Gallery - VMware PowerCLI Blog - VMware Blo...

I'm trying this script and come back asap

Thanks for your constant help Smiley Happy

F.

0 Kudos
LucD
Leadership
Leadership
Jump to solution

An alternative is to use the ZIP file for 11.2.0.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

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 ?

0 Kudos
LucD
Leadership
Leadership
Jump to solution

I'm afraid not.

You have a couple of options,

  1. Open a SR with VMware.
    They might say that you a Developer Support contract, but that is not true if the issue is really a PowerCLI bug. Refer to PowerCLI Support Breakdown
  2. Launch a PowerCLI Idea. And though not really intended for reporting bugs, I have it has been used for that before. A good idea would be to ask VMware to launch a Bug Reporting site (or vote for Online repository with known issues (and fixes) for | VMware PowerCLI )
  3. Contact one or more VMware persons that revolve around PowerCLI. A good way is to use the VMware Slack channel that has a PowerCLI channel. You can ask an invite here.
  4. Use social media and put one of the PowerCLI powers-that-be in Cc. For example tweet with @PowerCLI, @kmruddy (or @kyleruddybeard) or @jakerobinson in Cc


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Torrent007
Contributor
Contributor
Jump to solution

Okay, I'll tweet them so Smiley Happy

0 Kudos
greedj1
Contributor
Contributor
Jump to solution

I am also seeing this bug with the same version of powercli.
0 Kudos
LucD
Leadership
Leadership
Jump to solution

Do you have the option to upgrade to PowerCLI 12.0?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos