azure-iot-diagnostics

An easier way to set diagnostics configuration for your Azure IoT Solutions.

Usage no npm install needed!

<script type="module">
  import azureIotDiagnostics from 'https://cdn.skypack.dev/azure-iot-diagnostics';
</script>

README

Azure IoT Diagnostics

Build status

An easier way to set diagnostics configuration for your Azure IoT Solutions.

Go to https://aka.ms/azure.iot for more awesome Azure IoT projects and resources.

Prerequisites

Setup

  • Open terminal, and run npm install -g azure-iot-diagnostics

Usage

Output usage information

$ az-iot-diag -h
$ az-iot-diag set -h

Turn on diagnostics and set sample rate as 10% for device1 and device2

$ az-iot-diag set --login "HostName=<my-hub>.azure-devices.net;SharedAccessKeyName=<my-policy>;SharedAccessKey=<my-policy-key>" --enable true --sample_rate 10 --devices device1,device2

usage