1

I have a .NET 5.0 App that connects to a SQL Server database. If I host the App in Azure App service and the database in Azure SQL database, all is fine.

Now I put the App in a Docker container and deploy it in AKS. It doesn't work anymore (can't connect to the Azure SQL database).

How should I configure my AKS deployment to have it working?

Franco Tiveron
  • 2,364
  • 18
  • 34

1 Answers1

3

Did you check about the ingress and firewall rules ?

https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure

Open the firewall or edit ingress rules so that AKS PODs can connect to the database or else you have to the VPC peering.

https://learn.microsoft.com/en-us/azure/azure-sql/database/private-endpoint-overview

Harsh Manvar
  • 27,020
  • 6
  • 48
  • 102