title: Azure function connectionstring for Azure SQL trough VNet
body: <p>I would like to know how to access my Azure SQL database in a secure way from my Azure Function App, meaning not via public Internet.</p>
  
  <p>I have an Function App (Function App Plan - standard tier), using VNET/Gateway integration. I have specified a service EndPoint for Microsoft.SQL ... I enabled the Virtual network access on Azure SQL database ....</p>
  
  <p>When the Azure function tries to connect to the sql db, it uses the 'normal' connectionstring, which includes the sql database server name as dns label, then I get the error that my ip address is not allowed access. The ip address is the outbound IP address of the Azure function app. </p>
  
  <p>I think this error implies that the function app is trying to connect to the Azure SQL database via public internet. The idea is that this requests should reach the Azure SQL database through the VNet.</p>
  
  <p>My guess is that the connection string should be different. Any suggestions?</p>