An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
Hi Leonardo Song,
This message usually appears when the identity that is accessing the IoT Hub does not have the right permissions assigned at the Azure level. The IoT Hub itself is working, but Azure is blocking access because of role based access control.
Here are a few things you can check step by step.
First, check which identity is being used. This could be a user account, a service principal, or a managed identity. Once you know the identity, open the IoT Hub in Azure portal and go to Access control. Make sure this identity is listed there.
Second, verify the role assignment. The identity should have one of the IoT roles assigned at the IoT Hub scope. For example IoT Hub Data Contributor for sending and receiving device messages IoT Hub Registry Read or Write if you are managing devices If the role is applied only at subscription or resource group level, try assigning it directly on the IoT Hub to avoid permission inheritance issues.
Third, allow some time after role changes. After assigning or changing a role, Azure permissions do not apply immediately. It can take a few minutes before access starts working. During this time, the insufficient permissions warning can still show up.
Fourth, check the action you are trying to perform. For example, reading device telemetry, creating devices, using Azure Monitor, or connecting through SDKs all require different permissions. Even if you can see the IoT Hub in the portal, some operations will fail if the role does not match the action.
Fifth, if you are using managed identity. Make sure the managed identity is enabled and that the correct identity is selected. Sometimes the wrong identity is attached to the service, which leads to permission errors.
Here are official references that explain this clearly.
Azure IoT Hub access control https://learn.microsoft.com/azure/iot-hub/iot-hub-dev-guide-sas?tabs=node
Built in roles for IoT Hub https://learn.microsoft.com/azure/role-based-access-control/built-in-roles#iot-hub
In summary, this notification is not a service outage. It is an access issue caused by missing or incorrect role assignments. Once the correct role is applied at the IoT Hub level and permissions are fully propagated, the warning should go away.
Hope this helps clarify the issue. Do let me know if you have any further queries.
Thankyou!