Error: Failed to upload file 'site/wwwroot/app_offline.htm' from Kudu. Error: Ip Forbidden (CODE: 403)

Pascual, Emmanuel 20 Reputation points
2023-06-06T03:16:36.8133333+00:00

I am trying to deploy an App Service with a Private Endpoint enabled using Azure DevOps and I am encountering a "Ip Forbidden (CODE: 403)" error.

User's image

Can anyone suggest a solution on how I can deploy it without disabling the "Access Restriction" settings. Note that it can be successfully deployed if I turn off the "Access Restriction".

User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,937 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2023-06-07T06:10:31+00:00

    @Pascual, Emmanuel Thanks for reaching here! If understood right when deploying to web app with private endpoint from azure devops you are facing 403 error. Because the endpoint is private for the SCM too, the DevOps Agent must be in a network with access with the endpoint, so its mandatory to use Self hosted Devops Agent.

    Have you configured custom domain?

    Refer to this official document- https://learn.microsoft.com/en-us/azure/app-service/networking/private-endpoint

    Suggest you to refer this similar discussion here might be helpful.

    Let us know.

    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.