Not disabling Unauthenticated access to the ACR repository could lead to data breach.
In Azure Console -
In Terraform -
References:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iot_security_solution#acr_authentication