Skip to main content Microsoft Intelligent Data Platform Azure Arc Azure databases Power BI SQL Server 2025 SQL Server BI SQL Server 2022 SQL Server 2019 SQL Server 2017 SQL Server 2016 SQL Server 2005 - 2014 Downloads Community SQL End of Support Data Security - SQL Server Encryption SQL Server blog SQL Server and Azure SQL workshops Browse Microsoft Solutions Hub SQL Server Tech Community Azure Databases Tech Community Azure Synapse Analytics Tech Community Developer Find a partner Become a partner Partner resources Try SQL Server 2025 Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft Teams Windows 365 Microsoft AI Azure Space Mixed reality Microsoft HoloLens Microsoft Viva Quantum computing Sustainability Education Automotive Financial services Government Healthcare Manufacturing Retail Find a partner Become a partner Partner Network Microsoft Marketplace Marketplace Rewards Software development companies Blog Microsoft Advertising Developer Center Documentation Events Licensing Microsoft Learn Microsoft Research View Sitemap

Azure Active Directory authentication for SQL Server 2022

Part of the SQL Server 2022 blog series.

Azure Active Directory (Azure AD) authentication is now supported for SQL Server 2022 preview on-premises for Windows and Linux Operating Systems.

Azure AD Authentication methods 

The new functionality extends existing authentication modes, such as SQL authentication and Windows authentication, allowing users to connect to SQL Server 2022 using the following Azure AD authentication methods:

  •  Azure Active Directory Password 
  •  Azure Active Directory Integrated 
  •  Azure Active Directory Universal with Multi-Factor Authentication 
  •  Azure Active Directory access token 

For more details, see Azure Active Directory (Azure AD) authentication for SQL Server overview.

The new authentication mode using Azure AD is based on the central authentication repository provided for Azure cloud. This functionality is already supported for Azure SQL Database, Azure SQL Managed Instance, and Azure Synapse Analytics.

Enable Azure AD authentication in SQL Server 2022

The diagram below presents two stages required for a SQL Server 2022 instance to support Azure AD authentication:

  • Azure AD setup  
  • Azure AD user authentication
Diagram of the use of Azure Arc to enable Azure AD authentication for SQL Server 2022.

Steps for Azure AD setup based on the diagram above:

  1. Using Azure Arc in the Azure portal, register a host server (an on-premises Windows or Linux server) with a SQL Server 2022 instance installed on this server. This registration creates an Azure Arc agent on the host server, and you will have a new SQL Server – Azure Arc resource.
  2. In your SQL Server – Azure Arc resource, go to the Azure Active Directory setting to set up an Azure AD administrator for the SQL Server instance.
  3. This setup triggers the Azure AD administrator data transfer to Azure Arc agent.
  4. The Azure Arc agent transfers this information to the SQL Server instance.

For more details on the Azure AD setup, see set up Azure Active Directory authentication for SQL Server.

Steps for Azure AD user authentication based on the diagram above:

  1. Using an application—for example, SQL Server Management Studio (SSMS) version 18.0 or higher—to connect to the SQL Server instance with the Azure AD admin credentials set up for the SQL Server instance (see the snapshots below).
Example SSMS connection page using the authentication method, Azure Active Directory - Universal with MFA.

In the Options>> tab, check the boxes for Encrypt Connection and Trust server certificate.

If you are using the Azure AD admin, the database connection to <default> (master database) or any other user database is allowed. For other Azure AD users, a connection to a specific user database may be required as they will need permission to connect to that database.

  1. After being authenticated as an Azure AD admin, database operations can be executed.

Once the Azure AD admin is connected to the SQL Server instance, the account can create other Azure AD logins and users, and grant them necessary database permissions. For more details see, Set up Azure Active Directory authentication for SQL Server.

SQL Server 2022 also supports linked servers that can be configured using Azure AD with two authentication mechanisms, by providing credentials for Password or Access token. For more information see Linked server for SQL Server with Azure Active Director authentication.

Benefits of using Azure AD authentication

Enabling Azure AD authentication opens access to the Azure cloud identity system. Azure AD is used by many cloud services and unifies all local authentication mechanisms used by Microsoft products providing one central identity repository and authentication management system available to different platforms, including Azure SQL and SQL Server on-premises. The variety of available authentication methods including single sign-on (SSO) and multifactor authentication (MFA), provides strong security support in the authentication area for different services used internally by Microsoft and by external customers. Azure AD authentication is the recommended authentication method for Azure SQL and SQL Server.

Availability 

Not all Azure AD authentication functionality available for Azure SQL is supported in the current version of Azure AD authentication for SQL Server 2022. That includes Azure AD-only authentication, as well as User and System Assigned Managed Identity (UMI and SMI), which are not supported for the SQL Server 2022 release. In addition, Azure AD authentication is not part of the main SQL Server 2022 setup and must be enabled later as a separate step after SQL Server is installed.

Next steps

Download the  SQL Server 2022 Preview trial version if you haven’t already done so, and set up Azure AD authentication for your SQL Server instance. Share your experiences with us and let us know your comments.

Azure Active Directory resources

For more information and to get started, check out the following links:

Learn more

English (United States)
Your Privacy Choices Opt-Out Icon Your Privacy Choices
Consumer Health Privacy Sitemap Contact Microsoft Privacy Manage cookies Terms of use Trademarks Safety & eco Recycling About our ads