@bimrely Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
I understand that when you are requesting the root url of the app service you are facing this error "You do not have permission to view this directory or page" correct me if my understand is wrong.
The root reason is that there is no default page in your Azure website. The default document is the web page that is displayed at the root URL for a website. The first matching file in the list is used.
Web Apps might use modules that route based on URL, rather than serving static content, in which case there is no default document as such.
You could add the default document in the project root folder and set it as default page under Default Documents in Configuration on the Azure portal and save the setting.
Thanks for replying, I'm using modules that route based on URL, I've even tried to add the default document as index.js which is my app then it shows raw code instead of "welcome noble" which is my home page. I've been stuck in this for almost a month and have not been able to find the answer. If this is not solved asap then we have to move to AWS or Firebase.
We created a web app and started deploying our code via Azure only by following all the steps in the deployment centre. The app was deployed successfully but when we clicked on the URL it said "You do not have permission to view this directory or page". We tried every step that was available online.
We have not customized any configuration settings we are just using default settings.
Node - ~18 runtime stacks our app is using.
"bimrely" is the app service name and "ce416" is the last 4 digits of the subscription ID.
@bimrely Thanks for sharing the requested details.
When I tried to request the root URL of your app, I see that you have configured Azure AD authentication and post the authentication is getting succeeded it is redirecting to the root URL of the app.
Just want to check if we disable the authentication and when you request the root URL are you facing the same issue?
Also, This would need one on one offline support and I will suggest you open a support ticket to look into the logs.
In case if you don't have the support plan then please send an email with your SubscriptionID and link to this thread to AzCommunity@microsoft.com with subject line as "ATTN: Venkatesh" so I can enable one time free support on your subscription to assist you further.