Trying to run this Azure Function in Azure portal but fails with above title error:
using System;
using System.IO;
using System.Net;
using System
It looks like something is wrong with the connection string. Please check that you are you using something similar to this:
Server=tcp:{your_server}.database.windows.net,1433;Initial Catalog={your_database};Persist Security Info=False;User ID={your_user};Password={your_password};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Connection Timeout=30;
For what concern using Microsoft.Data.SqlClient, which is the recommended library, you need to add it to the solution first:
dotnet add package Microsoft.Net.SqlClient