title: "sys.firewall_rules (Azure SQL Database) | Microsoft Docs" ms.custom: "" ms.date: "03/14/2017" ms.prod: "" ms.prod_service: "sql-database" ms.reviewer: "" ms.service: "sql-database" ms.component: "system-catalog-views" ms.suite: "sql" ms.technology: system-objects ms.tgt_pltfrm: "" ms.topic: "language-reference" f1_keywords:
- "sys.firewall_rules"
- "firewall_rules"
- "sys.firewall_rules_TSQL"
- "firewall_rules_TSQL" dev_langs:
- "TSQL" helpviewer_keywords:
- "firewall_rules"
- "sys.firewall_rules" ms.assetid: 140d2cd8-9aa1-4cc5-870d-e1dbc873b3fe caps.latest.revision: 14 author: edmacauley ms.author: edmaca manager: craigg monikerRange: "= azuresqldb-current || = sqlallproducts-allversions"
[!INCLUDEtsql-appliesto-xxxxxx-asdb-xxxx-xxx-md]
Returns information about the server-level firewall settings associated with your [!INCLUDEmsCoName] [!INCLUDEssSDSfull].
The sys.firewall_rules view contains the following columns:
| Column name | Data type | Description |
|---|---|---|
| id | INT | The identifier of the server-level firewall setting. |
| name | NVARCHAR(128) | The name you chose to describe and distinguish the server-level firewall setting. |
| start_ip_address | VARCHAR(50) | The lowest IP address in the range of the server-level firewall setting. IP addresses equal to or greater than this can attempt to connect to the [!INCLUDEssSDS] server. The lowest possible IP address is 0.0.0.0. |
| end_ip_address | VARCHAR(50) | The highest IP address in the range of the server-level firewall setting. IP addresses equal to or less than this can attempt to connect to the [!INCLUDEssSDS] server. The highest possible IP address is 255.255.255.255.Note: Windows Azure connection attempts are allowed when both this field and the start_ip_address field equals 0.0.0.0. |
| create_date | DATETIME | UTC date and time when the server-level firewall setting was created. Note: UTC is an acronym for Coordinated Universal Time. |
| modify_date | DATETIME | UTC date and time when the server-level firewall setting was last modified. |
To remove a database firewall rule, use sp_delete_firewall_rule (Azure SQL Database). To set a firewall rule for a single database, see sys.database_firewall_rules (Azure SQL Database). To return information about existing firewall rules, query sys.firewall_rules (Azure SQL Database).
Read-only access to this view is available to all users with permission to connect to the master database.
sys.database_firewall_rules (Azure SQL Database)
sp_set_firewall_rule (Azure SQL Database)
Configure a Windows Firewall for Database Engine Access
Configure a Firewall for FILESTREAM Access
Configure a Firewall for Report Server Access
How to: Configure Firewall Settings (Azure SQL Database)