question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure App Service Deploy 403 Error

See original GitHub issue

The Azure App Service Deploy has started throwing 403 errors when running. This was working as recently as Saturday, and has not been modified.

additionally, in the task configuration, I cannot change/select any app service.

2017-09-25T17:29:05.2346239Z ============================================================================== 2017-09-25T17:29:05.2346239Z Task : Azure App Service Deploy 2017-09-25T17:29:05.2346239Z Description : Update Azure Web App Services, Web App On Linux , Function Apps, Mobile Apps using Web Deploy / Kudu REST APIs 2017-09-25T17:29:05.2346239Z Version : 3.3.15 2017-09-25T17:29:05.2346239Z Author : Microsoft Corporation 2017-09-25T17:29:05.2346239Z Help : [More Information](https://aka.ms/azurermwebdeployreadme) 2017-09-25T17:29:05.2346239Z ============================================================================== 2017-09-25T17:29:06.1955591Z ##[error]Forbidden 2017-09-25T17:29:06.1955591Z ##[error]Unable to retrieve connection details for Azure App Service:'ossiacodevui'. Status Code: 403 Forbidden 2017-09-25T17:29:06.1995574Z ##[section]Finishing: Azure App Service Deploy: ossiacodevui

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

6reactions
PoppyPhamcommented, Jun 29, 2018

Oh man, thank @dsharma01 I follow the instruction of MS to create Azure Resource API with Client Principal ID here https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-service-principal-portal In the instruction they set the Role to the “Reader” which caused the Error. And after i set to “Contributor” it works. I wasted 1 day fir this shit.

6reactions
dsharma01commented, Mar 20, 2018

The SPN itself is like a user in Azure AD, by default it has no rights. You have to provide it “contribute” permissions, if you wish to use the SPN to create or update resources in Azure. The powershell script commonly available to create SPN does that for you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure App Service Returns Error - Error 403 - Stack Overflow
When the public access is not allowed on Azure App Service, if you have open public API. · The IP of your application...
Read more >
Zip-deploy to app service with private endpoint (403 Forbidden)
But when executing the deployment step are still getting a 403 Forbidden back. We have an app service. There's a private endpoint on...
Read more >
Still facing 403 error when deploying to web app with private ...
HI, we have created private endpoint to the web app from our Azure DevOps build agent's subnet, created the private DNS zone ...
Read more >
(403) Forbidden on Azure App Service - Kentico DevNet
Message: The remote server returned an error: (403) Forbidden. Exception type: System.Net.WebException Stack trace: at System.Net.WebClient.
Read more >
Unable to deploy to add service after setting up private link
The 403 Forbidden error was probably caused by the restrictions on your firewall / VNET. Please follow this guide to whitelist the agent...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found