If you see following error whilst connecting to Cosmos DB, you must add your current IP address to firewall in Azure for the DB you are trying to connect to.

CMSDBError

 

azure