In order to connect to a specific IoT Hub, you must do the following:
- Create an IoT Hub instance
- Add your MS account to the
IoT Data Readerrole (IoT Data Contributorrole if you'd like to invoke commands) - Update the
appsettings.jsonto point to your event hub connection string