An Azure service that provides an event-driven serverless compute platform.
Hi Nyong, ChinVenn,
Glad to know that your issue is resolved.
I am summarizing and posting the discussion as an answer below.
The issue occurred because the virtual network used a private IP, preventing direct outbound access to public endpoints such as APIs, NuGet, or Azure service URLs. Since those URLs weren’t reachable, deployment and connectivity operations failed.
To resolve the connectivity issue, a proxy configuration was added to route outbound traffic from the private network to the public networks. After setting up the proxy, the Function App was able to reach the required URLs, and able to deploy the function successfully.
Hope it helps!
Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.
If you have any other questions, let me know in the "comments" and I would be happy to help you.