Unable to connect Azure web app with github repo built on PHP 8.2

Development CEC 0 Reputation points
2025-03-12T17:54:07.4166667+00:00

Everytime i try to connect my github repo to azure web app (PHP 8.2). It gives me the following error. Can someone help me understand the error or the issue.

Failed to set up deployment:

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,178 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva Nair 2,420 Reputation points Microsoft External Staff Moderator
    2025-03-13T11:19:54.6266667+00:00

    Hi Development CEC

    Noted, Since you’ve been successfully using PHP 8.2 and the branch has worked before, the error likely points to an issue with the OAuth permissions or configuration for this new web app instance. To check if the OAuth permissions are set up correctly, log into your GitHub account and navigate to your profile settings. Under “Applications” and then “Authorized OAuth Apps,” look for the entry related to Azure (often labeled as “Azure App Service” or similar) to ensure that it has the proper permissions. On the Azure side, open your web app in the Azure Portal and go to the Deployment Center; check for any error messages or configuration prompts that mention OAuth or token issues. If you see any discrepancies or suspect an issue, you might consider revoking the Azure app’s access from GitHub and then reconnecting it via the Deployment Center to refresh the OAuth permissions

    https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment

    If you have any further assistant, do let me know. 

    If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it. 


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.