How to fix error permission after deploy

Amro Eid 0 Reputation points
2024-05-25T13:37:35.8733333+00:00

Screenshot 2024-05-25 162819

Screenshot 2024-05-25 162913

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Babafemi Bulugbe 4,025 Reputation points MVP Volunteer Moderator
    2024-05-27T10:24:02.67+00:00

    Hello Amro Eid,

    Thank you for posting your query in the Microsoft Q&A Community.

    I understand you are experiencing an issue viewing the web application you deployed.

    Kindly take it look at this thread where the same query has been discussed.

    https://learn.microsoft.com/en-us/answers/questions/1251564/you-do-not-have-permission-to-view-this-directory

    Let me know if further assistance is needed.

    Babafemi


  2. Bryan Trach 17,837 Reputation points Microsoft Employee Moderator
    2024-05-30T05:03:16.1833333+00:00

    @Amro Eid Babafemi provides a great response.

    To add to their response, I would check the below items.

    1. Public Access and IP Whitelisting: This error can occur when public access is not allowed on Azure App Service, or if the IP of your application is not whitelisted. You can try removing the access restrictions from the Networking page of your web app or try giving access to all by adding 0.0.0.0/01. Later, you can add restrictions based on your requirements.
    2. Access Restrictions: Navigate to the Networking page of your web app and check the Access Restrictions.
    3. Client Certificate Mode: Check the Client certificate mode in the General settings tab of your Azure web app’s Settings > Configurations. If it’s set to Require, it can throw a 403 error. Change it to Ignore.
    4. Application Setting: Try to set an application setting WEBSITE_WEBDEPLOY_USE_SCM and value true in Azure Portal and retry the deployment after 1 min.
    5. Rename Locked Files and Take App Offline: Ensure the Rename locked files and Take App offline options are enabled in the task.
    6. Remember, the sequence of the restrictions matters, so please check that once. If you have any blocked call before any allowed call, then it may impact. Also, this can happen from code as well, based on how you handle the errors.

    If these solutions don’t work, you might want to check your code and deployment process for any issues.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.