I've created an Azure function that should connect to an Azure SQL database.
This function retrieves the connection string saved in the application config. This connection string is the one provided from Azure SQL.
Everything works fine on my PC, but I've deployed the function on Azure and it seems unable to connect to the SQL database (returning the common error "object reference not set...").
I've checked possibleOutboundIpAddresses in Azure function resources and I've allowed them on the Azure SQL firewall.
Also, my SQL database is in a Azure VNet with a storage.
Any idea?