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

Babychen Daisy, Dona 20 Reputation points
2023-07-04T18:10:24.8066667+00:00

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,748 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,251 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,122 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Yuvaraj Madheswaran 390 Reputation points
    2023-07-06T17:51:19.0466667+00:00

    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

  2. Babychen Daisy, Dona 20 Reputation points
    2023-07-06T17:53:49.69+00:00

    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. Shweta Mathur 30,296 Reputation points Microsoft Employee
    2023-07-10T05:10:30.79+00:00

    @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

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.