Connect to TimescaleDB using Azure Data Studio
Azure Data Studio is a cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux. You can connect to TimescaleDB hosted on your local machine or on a remote server. You can also connect to Timescale Cloud, and Managed Service for TimescaleDB services.
Before you begin
- Download and install Azure Data Studio.
- Install the PostgreSQL extension for Azure Data Studio.
Connecting to on-premise TimescaleDB using Azure Data Studio
Start
Azure Data Studio
.In the
SERVERS
page, clickNew Connection
.In the
Connection Details
dialog, navigate toConnection type
, and selectPostgreSQL
. Fill in the fields using the server name, database,user name, and password for your TimescaleDB instance. For more information about these settings, see the connection details section.Click
Advanced
.In the
Port
field, type the port number, and clickOK
.Click
Connect
.
Connecting to Timescale Cloud with Azure Data Studio
Sign in to the Timescale Cloud portal.
In the
Services
tab, find the service you want to connect to, and check it is marked asRunning
.Click the name of the service you want to connect to, and take a note of the
Host
,Port
,Database name
, andUsername
.Navigate to the
Operations
tab, and clickReset password
. You can choose your own password for the service, or allow Timescale Cloud to generate a secure password for you. Take a note of your new password.Start
Azure Data Studio
.In the
SERVERS
page, clickNew Connection
.In the
Connection Details
dialog, navigate toConnection type
, and selectPostgreSQL
. Fill in the fields using the server name, database, user name, port, and password for your TimescaleDB Cloud service. For more information about these settings, see the connection details section.Click
Advanced
.In the
Port
field, type the port number, and clickOK
.note
If you configured your Timescale Cloud service to connect using SSL mode, then set
SSL mode
toVerify-Full
, and in theSSL root certificate filename
field, type the location of the SSL root CA certificate to use.Click
Connect
.
Connecting to Managed Service for TimescaleDB with Azure Data Studio
important
To ensure a secure network access to your Managed Service for TimescaleDB service, make sure you add the IP address of the machine running Azure Data Studio to the Allowed IP Addresses
. For more information about network security in Managed Service for TimescaleDB, see the security section.
Sign in to the Managed Service for TimescaleDB portal.
In the
Services
tab, find the service you want to connect to, and check it is marked asRunning
.Click the name of the service you want to connect to see the connection information. Take a note of the
Host
,Port
,Database Name
,User
, andPassword
.Start
Azure Data Studio
.In the
SERVERS
page, clickNew Connection
.In the
Connection Details
dialog, navigate toConnection type
, and selectPostgreSQL
. Fill in the fields using the server name, database, user name, port, and password for your Managed Service for TimescaleDB service. For more information about these settings, see the connection details section.Click
Advanced
.In the
Port
field, type the port number, and clickOK
.Click
Connect
.
Settings in the Connection Details
This table provides the description and example values for the fields that appear in the Connection Details
dialog.
Setting | Example value | Description |
---|---|---|
Server name | localhost, postgresql.example.com, <REMOTE_HOST>.tsdb.cloud.timescale.com, <REMOTE_HOST>.timescaledb.io | The fully qualified server name. The host name of your Timescale Cloud service or Managed Service for TimescaleDB service. |
Authentication type | Password | The authentication type to log in with |
User name | postgres, tsdbadmin | The user name you want to log in with. Use tsdbadmin for Timescale Cloud service and Managed Service for TimescaleDB service |
Password | password | The password for the account you are logging in with |
Remember password | Check | Check this box if you don’t want to enter the password each time you connect. |
Database name | \<Default>, tsdb, defaultdb | This option connnects to the default database. The database name for Timescale Cloud service is tsdb and for Managed Service for TimescaleDB service is defaultdb . You can also specify the name of the database to connect to. |
Server group | \<Default> | This option lets you assign this connection to a specific server group you create. |
Name (optional) | leave blank | This option lets you specify a friendly name for your server |