I have set up an Azure App Service with VNet integration and a Service Endpoint for SQL. If I go to the Azure SQL server and turn off public access, of course now the Azure hosted pipeline can't access the server.
The 2 options I can come up with so far are:
- White list somehow the pipeline servers ips on the SQL Server firewall, but that leaves it unnecessarily open accessible from the internet and also it's not only my pipeline that would be able to hit it.
- Add a pipeline agent in a vm in the vnet. But that adds costs I was hoping to avoid.
Any other alternative or best practice suggestion?