Feb 27 2020 04:20 PM - edited Feb 27 2020 10:53 PM
I have a long time felt that the .NET Core C# Quickstarts for the Azure IoT Hub SDK could be simpler for a newbie. To that end I created the UWP apps Azure IoT Hub Device Streaming and then Azure IoT Hub Toolbox., as available on GitHub and in The Store. These encapsulated the Quickstart functionality and orchestrated IoT Hub creation. This latest salvo into this area can make it even simpler!
You run one PowerShell script with which you can create an IoT Hub, get all of the connection strings, save them to environment variables, create PowerShell and Bash scripts to re-set those variables, get the required targeted .NET Core SK binary including expansion of the download amongst other things. Included is a copy of the Quickstarts modified so that all apps get the required connection strings from the environment variables. A couple of variants to the apps have been added. More coming, especially with RPi hardware use.
The PowerShell script and its underlying scripts is available on GitHub as Azure IoT Hub PowerShell Scripts . It is a menu driven UI, with a bit of color included!. I have written as series of blogs on .NET Core, especially on the RaspberryPi (IoT-Core and Raspian) and upon running the Quickstarts there via the PowerShell script on my blog at http://www.sportronics.com.au .Here are the specific links:
(Note: In reverse order)
Extra: Using the az-iothub-ps script
Also a presentation on .NET Core on the RPI (the PPT slide deck)
Mar 01 2020 04:28 AM
The script now has a "one touch option". You now can do it all with one command.
Mar 04 2020 08:07 PM - edited Mar 04 2020 08:08 PM
It just got even easier! Just enter
get-iothub groupname,hubname,device,name
And your away! About this new feature on my blog.
Usual setup as per blog articles.
Mar 15 2020 05:17 PM
And
get-iothub groupname,hubname,device,name 5
will completely autorun to completion once you select a couple of things, with only 5 sec pauses instead of the press-any-key-to-continue messages.