Intermittent 403 Forbidden Error on Azure Function App (Linux Plan, Private Endpoint, Premium V3)

Oriol Trujillo 0 Reputation points
2025-01-30T14:36:33.12+00:00

I'm experiencing an intermittent 403 Forbidden error on my Azure Function App, and I'm hoping someone can help me troubleshoot this issue.

  • The Function App usually works fine, but occasionally it becomes inaccessible for a specific browser session.
  • When this happens, I get a 403 Forbidden error (Azure blue screen) in one browser session, while at the same time, the same request works fine from Incognito mode or another browser (check out the screenshot ) Imagen cargada

Clearing cookies in the original browser session fixes the issue.

The issue does not seem related to the function's execution, as the API is still accessible from other sessions.

My setup:

  • Azure Function App running on a Linux Plan (Premium v3, P0V3).
  • Inbound traffic configuration:
    • Public network access: Disabled
    • Private endpoints: 1 private endpoint
    • Inbound addresses: 10.5.11.6
    • Optional inbound services: Azure Front Door (enabled)
  • Outbound traffic configuration:
    • Virtual network integration: Enabled (VNET-PIA-PROD/SNET-PIA-PROD-FUNCTIONS)
    • Hybrid connections: Not configured
    • Outbound DNS: Inherited (from virtual network)
    • Outbound addresses: A set of Azure IPs (listed in screenshot)
  • Integration subnet configuration:
    • NAT gateway: Not configured
    • Network security group: Configured (NSG-PIA-BASE )
    • User-defined route: Configured (ROUTE-PIA-BASE)

Imagen cargada

What could be causing session-specific 403 Forbidden errors when the same API works in Incognito mode or another browser at the same time?

Would really appreciate any insights! Thanks in advance people 🚀

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,415 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pinaki Ghatak 5,575 Reputation points Microsoft Employee
    2025-02-07T09:59:10.0033333+00:00

    Hello @Oriol Trujillo

    Based on the information you provided, it appears that the issue is related actually to the browser session and not the function's execution. Clearing cookies in the original browser session fixes the issue, and the API is still accessible from other sessions.

    One possible cause of this issue could be related to the browser caching. When you cancel a pipeline run, pipeline monitoring often still shows the progress status. This happens because of a browser cache issue.

    You also might not have the correct monitoring filters. Refreshing the browser and applying the correct monitoring filters might help resolve the issue.

    Another possible cause could be related to the network security group (NSG) configuration. The NSG might be blocking traffic from the original browser session, but allowing traffic from other sessions.

    You might want to review the NSG rules to ensure that they are not blocking traffic from the original browser session.

    Lastly, it could be related to the Azure Front Door configuration. You might want to review the Front Door configuration to ensure that it is not blocking traffic from the original browser session.

    I hope this helps


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.