Edit

Microsoft SQL guardrails initiative

This article describes the Policy guardrails in place to ensure Azure SQL is deployed securely.

Initiative details

Azure Enclave assigns the SQL guardrails initiative (policy set definition ID 0fbe78a5-1722-4f1b-83a5-89c14151fa60) to workload resource groups.

The Effect values in the tables show the effects supported by the policy definitions. The effective behavior of a policy assignment can vary based on Azure Enclave policy configuration and policy parameters. The initiative references the TLS policy twice under separate reference IDs; the table lists that definition once.

SQL GitHub Repository

GitHub Repository

SQL Policies Built in

Name Description Version Type Supported definition effect Policy definition
SQL managed instances should use customer-managed keys to encrypt data at rest Implementing Transparent Data Encryption (TDE) with your own key provides you with increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement. 2.0.0 BuiltIn Audit, Deny, Disabled Link
SQL servers should use customer-managed keys to encrypt data at rest Implementing Transparent Data Encryption (TDE) with your own key provides increased transparency and control over the TDE Protector, increased security with an HSM-backed external service, and promotion of separation of duties. This recommendation applies to organizations with a related compliance requirement. 2.0.1 BuiltIn Audit, Deny, Disabled Link
SQL Managed Instance should have the minimal TLS version of 1.2 Setting minimal TLS version to 1.2 improves security by ensuring your SQL Managed Instance can only be accessed from clients using TLS 1.2. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities. 1.0.1 BuiltIn Audit, Disabled Link
Azure SQL Database should be running TLS version 1.2 or newer Setting TLS version to 1.2 or newer improves security by ensuring your Azure SQL Database can only be accessed from clients using TLS 1.2 or newer. Using versions of TLS less than 1.2 is not recommended since they have well documented security vulnerabilities. 2.0.0 BuiltIn Audit, Disabled, Deny Link
Transparent Data Encryption on SQL databases should be enabled Transparent data encryption should be enabled to protect data-at-rest and meet compliance requirements 2.0.0 BuiltIn AuditIfNotExists, Disabled Link
Azure SQL Managed Instances should disable public network access Disabling public network access (public endpoint) on Azure SQL Managed Instances improves security by ensuring that they can only be accessed from inside their virtual networks or via Private Endpoints. To learn more about public network access, visit https://aka.ms/mi-public-endpoint. 1.0.0 BuiltIn Audit, Deny, Disabled Link
Public network access on Azure SQL Database should be disabled Disabling the public network access property improves security by ensuring your Azure SQL Database can only be accessed from a private endpoint. This configuration denies all logins that match IP or virtual network based firewall rules. 1.1.0 BuiltIn Audit, Deny, Disabled Link
Private endpoint connections on Azure SQL Database should be enabled Private endpoint connections enforce secure communication by enabling private connectivity to Azure SQL Database. 1.1.0 BuiltIn Audit, Disabled Link
Configure Azure SQL Server to disable public network access Disabling the public network access property shuts down public connectivity such that Azure SQL Server can only be accessed from a private endpoint. This configuration disables the public network access for all databases under the Azure SQL Server. 1.0.0 BuiltIn Modify, Disabled Link
Deploy SQL DB transparent data encryption Enables transparent data encryption on SQL databases 2.2.0 BuiltIn DeployIfNotExists, Disabled Link
SQL Server should use a virtual network service endpoint This policy audits any SQL Server not configured to use a virtual network service endpoint. 1.0.0 BuiltIn AuditIfNotExists, Disabled Link
A Microsoft Entra administrator should be provisioned for SQL servers Audit provisioning of a Microsoft Entra administrator for your SQL server to enable Microsoft Entra ID authentication. Microsoft Entra ID authentication enables simplified permission management and centralized identity management of database users and other Microsoft services 1.0.0 BuiltIn AuditIfNotExists, Disabled Link
Azure SQL logical servers should have Microsoft Entra-only authentication enabled during creation Require Azure SQL logical servers to be created with Microsoft Entra-only authentication. This policy doesn't block local authentication from being reenabled on resources after create. Consider using the 'Microsoft Entra-only authentication' initiative instead to require both. Learn more at: https://aka.ms/adonlycreate. 1.3.0 BuiltIn Audit, Deny, Disabled Link
Azure SQL Managed Instances should have Microsoft Entra-only authentication enabled during creation Require Azure SQL Managed Instance to be created with Microsoft Entra-only authentication. This policy doesn't block local authentication from being reenabled on resources after create. Consider using the 'Microsoft Entra-only authentication' initiative instead to require both. Learn more at: https://aka.ms/adonlycreate. 1.2.0 BuiltIn Audit, Deny, Disabled Link
Auditing on SQL server should be enabled Auditing on your SQL Server should be enabled to track database activities across all databases on the server and save them in an audit log. 2.0.0 BuiltIn AuditIfNotExists, Disabled Link
Azure Defender for SQL should be enabled for unprotected Azure SQL servers Audit SQL servers without Advanced Data Security 2.0.1 BuiltIn AuditIfNotExists, Disabled Link
Azure Defender for SQL should be enabled for unprotected SQL Managed Instances Audit each SQL Managed Instance without advanced data security. 1.0.2 BuiltIn AuditIfNotExists, Disabled Link
Configure Azure Defender to be enabled on SQL managed instances Enable Azure Defender on your Azure SQL Managed Instances to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. 2.0.0 BuiltIn DeployIfNotExists, Disabled Link
Configure Azure Defender to be enabled on SQL servers Enable Azure Defender on your Azure SQL Servers to detect anomalous activities indicating unusual and potentially harmful attempts to access or exploit databases. 2.1.0 BuiltIn DeployIfNotExists Link
SQL databases should have vulnerability findings resolved Monitor vulnerability assessment scan results and recommendations for how to remediate database vulnerabilities. 4.1.0 BuiltIn AuditIfNotExists, Disabled Link
SQL servers with auditing to storage account destination should be configured with 90 days retention or higher For incident investigation purposes, set the data retention for your SQL Server auditing to storage account destination to at least 90 days. Confirm that you're meeting the necessary retention rules for the regions in which you're operating. This setting is sometimes required for compliance with regulatory standards. 3.0.0 BuiltIn AuditIfNotExists, Disabled Link
Vulnerability assessment should be enabled on SQL Managed Instance Audit each SQL Managed Instance that doesn't have vulnerability assessment properly configured. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities. 1.2.0 BuiltIn AuditIfNotExists, Disabled Link
Vulnerability assessment should be enabled on your SQL servers Audit Azure SQL servers that don't have vulnerability assessment properly configured. Vulnerability assessment can discover, track, and help you remediate potential database vulnerabilities. 3.1.0 BuiltIn AuditIfNotExists, Disabled Link