I have an Azure function and a user assigned managed identity. I would like to connect a SQL Server hosted on Azure VM.
But the problem is CREATE USER/CREATE LOGIN [mymangedIdentity] FROM EXTERNAL PROVIDER
clause is not supported for Azure AD authentication on SQL Server hosted on Azure VMs. It only works in Azure SQL and Azure MI.
Entra ID (AAD) Auth for SQL Server is a SQL Server 2022 feature.
Microsoft Entra authentication for SQL Server