Lab – Creating and testing an alert
Use Azure Monitor to collect metrics and logs from your IoT hub to monitor the operation of your solution and troubleshoot issues. In this lab, you’ll learn how to create charts based on metrics, how to create alerts that trigger on metrics, how to send IoT Hub operations and errors to Azure Monitor Logs, and how to check logs for errors.
You will perform the following tasks:
- Utilize the Azure CLI to initiate the creation of an IoT hub, enroll a virtual device, and establish a Log Analytics workspace.
- Transfer resource logs for IoT hub connections and device telemetry to Azure Monitor Logs, situated within the Log Analytics workspace.
- Employ Metric Explorer to formulate a graph that reflects preferred metrics, and attach it to your dashboard.
- Set up metric notifications to obtain email alerts for significant circumstances.
- Retrieve and execute an application that simulates an IoT device sending messages to...