1. Microsoft Docs
"Tutorial: Use a Windows VM system-assigned managed identity to access Azure SQL": This official tutorial explicitly states that the first step to grant a VM access to Azure SQL using its identity is to enable a managed identity on the VM. It then shows how to create a contained user in the database from this identity using the CREATE USER [your-VM-name] FROM EXTERNAL PROVIDER command.
Reference: See the "Enable a system-assigned managed identity on a Windows VM" and "Create a contained user in Azure SQL Database" sections.
2. Microsoft Docs
"What are managed identities for Azure resources?": This document explains that managed identities provide Azure services with an automatically managed identity in Azure AD. It lists Azure SQL Database as a service that supports Azure AD authentication
which can be used with managed identities to connect without credentials in code.
Reference: See the "Introduction" and "Which Azure services support managed identities?" sections.
3. Microsoft Docs
"Configure and manage Azure AD authentication with Azure SQL": This document details how to use Azure AD for authentication with Azure SQL. It clarifies that principals like managed identities can be used to create database users (CREATE USER ... FROM EXTERNAL PROVIDER)
which is the mechanism for contained database users based on Azure AD.
Reference: See the "Azure AD authentication methods" and "Create contained users mapped to Azure AD identities" sections.