Ensure that Microsoft Azure Cosmos DB accounts are configured to deny public access.
Microsoft Azure Cosmos DB accounts should not be accessible from internet and only be accessed from within a VNET.
Modify firewall and the virtual network configuration for your Cosmos DB accounts to provide access to selected networks.