Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Hi @PeterG,
Thank you for posting your question in the Microsoft Q&A forum.
The error message seems you’re facing:
"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"
Means that Azure App Service is blocking connections likely due to IP restrictions, access restrictions, or VNet integration.
Steps to Resolve and Start the Web App Again
Step 1: Check App Service Availability
Go to Azure Portal > App Services > Your Web App
On the top If you observe Start option you can click on that will turn into Stop then you can conform your app is running.
Click on the URL directly in your browser. In my case this my sample app and that yellow colored is my domain link.
If it doesn’t load, proceed with the steps given below.
Step 2: Check Access Restrictions (IP/NSG)
If Access Restrictions are Disable.
Navigate to: Azure Portal > App Service > Networking > Inbound traffic configuration > Access Restrictions > Public network access
If the option is “Disable”.
Click on the Disable will get two options.
- Enabled from all networks (This will clear current access restrictions).
- Enabled from selected virtual networks and IP addresses.
1.If you want to allow your application to public access, then enable this option.
Click on continue it will open Site access and rules then Save will ask you Access update confirmation click the check box and continue.
Now try your URL directory it will access.
2.Enabled from selected virtual networks and IP addresses.
If you see “Deny” or a list of IPs that doesn’t include your current IP — this is likely the issue.
Then change it to “Allow” and Save it.
Now try your URL directory it will access.
If below option is deny we can add IP’s to access our url.
Add Your IP:
· Click on “+ Add ”
Set your rule like:
- Name: AllowMyIP
- Action: Allow
- Priority: 400
- IP Range: <Your Public IP>/32
Get your public IP from: https://www.whatismyip.com
You can refer to this documentation link for
Access restrictions :-
App Service Access restrictions - Azure App Service | Microsoft Learn
Inbound and outbound rules :-
Inbound/Outbound IP addresses - Azure App Service | Microsoft Learn
Step 3: Restart the App
After updating access rules:
- Go to App Service > Overview
- Click Restart
- Try accessing the web app and log stream again.