Azure IoT Hub Device Provisioning Service (DPS) shared access policies expose the IoT Hub to potential security vulnerabilities inherent in security tokens.
In Azure Console -
In Terraform -
References:
https://learn.microsoft.com/en-us/azure/iot-dps/concepts-roles-operations
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iothub_dps_shared_access_policy