Get SAS-Token from the VS-Code
- Install VS-Code - https://code.visualstudio.com/download
- Start the VS-Code
- On the left side click Extensions, search for azure iot hub and select the Azure IoT Hub:
- Click Install:
- When installation is finished, an Azure Icon is shown on the left side. Click on Sign in to Azure:
- In the Explorer – the section AZURE IOT HUB is shown:
- You can now see your Hub which you created:
- Expand Devices and click Set IoT Hub Connection String. Now a Pop-up is shown where you have to paste the primary connection string from and click ENTER:
- You can now see your device under Devices:
- Right-Click on device1 and select Generate SAS Token for Device:
- Enter an expiration time and click ENTER:
- The SAS Token is copied to your clipboard and shown in VS-Code’s OUTPUT window: