When you access your Azure Cosmos DB account from a computer on the internet, the client IP address or IP address range of the machine must be added to the allowed list of IP addresses for your account.
Azure Console:1. Go to Azure CosmoDB.2. For each CosmoDB.3. Click on Firewall and virtual networks.4. Select ‘Selected Networks’.5. Under Firewall, add IP ranges to allow access from the internet or your on-premises networks.