Reputation: 43
I created an app using Nodejs, express and DocumentDB and deployed it to Azure(App Service\Web App). Everything is working fine except it is not connecting to DocumentDB. It works fine in my local environment.
I am new to this environment so not sure what additional information can be provided.
Only difference between my local environment and azure is that I added following web.config because site was not starting
Upvotes: 0
Views: 312
Reputation: 43
This has been really frustrating last couple of days.
URI listed in CosmosDB settings is https://xxxxxxxxpoc5.documents.azure.com:443/
and URI that worked for me is https://xxxxxxxxpoc5.documents.azure.com/, without port number 443.
Note: Both URIs worked from my local system.
Upvotes: 1
Reputation: 9950
According to your description, it seems that you enabled IP Access Control in the Azure portal. If this is the case, then you'll need to add your current IP to allowed IPs list. See Azure Cosmos DB firewall support.
Upvotes: 0