Azure IoT Hub 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-fundamentals/iot-security-deployment#securing-the-cloud
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iothub_shared_access_policy