I have a SQL Server instance running in an Azure Container App, created using .NET Aspire, and I'm trying to connect to it using SQL Server Management Studio (SSMS). Here are the details of my setup:
Ingress settings:
- Ingress: Enabled
- Ingress Traffic: Accepting traffic from anywhere
- Ingress Type: HTTP
- Client Certificate Mode: Ignore
- Transport: Auto
- Insecure Connections: Allowed
- Target Port: 1433
- Endpoint:
https://sql.randomazurename.westeurope.azurecontainerapps.io - Session Affinity: Disabled
The connection string provided by Aspire is:
Server=sql,1433;User ID=sa;Password=XXX;TrustServerCertificate=true;Initial Catalog=DATABASENAME
Steps taken:
- Configured Ingress: Ensured that ingress is enabled and traffic is allowed from anywhere.
- Obtained Connection Details: Used the endpoint URL and port 1433.
- Opened SSMS: Attempted to connect using the endpoint URL and appropriate credentials.
Issue in SSMS:
Additional information:
A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible, Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: O - The wait operation timed out.) (Microsoft SQL Server, Error: 258)
Question
How to connect to the database?
Additional Information:
- The SQL Server instance was created using .NET Aspire.
- I have ensured that the SQL Server instance is running and accessible.
Any guidance or steps to locate the server name and successfully connect using SSMS would be greatly appreciated!
