.NET Core on IoT: It's now even easier. Enter names on command line.
March 05, 2020 14:27
David Jones MVP
iot
powershell
dotnetcore
iothub
azure
iot-core
raspbian
05 Mar 2020 14:27:06
David Jones MVP
iot powershell dotnetcore iothub azure iot-core raspbian
iot powershell dotnetcore iothub azure iot-core raspbian
It’s now gone mega: Just run get-iothub GroupName,HubName,DeviceName
And it will auto generate all 3!
- (Recapping) As previous, you need an Azure Subscription and Az Cli installed.
- Get the az-iothub-ps repository:
- https://github.com/djaus2/az-iothub-ps
- Here’s what you need to clone it:
https://github.com/djaus2/az-iothub-ps.git
- Or just get the zip file here
- Download or clone it into a folder on your desktop
- In the PS folder run
.\set-path
- Then run the script with entity names:
get-iothub GroupName,HubName,DeviceName
- You will be prompted to select the Subscription
- Then each of the 3 entities (Group, Hub and Device) will be auto-generated in order.
- There will be a prompt for the Group location and for the Hub SKU.
- You can optionally add a await period in seconds to that command line
egget-iothub GroupName,HubName,DeviceName 5
- At any Yes-No where the default is Yes is will auto-continue after that wait period.
- Any any Press any key to Continue is will similarly proceed after that delay.
- When done it will generate the connection strings etc … All-In-One!
HOW GOOD IS THAT?
Topic | Subtopic | |
This Category Links | ||
Category: | IoT Index: | IoT |
Next: > | Now for some HW on the RPi | A Sampler from the GitHub Repository dotnet/io |
< Prev: | .NET Core on IoT | You can now fully automate Group-Hub-Device creation |