This repository contains a set of scripts to provision devices in Azure IoT Central.
run npm install to install the required packages.
npm install
Set these on the index.js file:
const idScope = '{ID scope}';
const deviceId = '{Device ID}';
const symmetricKey = '{SAS Primary key}';
Run the script:
npm run start
The script will provision the device in Azure IoT Central and will output the connection parameters.
This script is based on this code by Peter Bons