All Apps and Add-ons

Why is DBconnect unable to connect to Azure SQL database?

shreyasajith
Observer

HI All, 

Not able to establish the connection, please advise 

Driver used: 

  • [sqlazure]
  • displayName = SQLAzure
  • useConnectionPool = false
  • jdbcDriverClass = com.microsoft.sqlserver.jdbc.SQLServerDriver
  • serviceClass = com.splunk.dbx2.MSSQLJDBC
  • defaultPort = 1433 
  • jdbcUrlFormat = jdbc:sqlserver://<host>:<port>;databaseName=<database>
  • testQuery = SELECT 1 AS test

Failure message - :

Connection failure reason:
The TCP/IP connection to the host projectmanagerbyshreyas.database.windows.net, port 1433 has failed. Error: "connect timed out. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".

Diagnosis:
Either the database is unavailable, or the specified host/port is incorrect, or you are blocked by a firewall

Troubleshooting recommendation:
Make sure the database is running on the server and you or the database are not blocked by a firewall

 

Thanks in advance

Labels (4)
0 Karma
Get Updates on the Splunk Community!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...