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!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...