You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -94,14 +94,16 @@ The following table describes the permissions available for IoT Hub service API
94
94
95
95
## Azure AD access and shared access policies
96
96
97
-
By default, IoT Hub supports service API access through both Azure AD and [shared access policies and security tokens](iot-hub-dev-guide-sas.md). To minimize potential security vulnerabilities inherent in security tokens, disable access with shared access policies:
97
+
By default, IoT Hub supports service API access through both Azure AD and [shared access policies and security tokens](iot-hub-dev-guide-sas.md). To minimize potential security vulnerabilities inherent in security tokens, disable access with shared access policies.
98
98
99
99
1. Ensure that your service clients and users have [sufficient access](#manage-access-to-iot-hub-by-using-azure-rbac-role-assignment) to your IoT hub. Follow the [principle of least privilege](../security/fundamentals/identity-management-best-practices.md).
100
100
1. In the [Azure portal](https://portal.azure.com), go to your IoT hub.
101
101
1. On the left pane, select **Shared access policies**.
102
-
1. Under **Connect using shared access policies**, select **Deny**.
102
+
1. Under **Connect using shared access policies**, select **Deny**, and review the warning.
103
103
:::image type="content" source="media/iot-hub-dev-guide-azure-ad-rbac/disable-local-auth.png" alt-text="Screenshot that shows how to turn off IoT Hub shared access policies." border="true":::
104
-
1. Review the warning, and then select **Save**.
104
+
105
+
> [!WARNING]
106
+
> By denying connections using shared access policies, all users and services that connect using this method lose access immediately. Notably, since Device Provisioning Service (DPS) only supports linking IoT hubs using shared access policies, all device provisioning flows will fail with "unauthorized" error. Proceed carefully and plan to replace access with Azure AD role based access. **Do not proceed if you use DPS**.
105
107
106
108
Your IoT Hub service APIs can now be accessed only through Azure AD and RBAC.
0 commit comments