For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/code_security/iac_security/iac_rules/terraform-azure-unrestricted-sql-server-access.md.
A documentation index is available at /llms.txt.
This vulnerability occurs when Azure SQL Server firewall rules allow access from a wide range of IP addresses or use the 0.0.0.0 address, potentially exposing the database to unauthorized access from the internet. Overly permissive firewall rules significantly increase the attack surface and risk of data breaches or unauthorized access to sensitive database information. To secure your SQL Server, define tight IP ranges in your firewall rules, as shown in the secure example below: