Pass Azure AD Token for Azure SQL DB in pre-connection arguments to SQLAlchemy create_engine()
问题 I'm wanting to connect to an Azure SQL DB via SQLAlchemy with an AD token. I've followed https://github.com/felipefandrade/azuresqlspn and can successfully connect with this method. However, I want to extend this and use SQLAlchemy to manage the connection. from os import environ import struct import adal from sqlalchemy import create_engine import pyodbc clientSecret = environ.get('clientSecret') clientID = environ.get('clientID') tenantID = environ.get('tenantID') authorityHostUrl = "https: