This repo is based on Azure IoT Central Device Bridge
This repository contains everything you need to create an azure function that takes data from an iot hub and forwards it to IoT Central
Take the following steps to deploy an Azure Function into your subscription and set up the device bridge.
-
Click the
Deploy to Azure
button above. This opens up a custom ARM template in the Azure Portal to deploy the Azure Function. -
Go to your IoT Central application, and navigate to the
Administration > Device Connection
area.
- Copy the
ID Scope
and paste it into theScope ID
field the custom template. - In the same page, under
Enrollment groups
, open theSAS-IoT-Devices
group. In the group page, copy either thePrimary key
or theSecondary key
and paste it into theIot Central SAS Key
field. (this key will be stored in a Key Vault provisioned with the function).
- Function uses an IoT Hub consumer group called
azurefunciotc
, you must create it in order to function can get messages from IoT hub