| title | Conditional Access |
|---|---|
| titleSuffix | Azure SQL Database & SQL Managed Instance & Azure Synapse Analytics |
| description | Learn how to configure Conditional Access for Azure SQL Database, Azure SQL Managed Instance, and Azure Synapse Analytics. |
| author | GithubMirek |
| ms.author | mireks |
| ms.reviewer | wiassaf, vanto, mathoma |
| ms.date | 04/28/2020 |
| ms.service | sql-db-mi |
| ms.subservice | security |
| ms.topic | how-to |
| ms.custom | sqldbrb=1 |
| tag | azure-synpase |
| monikerRange | = azuresql || = azuresql-db || = azuresql-mi |
[!INCLUDEappliesto-sqldb-sqlmi-asa]
Azure SQL Database, Azure SQL Managed Instance, and Azure Synapse Analytics support Microsoft Conditional Access.
The following steps show how to configure Azure SQL Database, Azure SQL Managed Instance, or Azure Synapse to enforce a Conditional Access policy.
- You must configure Azure SQL Database, Azure SQL Managed Instance, or dedicated SQL pool in Azure Synapse to support Microsoft Entra authentication. For specific steps, see Configure and manage Microsoft Entra authentication with SQL Database or Azure Synapse.
- When multifactor authentication is enabled, you must connect with a supported tool, such as the latest SQL Server Management Studio (SSMS). For more information, see Using Microsoft Entra multifactor authentication.
Note
The below example uses Azure SQL Database, but you should select the appropriate product that you want to configure conditional access.
-
Sign in to the Azure portal, select Microsoft Entra ID, and then select Conditional Access. For more information, see Microsoft Entra Conditional Access technical reference.

-
In the Conditional Access-Policies blade, click New policy, provide a name, and then click Configure rules.
-
Under Assignments, select Users and groups, check Select users and groups, and then select the user or group for Conditional Access. Click Select, and then click Done to accept your selection.

-
Select Cloud apps, click Select apps. You see all apps available for Conditional Access. Select Azure SQL Database, at the bottom click Select, and then click Done.

If you can't find Azure SQL Database listed in the following third screenshot, complete the following steps:- Connect to your database in Azure SQL Database by using SSMS with a Microsoft Entra admin account.
- Execute
CREATE USER [user@yourtenant.com] FROM EXTERNAL PROVIDER. - Sign into Microsoft Entra ID and verify that Azure SQL Database, Azure SQL Managed Instance, or Azure Synapse are listed in the applications in your Microsoft Entra instance.
-
Select Access controls, select Grant, and then check the policy you want to apply. For this example, we select Require multifactor authentication.

The selected application (Azure SQL Database) using Microsoft Entra ID P1 or P2, now enforces the selected Conditional Access policy, Required multifactor authentication.
For questions about Azure SQL Database and Azure Synapse regarding multifactor authentication, contact MFAforSQLDB@microsoft.com.
For a tutorial, see Secure your database in SQL Database.