- |If the error message contains `Login failed for user '<token-identified principal>'`, this error is usually caused by not granting enough permission to your service principle or system-assigned managed identity or user-assigned managed identity (depends on which authentication type you choose) in your database. |Grant enough permission to your service principle or system-assigned managed identity or user-assigned managed identity in your database. <br/><br/> **For Azure SQL Database**:<br/> - If you use service principle authentication, follow [Service principal authentication](connector-azure-sql-database.md#service-principal-authentication).<br/> - If you use system-assigned managed identity authentication, follow [System-assigned managed identity authentication](connector-azure-sql-database.md#managed-identity).<br/> - If you use user-assigned managed identity authentication, follow [User-assigned managed identity authentication](connector-azure-sql-database.md#user-assigned-managed-identity-authentication). <br/> <br/>**For Azure Synapse Analytics**:<br/> - If you use service principle authentication, follow [Service principal authentication](connector-azure-sql-data-warehouse.md#service-principal-authentication).<br/> - If you use system-assigned managed identity authentication, follow [System-assigned managed identities](connector-azure-sql-data-warehouse.md#managed-identity).<br/> - If you use user-assigned managed identity authentication, follow [User-assigned managed identity authentication](connector-azure-sql-data-warehouse.md#user-assigned-managed-identity-authentication).<br/> <br/>**For Azure SQL Managed Instance**: <br/> - If you use service principle authentication, follow [Service principal authentication](connector-azure-sql-managed-instance.md#service-principal-authentication).<br/> - If you use system-assigned managed identity authentication, follow [System-assigned managed identity authentication](connector-azure-sql-managed-instance.md#managed-identity).<br/> - If you use user-assigned managed identity authentication, follow [User-assigned managed identity authentication](connector-azure-sql-managed-instance.md#user-assigned-managed-identity-authentication).|
0 commit comments