mleister
mleister

Reputation: 2585

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

Upvotes: 1

Views: 1562

Answers (2)

Daniel Gomes
Daniel Gomes

Reputation: 11

In order to enable this option you need to set yourself as the hub owner. Go to Access control (IAM) tab and add a role assignment which will grant access to the selected resource. Grant access tab

Set yourself as a owner and go back to the Explorers => IoT devices view, You can now create a new IoT device.

Upvotes: 1

Joao Gaspar
Joao Gaspar

Reputation: 46

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.

Upvotes: 3

Related Questions