From the course: Azure Serverless Computing
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Demo: Stream weather alerts to Event Hub - Azure Tutorial
From the course: Azure Serverless Computing
Demo: Stream weather alerts to Event Hub
- [Instructor] So what we can do is go into the stream analytics job itself, and then-- So what we can do is go into the stream analytics job itself, and then add the error condition for identifying weather alerts. In order to do that, we actually have to stop the job to be able to edit, 'cause if you click on edit query, it's gonna tell you, you can't edit while it's running. So we'll go back here, click on stop, and then we can go in and edit and change the query. Now, our output is gonna go to the event hub, and we're gonna pull a collection of events where the temperature is higher than what is considered to be normal. By looking at the data, we're gonna look for conditions where the temperature is higher than, say, 31 degrees. So this where we would add this. Now, if you don't like editing stuff in the portal and you want to do this maybe a little bit more programmatically, Visual Studio has a tool and a project type for stream analytic jobs, so let's switch to that. In stream…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.