Set VPG SLA Test Alerts to ‘NONE’

  • I would like to set the VPG Test Alerts to ‘NONE’ within the Replication/SLA section of the VPG config. The current setting is 6 months for an alert to be triggered.
    This is a simple straight forward change via the GUI.
    Does anyone have a sample script solution for doing this as a batch rather than manually configuring each VPG?
    Via the REST API or powershell could work.
    Many Thanks

    To set the VPG Test Alerts to ‘NONE’ for multiple VPGs, you can use the Zerto REST API or PowerShell scripting. Here’s a sample PowerShell script that you can use to achieve this:

    `powershell
    # Connect to Zerto
    Connect-ZertoServer -Server <ZertoServer>

    # Get all VPGs
    $vpgs = Get-ZertoVpg

    # Loop through each VPG and set the Test Alerts to ‘NONE’
    foreach ($vpg in $vpgs) {
    Set-ZertoVpgAlerts -VpgIdentifier $vpg.Identifier -TestAlerts ‘NONE’
    }

    # Disconnect from Zerto
    Disconnect-ZertoServer
    `

    You can run this script on a scheduled basis to ensure that all VPGs have their Test Alerts set to ‘NONE’ without the need for manual configuration time calculator

The forum ‘Scripting and APIs’ is closed to new topics and replies.