The Moment: Azure Percept, Stream Analytics, and PowerBI all work together!

Published Aug 23 2021 08:09 AM 2,022 Views
Regular Visitor

 

Making a Positive Impact in the World?  How the Azure Percept made this possible!

 

About 4 months ago I was introduced to the Azure Percept, and I first learned about Edge Intelligence in a meaningful way.  Before this, Edge Intelligence was just one of those wonderful ideas that I couldn't figure out an application for.  Wow did things change for me!

 

You can read about the Azure Percept and purchase a kit here : The Azure Percept Page . But I am a visual learner and I like to learn by actually applying the technology to real life projects and solve real life problems. So what is the Azure Percept for me?  I had three visions in mind. 

 

My first vision is to take data from an IoT device, stream the data in real time to a dashboard, and then watch the data update in real time. The Azure Percept allowed me to this without having coding/developer background. This system allowed me to learn about so many Azure resources and connect them together.

 

My second vision is to learn about Edge Intelligence and Vision AI and apply these concepts. At the end of this article, I have videos about two of my projects where I solve real world problems with the Azure Percept. The Maria Project, I am especially proud of because the project creates a customized sign language interpreter for people with range of motion constraints. The ABBy Project is my bold venture to bridge an Ancient Art Form (Ballet) with cutting edge technology (Vision AI/Edge Intelligence) and create an educational Art Exhibit.

 

My third vision is to collect better data.  After 3 years working with PowerBI, building star schema data models, and building beautiful data visualizations, I realize that the data collection side of things is not as developed as the output/visualization side.  There is a lot of dirty data out there and a lot of data is stored and never looked at again.  My dream is to collect better data (send alerts on the most important data), reduce storage size (ie not store video but store insights about the video), allow data to be collected even when there is no internet (remote areas, low signal areas), and allow faster response time to important trends in the data.  Edge Intelligence offered hope to solve these issues!  I was hooked and ready to learn more.

 

The biggest issue for me is that I am not a developer, so accomplishing the dreams above was going to be a challenge.  How was I going to bridge the gap?  Along came the Azure Percept which within a few months, allowed me to apply Edge Intelligence, Stream Analytics, and Real Time PowerBI dashboards.  The speed at which I was able to learn the new concepts and apply them is just incredible.  I was able to make a positive impact to people's lives, which I never imagined was possible a year ago.  I want to give back to the community and let others discover the incredible possibilities made possible by the Azure Percept (even if you aren't a developer).   This is my second blog post, here is another one with more videos of my early experiments: Fun Projects with the Azure Percept 

 

High Level Steps: Connect The Azure Percept to PowerBI

 

  • Steps I took to make this happen:
    • Route Azure Percept vision recognition data to an IoT Hub
    • Route IoT Hub data through Stream Analytics
    • Parse the JSON file into manageable fields using Stream Analytics Query Language
    • Feed the parsed data into PowerBI without cost overruns
    • And watch data update in PowerBI every second!

CharlesElwood_0-1629296337663.png

 

 

  • My first issue:
    • The Azure Precept generates a ton of data but how do you see the data that is being generated?
      • I learned that there is a View Live Telemetry view in the Azure Percept Studio to do just that!

 

CharlesElwood_1-1629296392738.png

The IoT Hub Connection:

  • Routing Data through IoT Hub:
    • Luckily, the Out of Box (Setup Wizard) on the Azure Percept, creates an IoT Hub for you and connects your Edge Device to the Hub.
    • Now that the IoT HUB was connected, I need to verify that messages where traveling through the HUB.
      • I learned that in the Overview tab, you can scroll down through the overview page and see a chart of messages going from device to the cloud.

CharlesElwood_2-1629296438283.png

The Stream Analytics Connection:

  • This is now my favorite part of the whole system, but the most difficult for me to learn.
    1. I created a New Stream Analytics job and now had to connect the input to the IOT HUB.
      1.       This was surprisingly easy to do under the Job Topology -> Inputs -> + Add Stream Input -> IOT HUB 

CharlesElwood_3-1629296512257.png

  1. Now I need to connect the Output side to a Workspace in PowerBI
    1.       Similar steps as above: Job Topology -> Outputs -> + Add -> PowerBI

 

CharlesElwood_4-1629296543484.png

 

  1. Now I wanted to see if all the data would travel between the input and outputs
    1.       In the Query editor:
      1. I used the FROM section to define the input
      2. I used the INTO section to define the output
      3. And to test I selected everything from the input by using * in the INPUT section
    2.       I then turned on my Percept and waited for the Input Preview section to show incoming data.
  •       Then I used the Test Query button and then clicked on Test Results to see output data from the query =)

CharlesElwood_5-1629296669197.png

 

 

  1. Let’s see what is being pushed into PowerBI
    1.       Open up your workspace
    2.       Look in Datasets, and when Data starts pushing into the Dataset, the set will magically appear.
  •       Then Create a report from the dataset and drag all the fields into your PowerBI canvas.

CharlesElwood_6-1629296725338.png

Stream Analytics: The Cool Part:

  • Now for the cool part! 
    • If we passed everything (*) into PowerBI, some of the data shows up as “array”
    • So, I wanted to Parse the JSON to break out the individual recognized pieces of data.
      • Note: a year ago I didn’t have any idea how JSON worked, so if I can figure it out, you can too.
    • Copy and paste the following code into the Stream Analytics Edit Query window.

 

 

 

 

SELECT

    Percept.ArrayValue.label,
    Percept.ArrayValue.confidence,
    GetArrayElement(Percept.ArrayValue.bbox, 0) AS bbox0,
    GetArrayElement(Percept.ArrayValue.bbox, 1) AS bbox1,
    GetArrayElement(Percept.ArrayValue.bbox, 2) AS bbox2,
    GetArrayElement(Percept.ArrayValue.bbox, 3) AS bbox3,
    Percept.ArrayValue.bbox,
    CAST (udf.main(Percept.ArrayValue.timestamp) as DateTime) as DETECTION_TIMESTAMP,
    Percept.ArrayValue.timestamp

INTO

    [Type in your PowerBI output here]

FROM

    [Type in your IoT HUB input here] as event

CROSS APPLY GetArrayElements(event.Neural_Network) AS Percept

WHERE

    CAST(Percept.ArrayValue.confidence as Float) > 0.6

 

 

 

 

CharlesElwood_7-1629296759667.png

  • A new problem arose.  The timestamp was in a format I wasn’t used to. 
    • Some sample code to translate the time stamp was provided for a UDF (user defined function).
    • I have no idea how this works yet but tried copying it into the UDF section and it worked!  Thanks to Kevin Saye for helping me with this part.

 

 

 

 

function main(nanoseconds) {
    var epoch = nanoseconds * 0.000000001;
    var epoch = nanoseconds * 0.000000001;
    var d = new Date(0);
    d.setUTCSeconds(epoch);
    return (d.toISOString());
}

 

 

 

 

CharlesElwood_8-1629296892865.png

  • Copy the following code into a new function via Stream Analytics -> Job Topology -> Functions -> add (call it “main”) -> Javascript UDF

PowerBI: New Data: The “Hello World” Moment

  • This was one of the most exciting parts of the whole process for me!
    • Login to your PowerBI service again, (you might have to delete the old dataset now that the incoming fields have changed)
    • After a few minutes, a new dataset will appear with the same name as before. (if your Percept isn’t turned on or if stream analytics isn’t turned on, the dataset won’t magically appear)
      • Now create a report from this dataset, and then add all the new fields into a table visual.

CharlesElwood_9-1629296921000.png

Cost estimation

  • Cost in Azure is always a concern for me, but I finally figured how to use the cost estimator combined with the resource utilization to get a good estimate for projected costs.
    • I went to the Azure calculator website, picked the default 3 streaming units, and projected that I would be running Stream Analytics for about 21 days.
    • The cost was $166, so now I had to figure out how much load I was placing on the streaming units.
    • https://azure.microsoft.com/en-us/pricing/calculator/

 

CharlesElwood_10-1629296948588.png

Monitor Your Usage

  • Now that you are streaming data, and have an estimate on costs, its time to see how much of the stream analytics resource you are using.
    • I went into my Stream Analytics Job and scrolled down through the overview section to the charts.
      • The chart on the left shows me how many input messages are going into stream analytics and how many are leaving stream analytics to go into the PowerBI report.
      • The chart on the right is really interesting because I am only using 14% of my Streaming Units (STUs).  I am nowhere near the 80% recommended resource utilization, so I plan to scale this back to 1 streaming unit.

 

CharlesElwood_11-1629296980915.png

Visualizing the Data in Real Time

  • Okay, not real time, but close!  I noticed a 5 second delay between when I moved in front of the Percept to when my PowerBI dashboard showed the update.
    • Here are the steps I took:
      • I found the workspace where I was streaming to in Powerbi.com service.
      • I scrolled to the dataset section and waited a few seconds for data to be pushed into the dataset, and then the dataset magically appeared.
      • I then used the ellipses next to the dataset to create a report with visualizations to my liking.
      • I then saved the report, and then on each visualization I wanted to update in real time, I pinned the visual to a dashboard. 
      • Then I went to the dashboard and WOW, the data was streaming in and updating the visuals every second!

CharlesElwood_12-1629297011424.png

 

Where I go from here? Dreaming Big and Improving People's Lives

The Maria Project — Customized Sign Language Interpreter: Removing barriers to communication 

 

  1.  The Problem Statement: Children with Special Needs like Maria in the video can’t sign in sign language like everybody else.
  2. The Solution: Use the Azure Percept to create a custom sign language translator for Maria to accommodate her range of motion.
  3. The Result: Improved Quality of life for children all over the world who struggle with sign language

Video about the Project here:

The ABBy Project — Combining Ballet and Vision AI: My Bold Project to build a Bridge

  1. The Problem StatementPeople have heard of AI but very few have trained an AI model.
  2. The Solution: I entered an Art Festival called ArtPrize in Grand Rapids. 
    1. I plan to have an Art Piece at the event called The ABBy : Ballet + AI + Bridge Project
    2. Four Percepts will be feeding vision AI data to webstreams and PowerBI reports that will show bounding boxes of recognized ballet steps that are mapped to emotions.
    3. On the weekends, members of the crowd will work with a ballet dancer to create new ballet steps that they map to an emotion they are feeling.
    4. They will walk through the training process to train the AI module, and then their ballet step/emotion becomes a part of the Art.
  3. The ResultDemocratizing AI and Edge Intelligence by showing people how to train edge intelligence devices.

Videos about the Project here:

 

 

 

What are you waiting for? Join the adventure, Get your own Percept here:

 

Learn about Azure Percept 

AZURE.COM page
Product detail pages
Pre-built AI models
Azure Percept - YouTube

 

Purchase Azure Percept
Available to our customers – Build your Azure Percept

1 Comment
Occasional Contributor
I share with you the joy you feel. Great job.
%3CLINGO-SUB%20id%3D%22lingo-sub-2660912%22%20slang%3D%22en-US%22%3EThe%20Moment%3A%20Azure%20Percept%2C%20Stream%20Analytics%2C%20and%20PowerBI%20all%20work%20together!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2660912%22%20slang%3D%22en-US%22%3E%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FSanX1mVc5oY%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22%23PowerBI%20Stream%20data%20from%20%23AzurePercept%20%23%20IOT%20thru%20%23Stream%20Analytics%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CH1%20id%3D%22toc-hId-1416684219%22%20id%3D%22toc-hId-1416917896%22%20id%3D%22toc-hId-1416917896%22%20id%3D%22toc-hId-1416917896%22%3E%26nbsp%3B%3C%2FH1%3E%0A%3CH1%20id%3D%22toc-hId--390770244%22%20id%3D%22toc-hId--390536567%22%20id%3D%22toc-hId--390536567%22%20id%3D%22toc-hId--390536567%22%3EMaking%20a%20Positive%20Impact%20in%20the%20World%3F%26nbsp%3B%20How%20the%20Azure%20Percept%20made%20this%20possible!%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAbout%204%20months%20ago%20I%20was%20introduced%20to%20the%20Azure%20Percept%2C%20and%20I%20first%20learned%20about%20Edge%20Intelligence%20in%20a%20meaningful%20way.%26nbsp%3B%20Before%20this%2C%20Edge%20Intelligence%20was%20just%20one%20of%20those%20wonderful%20ideas%20that%20I%20couldn't%20figure%20out%20an%20application%20for.%26nbsp%3B%20Wow%20did%20things%20change%20for%20me!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EYou%20can%20read%20about%20the%20Azure%20Percept%20and%20purchase%20a%20kit%20here%20%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fservices%2Fazure-percept%2F%23product-overview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EThe%20Azure%20Percept%20Page%3C%2FA%3E%26nbsp%3B.%20But%20I%20am%20a%20visual%20learner%20and%20I%20like%20to%20learn%20by%20actually%20applying%20the%20technology%20to%20real%20life%20projects%20and%20solve%20real%20life%20problems.%20So%20what%20is%20the%20Azure%20Percept%20for%20me%3F%26nbsp%3B%20I%20had%20three%20visions%20in%20mind.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMy%20first%20vision%20is%20to%20%3CSTRONG%3Etake%20data%20from%20an%20IoT%20device%2C%20stream%20the%20data%20in%20real%20time%20to%20a%20dashboard%2C%20and%20then%20watch%20the%20data%20update%20in%20real%20time%3C%2FSTRONG%3E.%20The%20Azure%20Percept%20allowed%20me%20to%20this%20without%20having%20coding%2Fdeveloper%20background.%20This%20system%20allowed%20me%20to%20learn%20about%20so%20many%20Azure%20resources%20and%20connect%20them%20together.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMy%20second%20vision%20is%20to%20%3CSTRONG%3Elearn%20about%20Edge%20Intelligence%20and%20Vision%20AI%3C%2FSTRONG%3E%20and%20apply%20these%20concepts.%20At%20the%20end%20of%20this%20article%2C%20I%20have%20videos%20about%20two%20of%20my%20projects%20where%20I%20solve%20real%20world%20problems%20with%20the%20Azure%20Percept.%20The%20Maria%20Project%2C%20I%20am%20especially%20proud%20of%20because%20the%20project%20creates%20a%20customized%20sign%20language%20interpreter%20for%20people%20with%20range%20of%20motion%20constraints.%20The%20ABBy%20Project%20is%20my%20bold%20venture%20to%20bridge%20an%20Ancient%20Art%20Form%20(Ballet)%20with%20cutting%20edge%20technology%20(Vision%20AI%2FEdge%20Intelligence)%20and%20create%20an%20educational%20Art%20Exhibit.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EMy%20third%20vision%20is%20to%20%3CSTRONG%3Ecollect%20better%20data%3C%2FSTRONG%3E.%26nbsp%3B%20After%203%20years%20working%20with%20PowerBI%2C%20building%20star%20schema%20data%20models%2C%20and%20building%20beautiful%20data%20visualizations%2C%20I%20realize%20that%20the%20data%20collection%20side%20of%20things%20is%20not%20as%20developed%20as%20the%20output%2Fvisualization%20side.%26nbsp%3B%20There%20is%20a%20lot%20of%20dirty%20data%20out%20there%20and%20a%20lot%20of%20data%20is%20stored%20and%20never%20looked%20at%20again.%26nbsp%3B%20My%20dream%20is%20to%20collect%20better%20data%20(send%20alerts%20on%20the%20most%20important%20data)%2C%20reduce%20storage%20size%20(ie%20not%20store%20video%20but%20store%20insights%20about%20the%20video)%2C%20allow%20data%20to%20be%20collected%20even%20when%20there%20is%20no%20internet%20(remote%20areas%2C%20low%20signal%20areas)%2C%20and%20allow%20faster%20response%20time%20to%20important%20trends%20in%20the%20data.%26nbsp%3B%20Edge%20Intelligence%20offered%20hope%20to%20solve%20these%20issues!%26nbsp%3B%20I%20was%20hooked%20and%20ready%20to%20learn%20more.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20biggest%20issue%20for%20me%20is%20that%20I%20am%20not%20a%20developer%2C%20so%20accomplishing%20the%20dreams%20above%20was%20going%20to%20be%20a%20challenge.%26nbsp%3B%20How%20was%20I%20going%20to%20bridge%20the%20gap%3F%26nbsp%3B%20Along%20came%20the%20Azure%20Percept%20which%20within%20a%20few%20months%2C%20allowed%20me%20to%20apply%20Edge%20Intelligence%2C%20Stream%20Analytics%2C%20and%20Real%20Time%20PowerBI%20dashboards.%26nbsp%3B%20The%20speed%20at%20which%20I%20was%20able%20to%20learn%20the%20new%20concepts%20and%20apply%20them%20is%20just%20incredible.%26nbsp%3B%20I%20was%20able%20to%20make%20a%20positive%20impact%20to%20people's%20lives%2C%20which%20I%20never%20imagined%20was%20possible%20a%20year%20ago.%26nbsp%3B%20I%20want%20to%20give%20back%20to%20the%20community%20and%20let%20others%20discover%20the%20incredible%20possibilities%20made%20possible%20by%20the%20Azure%20Percept%20(even%20if%20you%20aren't%20a%20developer).%26nbsp%3B%20%26nbsp%3BThis%20is%20my%20second%20blog%20post%2C%20here%20is%20another%20one%20with%20more%20videos%20of%20my%20early%20experiments%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Finternet-of-things%2Fface-your-fears-learn-new-stuff-and-push-out-on-the-edges-with%2Fba-p%2F2413280%22%20target%3D%22_blank%22%3EFun%20Projects%20with%20the%20Azure%20Percept%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-2096742589%22%20id%3D%22toc-hId-2096976266%22%20id%3D%22toc-hId-2096976266%22%20id%3D%22toc-hId-2096976266%22%3EHigh%20Level%20Steps%3A%20Connect%20The%20Azure%20Percept%20to%20PowerBI%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ESteps%20I%20took%20to%20make%20this%20happen%3A%3CUL%3E%0A%3CLI%3ERoute%20Azure%20Percept%20vision%20recognition%20data%20to%20an%20IoT%20Hub%3C%2FLI%3E%0A%3CLI%3ERoute%20IoT%20Hub%20data%20through%20Stream%20Analytics%3C%2FLI%3E%0A%3CLI%3EParse%20the%20JSON%20file%20into%20manageable%20fields%20using%20Stream%20Analytics%20Query%20Language%3C%2FLI%3E%0A%3CLI%3EFeed%20the%20parsed%20data%20into%20PowerBI%20without%20cost%20overruns%3C%2FLI%3E%0A%3CLI%3EAnd%20watch%20data%20update%20in%20PowerBI%20every%20second!%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_0-1629296337663.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304099i714AFFC978901DB2%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_0-1629296337663.png%22%20alt%3D%22CharlesElwood_0-1629296337663.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FmOesH79mqC0%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22The%20TOP%203%20TIPS%20and%20TRICKS%20for%20Azure%20Percept%20and%20IoT%20HUB%20Setup%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EMy%20first%20issue%3A%3CUL%3E%0A%3CLI%3EThe%20Azure%20Precept%20generates%20a%20ton%20of%20data%20but%20how%20do%20you%20see%20the%20data%20that%20is%20being%20generated%3F%3CUL%3E%0A%3CLI%3EI%20learned%20that%20there%20is%20a%20%3CSTRONG%3EView%20Live%20Telemetry%20view%20in%20the%20Azure%20Percept%20Studio%3C%2FSTRONG%3E%20to%20do%20just%20that!%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_1-1629296392738.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304100iBBC9DE2F1A076046%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_1-1629296392738.png%22%20alt%3D%22CharlesElwood_1-1629296392738.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-289288126%22%20id%3D%22toc-hId-289521803%22%20id%3D%22toc-hId-289521803%22%20id%3D%22toc-hId-289521803%22%3EThe%20IoT%20Hub%20Connection%3A%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3ERouting%20Data%20through%20IoT%20Hub%3A%3CUL%3E%0A%3CLI%3ELuckily%2C%20the%20Out%20of%20Box%20(Setup%20Wizard)%20on%20the%20Azure%20Percept%2C%20creates%20an%20IoT%20Hub%20for%20you%20and%20connects%20your%20Edge%20Device%20to%20the%20Hub.%3C%2FLI%3E%0A%3CLI%3ENow%20that%20the%20IoT%20HUB%20was%20connected%2C%20I%20need%20to%20verify%20that%20messages%20where%20traveling%20through%20the%20HUB.%3CUL%3E%0A%3CLI%3EI%20learned%20that%20in%20the%20%3CSTRONG%3EOverview%20tab%2C%20you%20can%20scroll%20down%20through%20the%20overview%20page%20and%20see%20a%20chart%20of%20messages%20going%20from%20device%20to%20the%20cloud.%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_2-1629296438283.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304101i4A70BCF75D804700%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_2-1629296438283.png%22%20alt%3D%22CharlesElwood_2-1629296438283.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1518166337%22%20id%3D%22toc-hId--1517932660%22%20id%3D%22toc-hId--1517932660%22%20id%3D%22toc-hId--1517932660%22%3EThe%20Stream%20Analytics%20Connection%3A%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3EThis%20is%20now%20my%20favorite%20part%20of%20the%20whole%20system%2C%20but%20the%20most%20difficult%20for%20me%20to%20learn.%3COL%3E%0A%3CLI%3EI%20created%20a%20New%20Stream%20Analytics%20job%20and%20now%20had%20to%20connect%20the%20input%20to%20the%20IOT%20HUB.%3COL%3E%0A%3CLI%3E%3CSTRONG%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%3C%2FSTRONG%3EThis%20was%20surprisingly%20easy%20to%20do%20under%20the%20%3CSTRONG%3EJob%20Topology%20-%26gt%3B%20Inputs%20-%26gt%3B%20%2B%20Add%20Stream%20Input%20-%26gt%3B%20IOT%20HUB%3C%2FSTRONG%3E%26nbsp%3B%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_3-1629296512257.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304102iA680A3B69EA8ED91%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_3-1629296512257.png%22%20alt%3D%22CharlesElwood_3-1629296512257.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ENow%20I%20need%20to%20connect%20the%20Output%20side%20to%20a%20Workspace%20in%20PowerBI%3COL%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Similar%20steps%20as%20above%3A%20%3CSTRONG%3EJob%20Topology%20-%26gt%3B%20Outputs%20-%26gt%3B%20%2B%20Add%20-%26gt%3B%20PowerBI%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_4-1629296543484.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304103i92B2C6218E81585A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_4-1629296543484.png%22%20alt%3D%22CharlesElwood_4-1629296543484.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ENow%20I%20wanted%20to%20see%20if%20all%20the%20data%20would%20travel%20between%20the%20input%20and%20outputs%3COL%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20In%20the%20Query%20editor%3A%3COL%3E%0A%3CLI%3EI%20used%20the%20FROM%20section%20to%20define%20the%20input%3C%2FLI%3E%0A%3CLI%3EI%20used%20the%20INTO%20section%20to%20define%20the%20output%3C%2FLI%3E%0A%3CLI%3EAnd%20to%20test%20I%20selected%20everything%20from%20the%20input%20by%20using%20*%20in%20the%20INPUT%20section%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20I%20then%20turned%20on%20my%20Percept%20and%20waited%20for%20the%20Input%20Preview%20section%20to%20show%20incoming%20data.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CUL%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Then%20I%20used%20the%20%3CSTRONG%3ETest%20Query%20button%20and%20then%20clicked%20on%20Test%20Results%20to%20see%20output%20data%3C%2FSTRONG%3E%20from%20the%20query%20%3D)%3C%2Fimg%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_5-1629296669197.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304105i00FF95B24D09DFE3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_5-1629296669197.png%22%20alt%3D%22CharlesElwood_5-1629296669197.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ELet%E2%80%99s%20see%20what%20is%20being%20pushed%20into%20PowerBI%3COL%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Open%20up%20your%20workspace%3C%2FLI%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Look%20in%20Datasets%2C%20and%20when%20Data%20starts%20pushing%20into%20the%20Dataset%2C%20the%20set%20will%20magically%20appear.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CUL%3E%0A%3CLI%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Then%20Create%20a%20report%20from%20the%20dataset%20and%20drag%20all%20the%20fields%20into%20your%20PowerBI%20canvas.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_6-1629296725338.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304106i4A233CDF1825BFA5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_6-1629296725338.png%22%20alt%3D%22CharlesElwood_6-1629296725338.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-969346496%22%20id%3D%22toc-hId-969580173%22%20id%3D%22toc-hId-969580173%22%20id%3D%22toc-hId-969580173%22%3EStream%20Analytics%3A%20The%20Cool%20Part%3A%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3ENow%20for%20the%20cool%20part!%26nbsp%3B%3CUL%3E%0A%3CLI%3EIf%20we%20passed%20everything%20(*)%20into%20PowerBI%2C%20some%20of%20the%20data%20shows%20up%20as%20%E2%80%9Carray%E2%80%9D%3C%2FLI%3E%0A%3CLI%3ESo%2C%20I%20wanted%20to%20Parse%20the%20JSON%20to%20break%20out%20the%20individual%20recognized%20pieces%20of%20data.%3CUL%3E%0A%3CLI%3ENote%3A%20a%20year%20ago%20I%20didn%E2%80%99t%20have%20any%20idea%20how%20JSON%20worked%2C%20so%20if%20I%20can%20figure%20it%20out%2C%20you%20can%20too.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3ECopy%20and%20paste%20the%20following%20code%20into%20the%20Stream%20Analytics%20Edit%20Query%20window.%3CUL%3E%0A%3CLI%3EI%E2%80%99ll%20admit%2C%20I%20didn%E2%80%99t%20know%20how%20any%20of%20this%20worked%20at%20the%20beginning%2C%20but%20I%20walked%20through%20each%20command%20in%20the%20Microsoft%20documentation%20and%20slowly%20figured%20each%20part%20out.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fstream-analytics%2Fstream-analytics-introduction%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EStream%20Analytics%20Query%20Language%20Documentation%3C%2FA%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-sql%22%3E%3CCODE%3ESELECT%0A%0A%20%20%20%20Percept.ArrayValue.label%2C%0A%20%20%20%20Percept.ArrayValue.confidence%2C%0A%20%20%20%20GetArrayElement(Percept.ArrayValue.bbox%2C%200)%20AS%20bbox0%2C%0A%20%20%20%20GetArrayElement(Percept.ArrayValue.bbox%2C%201)%20AS%20bbox1%2C%0A%20%20%20%20GetArrayElement(Percept.ArrayValue.bbox%2C%202)%20AS%20bbox2%2C%0A%20%20%20%20GetArrayElement(Percept.ArrayValue.bbox%2C%203)%20AS%20bbox3%2C%0A%20%20%20%20Percept.ArrayValue.bbox%2C%0A%20%20%20%20CAST%20(udf.main(Percept.ArrayValue.timestamp)%20as%20DateTime)%20as%20DETECTION_TIMESTAMP%2C%0A%20%20%20%20Percept.ArrayValue.timestamp%0A%0AINTO%0A%0A%20%20%20%20%5BType%20in%20your%20PowerBI%20output%20here%5D%0A%0AFROM%0A%0A%20%20%20%20%5BType%20in%20your%20IoT%20HUB%20input%20here%5D%20as%20event%0A%0ACROSS%20APPLY%20GetArrayElements(event.Neural_Network)%20AS%20Percept%0A%0AWHERE%0A%0A%20%20%20%20CAST(Percept.ArrayValue.confidence%20as%20Float)%20%26gt%3B%200.6%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_7-1629296759667.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304107i53F4B57A77C50697%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_7-1629296759667.png%22%20alt%3D%22CharlesElwood_7-1629296759667.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EA%20new%20problem%20arose.%26nbsp%3B%20The%20timestamp%20was%20in%20a%20format%20I%20wasn%E2%80%99t%20used%20to.%26nbsp%3B%3CUL%3E%0A%3CLI%3ESome%20sample%20code%20to%20translate%20the%20time%20stamp%20was%20provided%20for%20a%20UDF%20(user%20defined%20function).%3C%2FLI%3E%0A%3CLI%3EI%20have%20no%20idea%20how%20this%20works%20yet%20but%20tried%20copying%20it%20into%20the%20UDF%20section%20and%20it%20worked!%26nbsp%3B%20Thanks%20to%20Kevin%20Saye%20for%20helping%20me%20with%20this%20part.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-javascript%22%3E%3CCODE%3Efunction%20main(nanoseconds)%20%7B%0A%20%20%20%20var%20epoch%20%3D%20nanoseconds%20*%200.000000001%3B%0A%20%20%20%20var%20epoch%20%3D%20nanoseconds%20*%200.000000001%3B%0A%20%20%20%20var%20d%20%3D%20new%20Date(0)%3B%0A%20%20%20%20d.setUTCSeconds(epoch)%3B%0A%20%20%20%20return%20(d.toISOString())%3B%0A%7D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_8-1629296892865.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304108iEEBF91FBE193B5D5%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_8-1629296892865.png%22%20alt%3D%22CharlesElwood_8-1629296892865.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3ECopy%20the%20following%20code%20into%20a%20new%20function%20via%20%3CSTRONG%3EStream%20Analytics%20-%26gt%3B%20Job%20Topology%20-%26gt%3B%20Functions%20-%26gt%3B%20add%20(call%20it%20%E2%80%9Cmain%E2%80%9D)%20-%26gt%3B%20Javascript%20UDF%20%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId--838107967%22%20id%3D%22toc-hId--837874290%22%20id%3D%22toc-hId--837874290%22%20id%3D%22toc-hId--837874290%22%3EPowerBI%3A%20New%20Data%3A%20The%20%E2%80%9CHello%20World%E2%80%9D%20Moment%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EThis%20was%20one%20of%20the%20most%20exciting%20parts%20of%20the%20whole%20process%20for%20me!%3C%2FSTRONG%3E%3CUL%3E%0A%3CLI%3ELogin%20to%20your%20PowerBI%20service%20again%2C%20(you%20might%20have%20to%20delete%20the%20old%20dataset%20now%20that%20the%20incoming%20fields%20have%20changed)%3C%2FLI%3E%0A%3CLI%3EAfter%20a%20few%20minutes%2C%20a%20new%20dataset%20will%20appear%20with%20the%20same%20name%20as%20before.%20(if%20your%20Percept%20isn%E2%80%99t%20turned%20on%20or%20if%20stream%20analytics%20isn%E2%80%99t%20turned%20on%2C%20the%20dataset%20won%E2%80%99t%20magically%20appear)%3CUL%3E%0A%3CLI%3E%3CSTRONG%3ENow%20create%20a%20report%20from%20this%20dataset%3C%2FSTRONG%3E%2C%20and%20then%20add%20all%20the%20new%20fields%20into%20a%20table%20visual.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_9-1629296921000.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304109iDE11B8EF611EBAB7%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_9-1629296921000.png%22%20alt%3D%22CharlesElwood_9-1629296921000.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId-1649404866%22%20id%3D%22toc-hId-1649638543%22%20id%3D%22toc-hId-1649638543%22%20id%3D%22toc-hId-1649638543%22%3ECost%20estimation%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3ECost%20in%20Azure%20is%20always%20a%20concern%20for%20me%2C%20but%20I%20finally%20figured%20how%20to%20use%20the%20cost%20estimator%20combined%20with%20the%20resource%20utilization%20to%20get%20a%20good%20estimate%20for%20projected%20costs.%3CUL%3E%0A%3CLI%3EI%20went%20to%20the%20Azure%20calculator%20website%2C%20picked%20the%20default%203%20streaming%20units%2C%20and%20projected%20that%20I%20would%20be%20running%20Stream%20Analytics%20for%20about%2021%20days.%3C%2FLI%3E%0A%3CLI%3EThe%20cost%20was%20%24166%2C%20so%20now%20I%20had%20to%20figure%20out%20how%20much%20load%20I%20was%20placing%20on%20the%20streaming%20units.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fcalculator%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fpricing%2Fcalculator%2F%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_10-1629296948588.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304110iB8E049D13F26AAE8%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_10-1629296948588.png%22%20alt%3D%22CharlesElwood_10-1629296948588.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--158049597%22%20id%3D%22toc-hId--157815920%22%20id%3D%22toc-hId--157815920%22%20id%3D%22toc-hId--157815920%22%3EMonitor%20Your%20Usage%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3ENow%20that%20you%20are%20streaming%20data%2C%20and%20have%20an%20estimate%20on%20costs%2C%20its%20time%20to%20see%20how%20much%20of%20the%20stream%20analytics%20resource%20you%20are%20using.%3CUL%3E%0A%3CLI%3EI%20went%20into%20my%20Stream%20Analytics%20Job%20and%20scrolled%20down%20through%20the%20overview%20section%20to%20the%20charts.%3CUL%3E%0A%3CLI%3EThe%20chart%20on%20the%20left%20shows%20me%20how%20many%20input%20messages%20are%20going%20into%20stream%20analytics%20and%20how%20many%20are%20leaving%20stream%20analytics%20to%20go%20into%20the%20PowerBI%20report.%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EThe%20chart%20on%20the%20right%20is%20really%20interesting%20because%20I%20am%20only%20using%2014%25%20of%20my%20Streaming%20Units%20(STUs).%3C%2FSTRONG%3E%26nbsp%3B%20I%20am%20nowhere%20near%20the%2080%25%20recommended%20resource%20utilization%2C%20so%20I%20plan%20to%20scale%20this%20back%20to%201%20streaming%20unit.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_11-1629296980915.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304111iA9CCAE9194100C66%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_11-1629296980915.png%22%20alt%3D%22CharlesElwood_11-1629296980915.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--1965504060%22%20id%3D%22toc-hId--1965270383%22%20id%3D%22toc-hId--1965270383%22%20id%3D%22toc-hId--1965270383%22%3EVisualizing%20the%20Data%20in%20Real%20Time%3C%2FH1%3E%0A%3CUL%3E%0A%3CLI%3EOkay%2C%20not%20real%20time%2C%20but%20close!%26nbsp%3B%20I%20noticed%20a%205%20second%20delay%20between%20when%20I%20moved%20in%20front%20of%20the%20Percept%20to%20when%20my%20PowerBI%20dashboard%20showed%20the%20update.%3CUL%3E%0A%3CLI%3EHere%20are%20the%20steps%20I%20took%3A%3CUL%3E%0A%3CLI%3EI%20found%20the%20workspace%20where%20I%20was%20streaming%20to%20in%20Powerbi.com%20service.%3C%2FLI%3E%0A%3CLI%3EI%20scrolled%20to%20the%20dataset%20section%20and%20waited%20a%20few%20seconds%20for%20data%20to%20be%20pushed%20into%20the%20dataset%2C%20and%20then%20the%20dataset%20magically%20appeared.%3C%2FLI%3E%0A%3CLI%3EI%20then%20used%20the%20ellipses%20next%20to%20the%20dataset%20to%20create%20a%20report%20with%20visualizations%20to%20my%20liking.%3C%2FLI%3E%0A%3CLI%3EI%20then%20saved%20the%20report%2C%20and%20then%20on%20each%20visualization%20I%20wanted%20to%20update%20in%20real%20time%2C%20I%20pinned%20the%20visual%20to%20a%20dashboard.%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EThen%20I%20went%20to%20the%20dashboard%20and%20WOW%2C%20the%20data%20was%20streaming%20in%20and%20updating%20the%20visuals%20every%20second!%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22CharlesElwood_12-1629297011424.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F304112i044B9C485B707C2D%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22CharlesElwood_12-1629297011424.png%22%20alt%3D%22CharlesElwood_12-1629297011424.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EThe%20full%20video%20series%3A%20How%20to%20connect%20the%20Azure%20Percept%20to%20a%20Real%20Time%20Streaming%20PowerBI%20Dashboard%3A%3COL%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2FSanX1mVc5oY%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EConnecting%20the%20Azure%20Percept%20to%20IoT%20HUB%20to%20Stream%20Analytics%20to%20PowerBI%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fyoutu.be%2FmOesH79mqC0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3ETop%203%20Tips%20to%20troubleshooting%20the%20Connection%20from%20Azure%20Percept%20to%20the%20IoT%20HUB%3C%2FA%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EComing%20Soon%20%3A%20Setting%20Up%20Stream%20Analytics%20with%20Azure%20Percept%20Data%3C%2FLI%3E%0A%3CLI%3EComing%20Soon%20%3A%20Setting%20Up%20PowerBI%20live%20streaming%20Dashboards%20with%20Azure%20Percept%20Data%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH1%20id%3D%22toc-hId-269744434%22%20id%3D%22toc-hId-269978111%22%20id%3D%22toc-hId-269978111%22%20id%3D%22toc-hId-269978111%22%3EWhere%20I%20go%20from%20here%3F%20Dreaming%20Big%20and%20Improving%20People's%20Lives%3C%2FH1%3E%0A%3CH3%20id%3D%22toc-hId--1279544591%22%20id%3D%22toc-hId--1279310914%22%20id%3D%22toc-hId--1279310914%22%20id%3D%22toc-hId--1279310914%22%3E%3CSTRONG%3EThe%20Maria%20Project%3C%2FSTRONG%3E%20%E2%80%94%20Customized%20Sign%20Language%20Interpreter%3A%20Removing%20barriers%20to%20communication%26nbsp%3B%3C%2FH3%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CU%3E%26nbsp%3BThe%20Problem%20Statement%3C%2FU%3E%3A%20Children%20with%20Special%20Needs%20like%20Maria%20in%20the%20video%20can%E2%80%99t%20sign%20in%20sign%20language%20like%20everybody%20else.%3C%2FLI%3E%0A%3CLI%3E%3CU%3EThe%20Solution%3C%2FU%3E%3A%20Use%20the%20Azure%20Percept%20to%20create%20a%20custom%20sign%20language%20translator%20for%20Maria%20to%20accommodate%20her%20range%20of%20motion.%3C%2FLI%3E%0A%3CLI%3E%3CU%3EThe%20Result%3C%2FU%3E%3A%3CSTRONG%3E%26nbsp%3BImproved%20Quality%20of%20life%20for%20children%20all%20over%20the%20world%20who%20struggle%20with%20sign%20language%20%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EVideo%20about%20the%20Project%20here%3A%3C%2FP%3E%0A%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FJwQQeeU-ip4%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22Custom%20%23AI%20Sign%20Language%20Interpreter%20for%20Maria%20in%20Puerto%20Rico%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CH3%20id%3D%22toc-hId-1207968242%22%20id%3D%22toc-hId-1208201919%22%20id%3D%22toc-hId-1208201919%22%20id%3D%22toc-hId-1208201919%22%3E%3CSTRONG%3EThe%20ABBy%20Project%3C%2FSTRONG%3E%20%E2%80%94%20Combining%20Ballet%20and%20Vision%20AI%3A%26nbsp%3BMy%20Bold%20Project%20to%20build%20a%20Bridge%3C%2FH3%3E%0A%3COL%3E%0A%3CLI%3E%3CU%3EThe%20Problem%20Statement%3C%2FU%3E%3A%26nbsp%3B%3CSTRONG%3EPeople%20have%20heard%20of%20AI%20but%20very%20few%20have%20trained%20an%20AI%20model.%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CU%3EThe%20Solution%3C%2FU%3E%3A%20I%20entered%20an%20Art%20Festival%20called%20ArtPrize%20in%20Grand%20Rapids.%26nbsp%3B%3COL%3E%0A%3CLI%3EI%20plan%20to%20have%20an%20Art%20Piece%20at%20the%20event%20called%20The%20ABBy%20%3A%20Ballet%20%2B%20AI%20%2B%20Bridge%20Project%3C%2FLI%3E%0A%3CLI%3EFour%20Percepts%20will%20be%20feeding%20vision%20AI%20data%20to%20webstreams%20and%20PowerBI%20reports%20that%20will%20show%20bounding%20boxes%20of%20recognized%20ballet%20steps%20that%20are%20mapped%20to%20emotions.%3C%2FLI%3E%0A%3CLI%3EOn%20the%20weekends%2C%20members%20of%20the%20crowd%20will%20work%20with%20a%20ballet%20dancer%20to%20create%20new%20ballet%20steps%20that%20they%20map%20to%20an%20emotion%20they%20are%20feeling.%3C%2FLI%3E%0A%3CLI%3EThey%20will%20walk%20through%20the%20training%20process%20to%20train%20the%20AI%20module%2C%20and%20then%20their%20ballet%20step%2Femotion%20becomes%20a%20part%20of%20the%20Art.%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CU%3EThe%20Result%3C%2FU%3E%3A%26nbsp%3B%3CSTRONG%3EDemocratizing%20AI%20and%20Edge%20Intelligence%20by%20showing%20people%20how%20to%20train%20edge%20intelligence%20devices.%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EVideos%20about%20the%20Project%20here%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FddI4HP15vNo%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22World%20First%20%23Ballet%20and%20Artificial%20Intelligence%20(%23AI)%20%23Art%20%3A%20Your%20own%20body%20language%20interpreter%3F%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20style%3D%22position%3A%20relative%3B%20left%3A%2012.5%25%3B%20padding-bottom%3A%2042.3%25%3B%20padding-top%3A%200px%3B%20height%3A%200%3B%20overflow%3A%20hidden%3B%20min-width%3A%20320px%3B%20max-width%3A%2075%25%3B%22%3E%3CIFRAME%20src%3D%22https%3A%2F%2Fwww.youtube-nocookie.com%2Fembed%2FE5L4j7Bvfeo%3Fcontrols%3D0%26amp%3Bautoplay%3Dfalse%26amp%3BWT.mc_id%3Diot-c9-niner%22%20frameborder%3D%220%22%20allowfullscreen%3D%22allowfullscreen%22%20style%3D%22position%3A%20absolute%3B%20top%3A%200%3B%20left%3A%200%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%22%20class%3D%22video-iframe%22%20title%3D%22%23ArtPrize%202021%20%3A%20An%20Project%20to%20Connect%20%23AzurePercept%20%23AI%20to%20Ballet%22%3E%3C%2FIFRAME%3E%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH1%20id%3D%22toc-hId--857651659%22%20id%3D%22toc-hId--857417982%22%20id%3D%22toc-hId--857417982%22%20id%3D%22toc-hId--857417982%22%3EWhat%20are%20you%20waiting%20for%3F%20Join%20the%20adventure%2C%20Get%20your%20own%20Percept%20here%3A%3C%2FH1%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3ELearn%20about%20Azure%20Percept%26nbsp%3B%20%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fazure.microsoft.com%252Fen-us%252Fservices%252Fazure-percept%26amp%3Bdata%3D04%257C01%257Camira.youssef%2540microsoft.com%257C3c90a39910614544eeff08d951ea58d6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637630890012324513%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DoGAwtr%252FL9q3wWdKXQjW7ZfDewFlRDBZVnqm%252Fludlu4E%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAZURE.COM%20page%3C%2FA%3E%3CU%3E%3CBR%20%2F%3E%3C%2FU%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Faka.ms%252Fgetazurepercept%26amp%3Bdata%3D04%257C01%257Camira.youssef%2540microsoft.com%257C3c90a39910614544eeff08d951ea58d6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637630890012324513%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3D3MqAgVrB3c3Mthda8DfhhxN3lxedCcGRuqRGSs%252BDJRU%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EProduct%20detail%20pages%3C%2FA%3E%3CU%3E%3CBR%20%2F%3E%3C%2FU%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Faka.ms%252Fazureperceptdiscover%26amp%3Bdata%3D04%257C01%257Camira.youssef%2540microsoft.com%257C3c90a39910614544eeff08d951ea58d6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637630890012324513%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3D9tM4Icw4jc2YdK7Yvt1sdJC5%252Bj1DP1Ce5sTEc%252FeKb80%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EPre-built%20AI%20models%3C%2FA%3E%3CU%3E%3CBR%20%2F%3E%3C%2FU%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fwww.youtube.com%252Fchannel%252FUCa8_TsUuotIMuzkLzGNQPIg%26amp%3Bdata%3D04%257C01%257Camira.youssef%2540microsoft.com%257C3c90a39910614544eeff08d951ea58d6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637630890012334479%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3D2M4ZleexivnNqoJs0Q9D1fB7KlfVa%252FqVjcQHP7cGfL8%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EAzure%20Percept%20-%20YouTube%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSTRONG%3EPurchase%20Azure%20Percept%3C%2FSTRONG%3E%20%3CBR%20%2F%3EAvailable%20to%20our%20customers%20%E2%80%93%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fwww.microsoft.com%252Fen-us%252Fstore%252Fbuild%252Fazure-precept%252F8v2qxmzbz9vc%26amp%3Bdata%3D04%257C01%257Camira.youssef%2540microsoft.com%257C3c90a39910614544eeff08d951ea58d6%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637630890012334479%257CUnknown%257CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%253D%257C1000%26amp%3Bsdata%3DHyqSGp3iM83b51NKtflqFJSpFLSqS3Ok0oNVGfLmsZg%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EBuild%20your%20Azure%20Percept%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2660912%22%20slang%3D%22en-US%22%3E%3CP%3EWhat%20is%20Azure%20Percept%20and%20how%20you%20don't%20need%20to%20be%20a%20developer%20to%20use%20it%20for%20feeding%20IoT%20data%20and%20insights%20into%20PowerBI%20dashboards.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2660912%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EAzure%20Percept%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIoT%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2728253%22%20slang%3D%22en-US%22%3ERe%3A%20The%20Moment%3A%20Azure%20Percept%2C%20Stream%20Analytics%2C%20and%20PowerBI%20all%20work%20together!%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2728253%22%20slang%3D%22en-US%22%3EI%20share%20with%20you%20the%20joy%20you%20feel.%20Great%20job.%3C%2FLINGO-BODY%3E
Co-Authors
Version history
Last update:
‎Aug 23 2021 08:34 AM
Updated by: