Hello @Jimmy Anttila !
Welcome to Microsoft QnA!
The behavior you are encountering is expected
The log stream feature in Azure App Service relies on the App Service management endpoint to stream logs from the underlying container or web app. When public access is disabled, the log stream may be unable to establish a connection to the management endpoint, resulting in the "connecting..." message.
In this case you can work with Private Endpoints
https://learn.microsoft.com/en-us/azure/app-service/networking/private-endpoint
I hope this helps!
Kindly mark the answer as Accepted and Upvote in case it helped!
Regards