Share via

Appservice project after deploying gives "You do not have permission to view this directory or page"

Babychen Daisy, Dona 20 Reputation points
Jul 4, 2023, 6:10 PM

I have deployed my Nodejs application and on running the azure appservice url, Iam getting "You do not have permission to view this directory or page". Iam struck. Tried opening https://.scm.azurewebsites.net and it is listing all my files under site/wwwroot folder. Could you please help me in resolving the issue.

Azure SQL Database
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,787 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,450 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
23,632 questions
{count} votes

3 answers

Sort by: Newest
  1. Shweta Mathur 30,256 Reputation points Microsoft Employee
    Jul 10, 2023, 5:10 AM

    @Babychen Daisy, Dona ,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution in case you'd like to "Accept" the answer.

    User's image

    Reference- https://learn.microsoft.com/en-us/azure/azure-functions/functions-deployment-technologies?tabs=linux

    https://learn.microsoft.com/en-us/azure/devops/pipelines/tasks/reference/azure-function-app-v1?view=azure-pipelines&viewFallbackFrom=azure-devops.

    Thanks,

    Shweta

    0 comments No comments

  2. Babychen Daisy, Dona 20 Reputation points
    Jul 6, 2023, 5:53 PM

    Hi It got resolved. Need to select runtime stack in appservice and specify db url correctly. Also scm_do_build_during_deployment should be kept true


  3. Yuvaraj Madheswaran 390 Reputation points
    Jul 6, 2023, 5:51 PM

    Hello Babychen Daisy, Dona ,

    A usual cause for this type of error after deploying through pipelines is a miss in the pipeline. To find more information about the miss, can you enable detailed Logging in the App Service by following Hafiz's answer here: Azure website message “You do not have permission to view this directory or page.”. What to do??

    After enabling, can you share the error message to help you further?

    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.