Access from AKS to SQL Server is blocked by a firewall in Azure

8/17/2019

I have a VNET in Azure and the AKS cluster created in that VNET and SQL Server networking and firewall applied in the same VNET.

When I tried to access the SQL Server from AKS cluster then I got the below exception.

Make sure that TCP connections to the port are not blocked by a firewall

Could someone help to resolve this. Both the resources are in the VNET.

-- Suresh
azure
kubernetes
sql-server
vnet

1 Answer

8/18/2019

See here for instructions how to create the firewall rule using VNET service endpoints: https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vnet-service-endpoint-rule-overview#azure-portal-steps

-- silent
Source: StackOverflow