Block the traffic by modifying the firewall settings - https://zcusa.951200.xyz/en-us/azure/cosmos-db/how-to-configure-firewall
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin