Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 776 Bytes

iot-central-connection-environment.md

File metadata and controls

21 lines (19 loc) · 776 Bytes
title description services author ms.service ms.topic ms.date ms.author ms.custom
include file
include file
iot-central
dominicbetts
iot-central
include
11/03/2020
dobett
include file

Set the environment variables to configure the sample. The following snippet shows how set the environment variables at the Windows command prompt. If you're using a bash shell, replace the set commands with export commands:

set IOTHUB_DEVICE_SECURITY_TYPE=DPS
set IOTHUB_DEVICE_DPS_ID_SCOPE=<The ID scope you made a note of previously>
set IOTHUB_DEVICE_DPS_DEVICE_ID=sample-device-01
set IOTHUB_DEVICE_DPS_DEVICE_KEY=<The generated device key you made a note of previously>
set IOTHUB_DEVICE_DPS_ENDPOINT=global.azure-devices-provisioning.net