Search code examples
azureazure-iot-hub

Azure IoT Hub is unable to retrieve devices (Shared policy is disabled)


I created a new resource group as well as a new IOT hub.

The next logical step would be to create a new IoT device inside the IoT hub.

However the create button in "Explorers/IoT devices" is disabled because of the following error message:

Unable to retrieve devices. Please ensure a Shared access policy is enabled with necessary permissions [Registry Write Service Connect].

Shared access policies:

enter image description here


Solution

  • Happened to me to. Check if you are the registered as the owner.

    Go to your resource group, "Access Control (IAM)" and click on "Add role assignments". Then select "owner" and add yourself.

    Worked for me.