Unable to Access SQL Server Database on Azure VM After Deploying API to Azure Container Apps
Irene IRADUKUNDA
0
Reputation points Microsoft External Staff
Hello,
I have set up an Azure Virtual Machine (VM) where I have my development environment configured, including Visual Studio Code 22 and SQL Server. Recently, I deployed my API using Azure Container Apps. However, I am encountering issues when trying to access the SQL Server database from my deployed API. The connection attempts keep failing. The connection on my development environment is ok. Below is a screenshot of the error.
Steps taken to fix:
- Checked the instance name (Ok)
- Enabled Remote connection on SQL Server Management Studio
- Enabled TCP/IP on SQL Server Configuration Manager
- Added inbound & outbound rule to my Windows Defender Firewall to allow connection on port 1433.
- Both The SQL Server and SQL Server Browser are running.
SQL Server on Azure Virtual Machines
SQL Server on Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
413 questions
Sign in to answer