Thankyou for posting your query on Microsoft Q&A platform .
Active Directory Integrated
, and Active Directory Interactive
authentication modes helps to authenticate with a Microsoft Entra identity by using interactive authentication, however, these modes are supported only on .NET SDKs .
Alternatively, you can try to use the Linked Service in Synapse Analytics that connects to the SQL pool via System Assigned Managed Identity" for authentication. Even though the function getConnectionString looks like it returns a connection string, it actually provides an access token in the below code:
Reference: https://stackoverflow.com/questions/73157370/pyspark-to-azure-sql-database-connection-issue
Hope it helps. Kindly accept the answer by clicking on Accept answer
button. Thankyou