Lab – detecting anomalies with ASA
One of the most common use cases of ASA is to detect anomalies. In this lab, you will see how it is done:
- Create an IoT hub with a device named
device1
. - Go to the device simulator at https://azure-samples.github.io/raspberry-pi-web-simulator and enter your device connection string.
- Start the simulator and make sure your IoT hub is getting messages. You can use the following CLI command to view messages:
az iot hub monitor-events --hub-name
- If it asks you to install dependencies, choose Yes.
- You can stop the simulator while you set up the ASA job.
- Create a blob storage account to save the results of the job. Create a blob container named
logs
. - In the same resource group, select Create a resource and search for
stream
analytics job
.Create a Stream Analytics job using the default values.
- Once created, open the Stream Analytics job in the Azure portal and select Inputs on the left-hand menu. Add an IoT hub input...