Share via

Successful Azure Backup of physical server email notification using Azure Logic App

Bojan Zivkovic 621 Reputation points
2026-03-27T13:57:02.82+00:00

Hi, I would like to get email notification for successful Azure Backup of physical server using Azure Logic App with server name displayed in email subject/body. I have an alert rule defined on AzureBackupLAW scope (Log Analytics Workspace) with the following condition:

User's image

and action:
User's image calling this Logic App:

User's image

User's image I would like to get mail like this:

User's image

but getting server name is something I have been struggling with. Maybe this is related to wrong Request Body JSON Schema inside trigger - I have just started playing with Logic Apps since they are referenced as the best way of getting mail notifications for successful Azure Backup with custom mail formatting.

Azure Logic Apps
Azure Logic Apps

An Azure service that automates the access and use of data across clouds without writing code.


1 answer

Sort by: Most helpful
  1. Q&A Assist
    2026-03-27T13:57:28.4566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    Use the common alert schema and pass the server name from the Log Analytics alert into the Logic App, then read it from the alert payload in the email action.

    1. In the Log Analytics alert rule, extend the query to calculate the server name and project it as a column:
         AddonAzureBackupJobs
         | where JobFailureCode == "Success"
         | extend ServerName = tostring(split(BackupItemUniqueId, ";")[-2])
         | project TimeGenerated, ServerName, JobStatus, JobFailureCode
      
    2. When creating the action group that calls the Logic App:
      • On the Actions tab, choose Logic App as the action type.
      • Select the Logic App.
      • Set Enable common alert schema to Yes.
    3. In the Logic App:
      • Use the When an HTTP request is received trigger (created automatically when the action group is configured to call the Logic App).
      • No custom request body schema is required; the common alert schema payload is sent automatically.
    4. Add a Send an email (V2) action under Office 365 Outlook:
      • In Subject and Body, use dynamic content from the alert payload. The server name is available under the alert context because it was projected in the query. For example, in the body:
        • Server backed up: data.alertContext.ServerName
      • Optionally include other fields such as alertRule, severity, monitorCondition, firedDateTime, and alertTargetIDs as shown in the Logic Apps email example.

    With this setup, every time the alert fires for a successful backup, the Logic App receives the alert payload (including ServerName) and sends an email where the subject/body contains the server name.


    References:

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.