Unable to open a connection to your app. This may be due to any network security groups or IP restriction rules that you have placed on your app. To use log streaming, please make sure you are able to access your app directly from your current network.

Rajeswari Depala 115 Reputation points
2024-08-15T20:52:50.61+00:00

I'm new to using App Services, and I'm consistently encountering the following error: "ERR_CONNECTION_REFUSED." I've already allowed both HTTP and HTTPS traffic through the Network Security Group (NSG) and connected the app to the Virtual Network (VNet). Could you please help me understand what might be causing this error? The app is running on an F1 App Service Plan.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,967 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 17,741 Reputation points Microsoft Employee Moderator
    2024-08-18T01:31:21.0366667+00:00

    @Rajeswari Depala

    Accessing log stream when private endpoints or access restrictions are enabled:

    If you are trying to access the log stream through the portal and the app service has a private endpoint/access restriction enabled, then check whether the log stream is accessed from the same network (in case a private endpoint is enabled) or from the whitelisted network (in case access restriction is enabled).
    In either of the above scenarios, you should be able to access the log stream from a VM that is connected to the same network.

    Lastly, since Log Streaming uses KUDU, make sure you have also allowed https://<app-name>.scm.azurewebsites.net in your NSG and any other areas. Simply allowing your app-name.azurewebsites.net URL will not be enough.

    0 comments No comments

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.