Hi,
I have a script that does:
Get-Annotations -EntityName $entityName -CustomAttribute $customAttributeName -ErrorAction Ignore
This fails as follows:
Get-Annotation error: Value cannot be null.
Parameter name: collection
I know that I am passing in a correct entity name and a correct custom attribute name.
"collection" is not even a parameter to the Get-Annotation command?!
I also tried to get the entity object first, and pipe that into Get-Annotation, but same result!
Has anybody seen this before? What is wrong here? Is it an issue in the PowerCLI module maybe?
Thanks,
Ed
That is a known issue.
Did you stop/start your PS session in the mean time?
Which PowerCLI version are you using?
If not the latest, try to upgrade.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
That is a known issue.
Did you stop/start your PS session in the mean time?
Which PowerCLI version are you using?
If not the latest, try to upgrade.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc. Yes I started a new PowerShell window and sometimes that does not show the error.
We are using PowerCLI module version 12.2.0.17538434.
Will try upgrade to 12.5.
Thanks for your feedback!
Ed
As an alternative, you can use the module VMware.Community.Cistag.
See New Community Module for Tag Management
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thank you! We upgraded to the latest version of PowerCLI 12.5.
Was something actually fixed around this in latest version?
In the first test we did, the issue didn't show, but that could be a chance?
Thanks,
Ed
In the PowerCLI 12.5 ChangeLog there is no mention of anything changing in Get-Annotation.
But that doesn't necessarily mean there wasn't a bug fix at some point.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference