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-VCenter/td-p/465617
Error
Try changing this line
Get-AlarmActionTrigger -AlarmAction $_ |
to
Get-AlarmActionTrigger -AlarmAction $action |
Thank you LucD. That worked.