# Ensure no Azure SQL Databases allow ingress from 0.0.0.0/0 (ANY IP)

- Source: https://support.icompaas.com/support/solutions/articles/62000229871-ensure-no-azure-sql-databases-allow-ingress-from-0-0-0-0-0-any-ip-
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [General](https://support.icompaas.com/support/solutions/62000037933) › [Azure Compliance / Control / Check](https://support.icompaas.com/support/solutions/folders/62000168797)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Description:

This control ensures that Azure SQL Servers do not allow access from all IP addresses (0.0.0.0/0). Allowing access from any IP would expose the database to the public internet and increase the risk of unauthorized access. To reduce this risk, firewall rules must restrict access to specific, trusted IP addresses or approved virtual networks while preventing unrestricted internet access.

  

Rationale:

-   Azure SQL Server has a firewall that blocks unauthorized connections.
    
-   Using specific IP ranges or service endpoints reduces the attack surface.
    
-   Prevents exposure of sensitive data and mitigates potential attacks, such as brute-force login attempts and SQL injection.
    
-   Helps meet security and compliance best practices.
    

  

Impact:

-   Restricting access may break connections from clients or services that were previously using public access.
    
-   To maintain connectivity, you must define custom firewall rules for trusted IPs or enable virtual network/service endpoint access.
    

  

Default Value:

By default, Azure SQL Server does not allow access from all IP addresses. Only Azure services are allowed, and public internet access from ANY IP (0.0.0.0/0) is not enabled by default.

  

Pre-requisites:

-   An existing Azure SQL Server
    
-   Permissions: Owner, Contributor, or SQL Server Contributor
    

  

Test Plan:

1.  Sign in to the Azure Portal at [https://portal.azure.com](https://portal.azure.com/)
    
2.  Go to SQL Servers
    
3.  Select the SQL Server hosting the database
    
4.  Under settings, Open Networking
    
5.  Verify Public network access is Disabled  
    OR
    
6.  If set to Selected networks, verify that no firewall rule allows  
    0.0.0.0 – 255.255.255.255 (ANY IP)
    
7.  If not, follow the implementation steps.
    

![](https://support.icompaas.com/assets/kb/41e331bf5084502b.png)

Implementation Steps:

1.  Sign in to the Azure Portal at [https://portal.azure.com](https://portal.azure.com/)
    
2.  Navigate to SQL Servers
    
3.  Select the Azure SQL Server that hosts the database
    
4.  In the left-hand menu, under security, select Networking
    

                    ![](https://support.icompaas.com/assets/kb/5d8b3fe8a6c69f7d.png)

5.  Under Public network access, select Disabled
    

![](https://support.icompaas.com/assets/kb/bffa07823a1c6e7d.png)

6.  Click Save
    

  

Backout Plan:

1.  Log in to the Microsoft Azure Portal [https://portal.azure.com](https://portal.azure.com/)
    
2.  Navigate to SQL Servers
    
3.  Select the Azure SQL Server hosting the database
    
4.  In the left-hand menu, select Networking
    
5.  Under Public network access, select Selected networks
    
6.  Add firewall rules for the required trusted IP addresses
    
7.  Click Save
    

  

References:

-   [https://learn.microsoft.com/en-us/azure/azure-sql/database/network-access-controls-overview?view=azuresql](https://learn.microsoft.com/en-us/azure/azure-sql/database/network-access-controls-overview?view=azuresql)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
