Hello @Varun Venkatesh , Posting the ongoing investigation from the product team on this issue,
Unfortunately, we haven't been able to reproduce this yet, so let's keep investigating.
Could you please repeat the tutorial from the beginning and share screen shots (or video record) your steps, particularly when you get and set your connection env. variables? You can blur over your credentials if you'd prefer.
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 group primary key you made a note of previously>
set IOTHUB_DEVICE_DPS_ENDPOINT=global.azure-devices-provisioning.net
Another thing to try is to just temporarily hard code these environment variables into the sample file to ensure there's nothing wrong with your environment or how you're setting these.
Let us know when you've tried again and we'll take a look at the screen shots/video and go from there.