Defender for IoT will fail in identifying security related system configuration issues.
In Azure Console -
In Terraform -
References:
https://learn.microsoft.com/en-us/azure/defender-for-iot/device-builders/concept-baseline
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/iot_security_solution#baseline