Hi, @Jacky Lam We don’t support native Azure CLI commands for Azure Cosmos DB for PostgreSQL yet. You can use ‘az rest’ as a thin wrapper for REST API calls though.
As you probably know, you can get connection strings for various languages and frameworks/tools on the ‘Connection strings’ tab in the cluster properties in Azure portal.
If you need to get a connection string programmatically you would need to construct it in the required syntax by getting variables such as the name of the node you need to connect to.
You can list nodes in a cluster using this API call and list clusters in a resource group using this API call. Also relevant to it is our current format of the node DNS names. Please note that this format is valid for recently created clusters, namely for those created on June 6<sup>th</sup>, 2023 and later. This page describes the old format too.
Let me know if you need any additional information.
Regards
Geetha