Azure Serverless Computing | Email Notifications for Resource Group Changes

Receive Email Notifications for Resource Group Changes

Question

DRAG DROP -

You are configuring serverless computing in Azure.

You need to receive an email message whenever a resource is created in or deleted from a resource group. Which three actions should you perform in sequence?

To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Select and Place:

Explanations

Explanation

https://docs.microsoft.com/en-us/azure/event-grid/monitor-virtual-machine-changes-event-grid-logic-app

To receive an email message whenever a resource is created in or deleted from a resource group, you can use Azure Event Grid to monitor the resource group for these events and send a notification to an email address via Azure Logic Apps. Here are the steps to follow:

  1. Create an Event Grid subscription:

First, you need to create an Event Grid subscription that specifies the resource group you want to monitor and the type of events you want to track. To do this, follow these steps:

  • In the Azure portal, navigate to the resource group you want to monitor.
  • Select the "Events" tab from the left-hand menu.
  • Click "Add Event Subscription" and fill in the necessary details, such as the event type and endpoint URL.
  1. Create a Logic App:

Next, you need to create a Logic App that will receive the event notifications and send an email message. Follow these steps to create a Logic App:

  • In the Azure portal, click "Create a resource" and search for "Logic App."
  • Select "Logic App" and fill in the required details, such as the name, subscription, and resource group.
  • Choose a trigger for the Logic App. In this case, you want to use the "When a resource event occurs" trigger from the Azure Event Grid connector.
  • Configure the Logic App to send an email message when the trigger fires. You can use the built-in "Send an email" action in Logic Apps, which requires you to provide the recipient email address, subject, and message body.
  1. Test the configuration:

Finally, you can test the configuration to make sure everything is working as expected. To do this, create or delete a resource in the monitored resource group and check that you receive an email notification. If you do not receive an email, check the Event Grid subscription and Logic App configurations to ensure they are correct.