VMware Cloud Community
fringles973
Contributor
Contributor

Get-VIEventPlus -Entity doesn't show up all templates

$template = Get-Template -Name 2022-template

When I use regular 

Get-VIEvent -Entity $template, it shows up the list of action items.

$template = Get-Template -Name 2022-template or 

Get-VIEventPlus -Entity $template  or Get-VIEventPlus -Entity $template -EventType 'com.vmware.vc.vm.VmConvertedToTemplateEvent'                                

doesn't show event "com.vmware.vc.vm.VmConvertedToTemplateEvent" 

When I run Get-VIEvent, the event "com.vmware.vc.vm.VmConvertedToTemplateEvent" is shown in there. 

In summary, GET-VIEvent shows convertedtoTemplateEvent, while GET-VIEventPlus doesn't show this convertedtoTemplateEvent. What is the reason for this?

                                 

Reply
0 Kudos
1 Reply
LucD
Leadership
Leadership

Works for me.

Which version of Get-VIEventPlus are you using?
Can you attach (not copy please) the version you are using?


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

Reply
0 Kudos