Automation

 View Only
  • 1.  Error while exporting vCenter Alarms

    Posted Jul 17, 2023 06:42 AM

    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

    ganapa2000_0-1689576090246.png

     

     

     

     



  • 2.  RE: Error while exporting vCenter Alarms
    Best Answer

    Posted Jul 17, 2023 07:41 AM

    Try changing this line

    Get-AlarmActionTrigger -AlarmAction $_ |

    to

    Get-AlarmActionTrigger -AlarmAction $action |


  • 3.  RE: Error while exporting vCenter Alarms

    Posted Jul 17, 2023 08:59 AM

    Thank you LucD. That worked.