We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
az cosmosdb list-connection-strings
1 parent d8a48b1 commit 41250b4Copy full SHA for 41250b4
data/load_env.sh
@@ -196,7 +196,7 @@ if [[ -z "$dbName" ]]; then
196
fi
197
198
# At this time, list-connection-strings does not support '-o tsv', so this command uses sed to extract the connection string from json results
199
-connString="$(az cosmosdb list-connection-strings --ids $dbName -g $resourceGroupName | sed -n -e '4 p' | sed -E -e 's/.*mongo(.*)true.*/mongo\1true/')"
+connString="$(az cosmosdb list-connection-strings --name $dbName -g $resourceGroupName | sed -n -e '4 p' | sed -E -e 's/.*mongo(.*)true.*/mongo\1true/')"
200
# But list-keys does support `-o tsv`
201
dbPassword="$(az cosmosdb list-keys --resource-group $resourceGroupName --name $dbName -o tsv | sed -e 's/\s.*$//')"
202
0 commit comments