Skip to main content

Creating an Action Group in Azure

Hands-On Lab

 

Photo of Gary McLeary

Gary McLeary

Azure Training Architect I in Content

Length

00:45:00

Difficulty

Intermediate

This lab teaches how to create an action group and configure it so that an individual or group of people will receive alerts for predefined events. A high-level overview for the tasks covered in this lab is as follows: 1. Create an action group. 2. Set up notifications. 3. Define the conditions for notifications. 4. Review activity logs. Setting up action groups is important because in real-world environments, unfortunate events happen. For organizations with high availability requirements, you want to make sure the right people are quickly notified in the instance of an unexpected event. This way the corrective action(s) can be initiated as soon as possible.

What are Hands-On Labs?

Hands-On Labs are scenario-based learning environments where learners can practice without consequences. Don't compromise a system or waste money on expensive downloads. Practice real-world skills without the real-world risk, no assembly required.

Creating an Action Group in Azure

Introduction

This lab teaches how to create an action group and configure it so that an individual or group of people will receive alerts for predefined events.

A high-level overview for the tasks covered in this lab is as follows:

  1. Create an action group.
  2. Set up notifications.
  3. Define the conditions for notifications.
  4. Review activity logs.

Setting up action groups is important because in real-world environments, unfortunate events happen. For organizations with high availability requirements, you want to make sure the right people are quickly notified in the instance of an unexpected event. This way the corrective action(s. can be initiated as soon as possible.

Solution

  1. Log in to the Azure Portal using the credentials provided on the lab instructions page.

Create the Action Group and Alert

  1. Click All resources in the left-hand menu. Verify the existence of the resources associated with the virtual machine.

  2. Click Monitor in the left-hand menu.

  3. Click Alerts.

  4. Click Manage actions from the top of the window.

  5. Click + Add action group from the top of the window.

  6. In the Action group name, enter ServerGroup.

  7. In the Short name, enter SG.

  8. Click the box next to Resource group and select the existing group rather than creating a new one.

  9. Under ACTION NAME, enter SMSserver.

  1. Under ACTION TYPE, click the box and select the Email/SMS/Push/Voice option.

  2. Click Edit details.

  3. Select how you would like to receive notifications. In the example, we select an SMS notification.

  4. Click OK.

  5. Click OK.

Shutdown VM

  1. Click Monitor from the left-hand menu.

  2. Click Activity log.

  3. Click Virtual machines from the left-hand menu.

  4. Select the lab-VM machine by clicking the checkbox at the start of the row.

  5. Click on the ellipses at the end of the row to bring up the context menu. Select Stop.

  6. Click Yes.

  7. Click Monitor from the left-hand menu.

  8. Click Activity log.

  9. If the Deallocate Virtual Machine event is not visible, click Refresh at the top until the event is displayed.

Add Alert to Send a Notification When the Server Shuts Down

  1. Click on the Deallocate Virtual Machine event.

  2. Click New alert rule.

  3. Under ACTIONS, click Add.

  4. Select the ServerGroup action group.

  5. Click Add.

  6. Under Alert rule name, enter VM-shutdown.

  7. Click Create alert rule at the bottom.

Conclusion

Congratulations — you've completed this hands-on lab!