none
Why does Azure activity logs repeats the logs for a resource after it succeeded? RRS feed

  • Question

  • I am writing a script that checks the activity logs from Azure every 2 minutes into a DB. If an action is performed my script most of the time picks up the log due to the lag between the actual event and the time it was logged.

    After the action has been marked as Succeeded, Azure logs again the same action as Succeeded with the same keys and values except for the timestamps and the ID of the log. Is there anyway to go around this from Azure perspective? I don't want to have to check the DB to see if that action was already executed and added to the database and have duplicates.

    Friday, March 8, 2019 3:42 PM

All replies

  • Hi guicholeo,

    Can you share a bit more information about the script? Is this a PS script? Also, are you trying to suppress the second "succeeded" alert via the script?

    Sharing the PS cmdlets to manage Activity alerts for your reference.

    Wednesday, March 13, 2019 2:20 PM
    Moderator