I am trying to create a cosmos db account for table APIs and want to upload the connection string to a KV using ARM template.
I expect the connection string in this format:
DefaultEndpointsProtocol=https;AccountName=<<AccountName>>;AccountKey=<<Key>>;TableEndpoint=https://<<AccountName>>.table.cosmos.azure.com:443/;
I am using this:
[listConnectionStrings(resourceId('Microsoft.DocumentDB/databaseAccounts', parameters('globalCosmosDBName')), '2019-12-12').connectionStrings[0].connectionString]
But with the above I am getting a connections string like below:
AccountEndpoint=https://<<AccountName>>.documents.azure.com:443/;AccountKey==<<Key>>;
How can I get a connection string with the table endpoint?