Request originated from IP through public internet. This is blocked by your Cosmos DB account firewall settings

Lanh Khưu 46 Reputation points
2022-11-05T16:22:57.447+00:00

I created a service endpoint for cosmos and integrated it with function app , but the function app can not connect with cosmos db

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,936 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,911 questions
{count} votes

1 answer

Sort by: Most helpful
  1. GeethaThatipatri-MSFT 29,552 Reputation points Microsoft Employee Moderator
    2022-11-07T17:50:37.217+00:00

    @Lanh Khưu , when you enable service endpoint or private connect then you need to be on the trusted network remote connection with a trusted network, need peering or gateway-VNET
    and yes, it could be a location issue but more importantly, how do you connect both to the service with the same pipe once you are on the pipe then location doesn't matter but yeah you will get latency if the location is remote.

    Hope this information helps.

    Regards
    Geetha


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.