Create an Iot hub and a device

  1. Go to https://portal.azure.com/ and log in.
  2. On the top click IoT Hub:
  3. Click Create IoT hub.
  4. Select your Resource group or click Create new and and add an Iot hub name and a Region:
  5. Optional - Switch to the Add-ons tab and untick Defender for IoT.
  6. Switch to the Review + create tab:
  7. Go to Home > IoT Hub and wait for the hub to be created (this takes a few minutes). When your wccoaHub is ready, it is listed under Home > IoT Hub:
  8. Click on Devices and add a new device:
  9. Set a device name:
  10. Click on your device and open Security Settings/Shared access policies. Click on iothubowner – on the right side. Keys and connection strings are shown: