Download odbc driver 17 for sql server
Did you install the driver? Please have a look this link and follow the steps. 11 Oct 2018 I'd like to be able to connect from a Python Azure Function in the 2.0 runtime (consumption plan) to an Azure SQL Server 17 database.