VMware Cloud Community
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Error while exporting vCenter Alarms

Hi,

I am referring to below post and trying to export the vcenter alarms. I get the exported file but I am getting the below error. Please help!!

https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/Export-All-Alarms-and-definitions-from...

 

Error

ganapa2000_0-1689576090246.png

 

 

 

 

Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Try changing this line

Get-AlarmActionTrigger -AlarmAction $_ |

to

Get-AlarmActionTrigger -AlarmAction $action |


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

View solution in original post

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

Try changing this line

Get-AlarmActionTrigger -AlarmAction $_ |

to

Get-AlarmActionTrigger -AlarmAction $action |


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

Reply
0 Kudos
ganapa2000
Hot Shot
Hot Shot
Jump to solution

Thank you LucD. That worked.

 

Reply
0 Kudos