Blog Post

Azure SQL Blog
4 MIN READ

Generally Available: Microsoft Entra Server Principals and Server Roles for Azure SQL Database

PDasgupta's avatar
PDasgupta
Icon for Microsoft rankMicrosoft
Jun 18, 2026

Microsoft Entra server principals (logins) and server roles for Azure SQL Database are now generally available. This closes a major functionality gap between SQL authentication and Microsoft Entra authentication at the server level.

The problem we're solving

Previously, Microsoft Entra identities in Azure SQL Database could only be created as contained database users - principals scoped to a single database with no server-level presence. That meant:

  • No granular server-level delegation. You couldn't assign a server role such as ##MS_ServerStateReader## (to query DMVs across databases) or ##MS_LoginManager## (to manage logins) to an Entra principal. Only the Entra admin or a SQL login could perform these server-scoped tasks.
  • Per-database provisioning overhead. Each Entra principal had to be created separately as a contained database user in every database that required access, with no way to inherit server-scoped permissions.
  • No centralized “disable” switch. Offboarding meant tracking down a contained database user in every database - there was no server-level login to disable.

These gaps forced many teams to keep SQL authentication for administrative tasks, even when they wanted to go password-less with Entra.

What changes with GA

Microsoft Entra logins become first-class server principals in the logical master database, just like SQL logins. This capability has been in public preview on Azure SQL Database (and is already generally available on Azure SQL Managed Instance and SQL Server 2022+); with this release it reaches general availability on Azure SQL Database, unlocking three things for production use:

1. Server role assignment for Entra identities

Azure SQL Database's seven fixed server-level roles can be assigned to Entra server principals(logins). These roles cover database connectivity, database management, definition and security-definition reads, login management, and server-state read/manage.

This means you can give your monitoring service principal read-only DMV access across all databases (##MS_ServerStateReader##), delegate login management to a security team member (##MS_LoginManager##), or let a DevOps app create databases (##MS_DatabaseManager##). All without SQL auth, all with Entra identities.

2. Server-wide login model

Instead of provisioning contained users independently in every database, you can create database users mapped to a server login (CREATE USER ... FROM LOGIN). These users inherit server-scoped permissions automatically. One login, many databases — managed from a single place.

For the T-SQL syntax, see Create and utilize Microsoft Entra server logins.

3. Centralized logins enable/disable

ALTER LOGIN [user@contoso.com] DISABLE - one command blocks that identity from connecting to every database on the server. No more hunting down per-database users during an offboarding or incident response. When you re-enable the login, access is restored everywhere.

Note: ALTER LOGIN ... DISABLE applies only to login-based users, not contained database users. It blocks new connections only; existing sessions remain active until terminated with KILL if needed. For immediate effect, see cache propagation. Microsoft Entra group logins are not supported; see the server principals documentation for alternatives.

What does this unlock for your organization

Ability to go password-less. With server principals and roles now generally available, organizations can adopt Entra-only authentication without a remaining server-level functionality gap. Entra logins bring parity with SQL logins closer, making it practical to disable SQL authentication entirely and using Entra as the sole authentication path.

Least-privilege administration. Server-level roles simplify permission management by enabling customers to delegate common management and monitoring responsibilities without requiring admin privileges, enabling adherence to least privilege and separation of duties at scale, while making administration across databases on the same logical server much easier. Server roles let you scope access precisely, previously, the only server-wide option for an Entra identity was the all-powerful Entra admin. Give your security auditors ##MS_SecurityDefinitionReader## role instead of 'db_owner'. Give your monitoring tools ##MS_ServerStateReader## instead of an over-privileged administrator role.

Zero-touch DevOps. A service principal with ##MS_DatabaseManager## and ##MS_LoginManager## can automate database and user provisioning end-to-end. After the initial Entra admin bootstrap, no human needs to be in the loop for routine operations.

Faster incident response. When a principal is compromised, disable the login at the server level. New connections are blocked across all databases immediately - without needing to know which databases the user had access to. To cut off active sessions immediately, flush the authentication caches and KILL existing sessions.

Geo-replica support. Entra logins created on the primary server are automatically available on geo-replicas, with read-only access to replicated databases.

Key things to know

  • Bootstrap requirements. The Microsoft Entra admin must create the first Entra login. After that, any Entra principal with ALTER ANY LOGIN or ##MS_LoginManager## membership can create additional logins.
  • Entra admin takes precedence. If a principal is both the Entra admin and has a login, the admin permissions win. The login permissions have no additional effect.
  • Cache propagation. Role membership and permission changes take effect on the next connection. For immediate effect, clear the auth cache with DBCC FLUSHAUTHCACHE and DBCC FREESYSTEMCACHE('TokenAndPermUserStore').
  • EXECUTE AS LOGIN is not supported for Entra logins on Azure SQL Database (it is supported on Managed Instance).

Get started

  1. Configure a Microsoft Entra admin on your logical server
  2. Create your first Entra login and assign server roles (step-by-step tutorial)
  3. Understand the server roles and their permissions
  4. Consider enabling Entra-only authentication to eliminate SQL auth entirely

Ready to migrate from SQL Authentication?

If you're looking to move your existing SQL logins to Entra, check out Securing Azure SQL Database with Microsoft Entra password-less authentication - migration guide. It walks through the end-to-end journey from SQL auth to Entra, including how to identify SQL login dependencies, convert them to Entra principals, and enable Entra-only mode.

Learn more

Published Jun 18, 2026
Version 1.0

1 Comment

  • Pity that transactional replication still doesn't support Entra. That effectively stops many business from being able to move off of it. Don't get me wrong, great job and this is another step down the road, and I'm sure teams without replication are celebrating.