IoT Hub has a defined set of permissions that needs to be taken into consideration. It is used for any IoT device or backend solution to connect or communicate with the IoT Hub. Once you have the appropriate permission, only then you will be able to access the respective IoT Hub endpoints.
IoT Hub access rights
Getting ready
The different permissions that you can grant to a device or backend application to access your IoT Hub are:
- iothubowner: This will allow any device or backend solution all permissions
- service: This will allow an access policy with only the Service connect permission
- device: This will enable the device with an access Policy which has the Device connect permission
- registryRead: This is a policy with Registry...