title: Azure Devops release pipeline Failed to deploy web package to App Service. Ip Forbidden 403
body: <p>My release pipeline has started to fail today after working fine for months.. I'm unable to find any information regarding this error. Here is the relevant log after setting System.Debug=true.</p>
  
  <pre><code>2019-06-03T09:12:56.1141807Z Package deployment using ZIP Deploy initiated.
  2019-06-03T09:12:56.1227504Z ##[debug][POST]https://$DuoCore__staging:***@xxx-staging.scm.azurewebsites.net/api/zipdeploy?deployer=VSTS&amp;message=%7B%22type%22%3A%22deployment%22%2C%22commitId%22%3A%2241ea351fc04ac594f9a979d19117e494e03c30aa%22%2C%22buildId%22%3A%223477%22%2C%22releaseId%22%3A%221780%22%2C%22buildNumber%22%3A%2220190602.1%22%2C%22releaseName%22%3A%22Release-37%22%2C%22repoProvider%22%3A%22TfsGit%22%2C%22repoName%22%3A%22xxxFront%22%2C%22collectionUrl%22%3A%22https%3A%2F%2Fvectorcuatrogroup.visualstudio.com%2F%22%2C%22teamProject%22%3A%223a39c617-c412-480d-aa54-be5cca265a43%22%2C%22slotName%22%3A%22Staging%22%7D
  2019-06-03T09:12:56.2135188Z ##[debug]Could not parse response: {}
  2019-06-03T09:12:56.2135454Z ##[debug]Response: undefined
  2019-06-03T09:12:56.2137686Z ##[debug]ZIP Deploy response: {"statusCode":403,"statusMessage":"Ip Forbidden","headers":{"content-type":"text/html","server":"Microsoft-IIS/10.0","date":"Mon, 03 Jun 2019 09:12:55 GMT","connection":"close","content-length":"2399"},"body":"&lt;!DOCTYPE html&gt;\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n    &lt;title&gt;Web App - Unavailable&lt;/title&gt;\r\n    &lt;style type=\"text/css\"&gt;\r\n        html {\r\n            height: 100%;\r\n            width: 100%;\r\n        }\r\n\r\n        #feature {\r\n            width: 960px;\r\n            margin: 95px auto 0 auto;\r\n            overflow: auto;\r\n        }\r\n\r\n        #content {\r\n            font-family: \"Segoe UI\";\r\n            font-weight: normal;\r\n            font-size: 22px;\r\n            color: #ffffff;\r\n            float: left;\r\n            width: 460px;\r\n            margin-top: 68px;\r\n            margin-left: 0px;\r\n            vertical-align: middle;\r\n        }\r\n\r\n            #content h1 {\r\n                font-family: \"Segoe UI Light\";\r\n                color: #ffffff;\r\n                font-weight: normal;\r\n                font-size: 60px;\r\n                line-height: 48pt;\r\n                width: 800px;\r\n            }\r\n\r\n        p a, p a:visited, p a:active, p a:hover {\r\n            color: #ffffff;\r\n        }\r\n\r\n        #content a.button {\r\n            background: #0DBCF2;\r\n            border: 1px solid #FFFFFF;\r\n            color: #FFFFFF;\r\n            display: inline-block;\r\n            font-family: Segoe UI;\r\n            font-size: 24px;\r\n            line-height: 46px;\r\n            margin-top: 10px;\r\n            padding: 0 15px 3px;\r\n            text-decoration: none;\r\n        }\r\n\r\n            #content a.button img {\r\n                float: right;\r\n                padding: 10px 0 0 15px;\r\n            }\r\n\r\n            #content a.button:hover {\r\n                background: #1C75BC;\r\n            }\r\n    &lt;/style&gt;\r\n&lt;/head&gt;\r\n&lt;body bgcolor=\"#00abec\"&gt;\r\n    &lt;div id=\"feature\"&gt;\r\n            &lt;div id=\"content\"&gt;\r\n                &lt;h1 id=\"unavailable\"&gt;Error 403 - This web app is stopped.&lt;/h1&gt;\r\n                &lt;p id=\"tryAgain\"&gt;The web app you have attempted to reach is currently stopped and does not accept any requests. Please try to reload the page or visit it again soon.&lt;/p&gt;\r\n                &lt;p id=\"toAdmin\"&gt;If you are the web app administrator, please find the common 403 error scenarios and resolution &lt;a href=\"http://blogs.msdn.com/b/waws/archive/2016/01/05/azure-web-apps-error-403-this-web-app-is-stopped.aspx\" target=\"_blank\"&gt;here&lt;/a&gt;. For further troubleshooting tools and recommendations, please visit &lt;a href=\"https://portal.azure.com/\"&gt;Azure Portal&lt;/a&gt;.&lt;/p&gt;\r\n        &lt;/div&gt;\r\n    &lt;/div&gt;\r\n&lt;/body&gt;\r\n&lt;/html&gt;\r\n"}
  2019-06-03T09:12:56.2199524Z ##[error]Failed to deploy web package to App Service.
  2019-06-03T09:12:56.2208644Z ##[debug]Processed: ##vso[task.issue type=error;]Failed to deploy web package to App Service.
  2019-06-03T09:12:56.2208989Z ##[debug]Deployment Failed with Error: Error: Error: Failed to deploy web package to App Service. Ip Forbidden (CODE: 403)
  2019-06-03T09:12:56.2209141Z ##[debug]task result: Failed
  2019-06-03T09:12:56.2209425Z ##[error]Error: Error: Failed to deploy web package to App Service. Ip Forbidden (CODE: 403)
  2019-06-03T09:12:56.2209663Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Error: Failed to deploy web package to App Service. Ip Forbidden (CODE: 403)
  2019-06-03T09:12:56.2210196Z ##[debug]Processed: ##vso[task.complete result=Failed;]Error: Error: Failed to deploy web package to App Service. Ip Forbidden (CODE: 403)
  2019-06-03T09:12:56.2210358Z ##[debug]Application Insights is not configured for the App Service. Skipping adding release annotation.
  2019-06-03T09:12:56.2210529Z ##[debug][POST]https://management.azure.com/subscriptions/7b86f649-7ce5-4da3-ac60-3ad477c0dd15/resourceGroups/RG_DUO_WEBAPP_PRE/providers/Microsoft.Web/sites/DuoCore/slots/Staging/publishxml?api-version=2016-08-01
  2019-06-03T09:12:56.7236671Z ##[debug]Could not parse response: {}
  2019-06-03T09:12:56.7237203Z ##[debug]Response: undefined
  2019-06-03T09:12:56.7380358Z App Service Application URL: http://duocore-staging.azurewebsites.net
  2019-06-03T09:12:56.7381542Z ##[debug]set AppServiceApplicationUrl=http://duocore-staging.azurewebsites.net
  2019-06-03T09:12:56.7382651Z ##[debug]Processed: ##vso[task.setvariable variable=AppServiceApplicationUrl;issecret=false;]http://duocore-staging.azurewebsites.net
  2019-06-03T09:12:56.7383220Z ##[debug]Deployment failed
  2019-06-03T09:12:56.7608716Z ##[section]Finishing: Deploy Azure App Service to Slot
  </code></pre>
  
  <p>I had verified my connection from Devops, it's ok.</p>
  
  <p><a href="https://i.stack.imgur.com/8mEj0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8mEj0.png" alt="enter image description here"></a></p>