Activity: Creating alerts
In this section, you'll learn how to create an SQL database alert. Consider the following scenario, involving ToyStore Ltd. Mike has an SQL database on the Basic service tier and has been asked to configure autoscaling to change the service objective to GP_Gen5_4 when the CPU percentage metric is greater than 70%. For this purpose, he needs to first create an SQL database alert that is triggered when the CPU percentage is greater than 70%. Let's see how this can be done.
Creating an Azure Automation account and configuring a runbook
Azure Automation is an Azure service that allows you to automate Azure management tasks through runbooks.
A runbook is a job that accepts PowerShell or Python code and executes it as and when scheduled, or when invoked from an external program through a webhook:
- Open the Azure portal, https://portal.azure.com, and log in with your Azure credentials.
- In the left-hand navigation menu, select All services...