> For the complete documentation index, see [llms.txt](https://docs.inogic.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inogic.com/backup4dynamics/notifications.md).

# Notifications

Backup and restore jobs can fail — due to storage connectivity issues, expired credentials, throttling, or other transient errors. If a failure goes unnoticed, your organization's Dynamics 365 data could be left unprotected without anyone knowing.

This risk is greater if the administrator who set up Backup4Dynamics has since left the organization, and no one else is watching for failures.

### How to Create an Alert Rule for a Backup and Restore Job

1. Open the Restore or backup container job

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FTklxTIkLsFFKTsKeBbLt%2Fimage.png?alt=media&amp;token=4b74b6fe-21a3-4531-9789-2aab0c466814" alt=""><figcaption></figcaption></figure>

2. Open the log and click on the log from the side menu

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FLtVc8NPauSjPYdff4IPb%2Fimage.png?alt=media&amp;token=fab31ebc-7466-4e0e-8d51-21b72ee38b72" alt=""><figcaption></figcaption></figure>

3. Click on the “New alert rule” as shown in the image below

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FJ16BOqw3MeMvdzNMuRKG%2Fimage.png?alt=media&amp;token=ec7139b5-a2be-4295-9637-cca74fa7c4be" alt=""><figcaption></figcaption></figure>

4. Select “Aggregated logs” and then replace the text below according to the job to trigger the alert rule –

·       For Restore Jobs –

ContainerAppConsoleLogs\_CL

\| where Log\_s contains "BACKUP4DYNAMICSRESTOREJOBERROR"

·       For Backup Jobs –

ContainerAppConsoleLogs\_CL

\| where Log\_s contains " BACKUP4DYNAMICSBACKUPJOBERROR "

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fz2apTXavGTagGLpEN5Vj%2Fimage.png?alt=media&amp;token=6ff12881-c515-4e4e-ba52-40635b72a37f" alt=""><figcaption></figcaption></figure>

5. In the Measurement section, fill the field below as shown below

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2Fysv2xKqg4C5Wibi7K6AT%2Fimage.png?alt=media&amp;token=2fd1a7dd-ce46-45f0-8466-46b4a03b480d" alt=""><figcaption></figcaption></figure>

6. And fill the Alert logic field values as shown in the image below

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F73sAq7zflxqYJhkx8ISM%2Fimage.png?alt=media&amp;token=1ddc1bd9-cc7a-4fde-a1d9-ce7f4aaa21e3" alt=""><figcaption></figcaption></figure>

7. Now go to the Action tab and click on “Create action group”

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FIfc5IohE0kRD5xgWlf91%2Fimage.png?alt=media&amp;token=dbdbbf92-1a70-4a78-99ef-4b1b7111b25a" alt=""><figcaption></figcaption></figure>

8. Fill the action group name and Display name field and click on next

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FROf6tYnp9BmuPZTAbiQ2%2Fimage.png?alt=media&amp;token=6c24681c-c18c-4a90-a6be-addf23599238" alt=""><figcaption></figcaption></figure>

9. In the notification tab select “Email/SMS message/Push/Voice” from the dropdown and enter the name of the notification, a side window will open, enable the checkbox in front of the email and enter the email address to send the alert notification as show in below image

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FYz4VsyziVd9dSzfjgJXr%2Fimage.png?alt=media&amp;token=c7299697-2871-44b0-b747-12e56ac95f0a" alt=""><figcaption></figcaption></figure>

10. Click on the Create button. An action group will be created. The default will be selected in the alert rule, as shown in the image below

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FsLCecZAgi4QvZz6EUSlC%2Fimage.png?alt=media&amp;token=37ff01eb-5deb-47a0-b37b-813e5b4c93f0" alt=""><figcaption></figcaption></figure>

11. Now enter the subject of the email, click on the “Details” tab, provide the severity and the name, and click “Review + Create”

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2FB9OrljPKhEM41zRZoE07%2Fimage.png?alt=media&amp;token=4e631490-f9c7-4229-90f0-ff08b091025f" alt=""><figcaption></figcaption></figure>

12. Your final page will look like this; click Create after reviewing the details

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F1jkO9LviFwtYyvXAWcEg%2Fimage.png?alt=media&amp;token=22666b36-5673-410f-b129-f23da80b4c31" alt=""><figcaption></figcaption></figure>

13. Click on “Create”

<figure><img src="https://272130504-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M0QoyqUVI8_HaZ9FOSL%2Fuploads%2F8RQpVtAIpJvig4yR5PkK%2Fimage.png?alt=media&amp;token=c095a60e-15a8-4525-b7b8-ee3ac563398a" alt=""><figcaption></figcaption></figure>
