Ask Learn Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Managing database security can become complex as the size and complexity of the database environment grows, making it challenging to maintain a consistent security posture across all databases and systems.
Microsoft Entra ID provides a cloud-based centralized authentication authority that employs advanced authentication methods. SQL Server 2022 has introduced support for logins and users that are based on Microsoft Entra accounts.
Let's review how Microsoft Entra authentication works for SQL Server 2022:
Like Azure SQL Managed Instance and Azure SQL Database, SQL Server 2022 supports a new syntax for CREATE LOGIN
and CREATE USER
to support EXTERNAL PROVIDER
. Use the CREATE USER
T-SQL statement with a Microsoft Entra account to provide authentication to users in a database without the need for a login.
As we can see, SQL Server 2022 uses Microsoft Entra ID to provide secure and simplified access management for users.
To see the Microsoft Entra authentication methods available on SQL Server 2022, see Microsoft Entra authentication for SQL Server
To run this exercise, make sure you meet these requirements before you start:
Navigate to SQL Server – Azure Arc on Azure portal, and select the instance for your SQL Server host. Make sure it's connected by going to the Properties menu.
Select Microsoft Entra ID on the left-hand column, and then select Set Admin. Select an account to be added as an admin for SQL Server.
Select Service-managed cert, then select Change key vault and select your existing Azure Key vault resource.
Select Service-managed app registration, then Save.
Note
Wait until the process completes before proceeding to the next step.
Navigate to Microsoft Entra ID on Azure portal.
Select App registrations.
Select the newly created application. The application should have a name in the format of <hostname>-<instanceName><uniqueNumber>
.
Select the API permissions menu, then select Grant admin consent.
You can now connect to SQL Server using Microsoft Entra authentication:
As we've seen SQL Server 2022 provides simplified access management for SQL Server users authenticating using Microsoft Entra ID.
Having an issue? We can help!
Please sign in to use this experience.
Sign in