FastAPI is a modern Python web framework for building APIs. Combined with mssql-python, you can build high-performance REST APIs backed by Microsoft SQL and Azure SQL Database. Python 3.10 or later.
Connect to the availability group through the listener DNS name instead of a specific server: import mssql_python # Connect via availability group listener conn = mssql_python.connect( ...