IP Addresses are considered as personal data and logging unmasked IP addresses poses privacy risks for users and IoT Devices.
In Azure Console -
In Terraform -
References:https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iot_security_solution#log_unmasked_ips_enabled