Share via

Deployment Center Error: OAuthException - GitHub GetRepository Not Found

karthick selvan 0 Reputation points
2026-02-16T18:08:07.38+00:00

Issue Title: Deployment Center Error: OAuthException - GitHub GetRepository Not Found

Problem Description: I am unable to configure CI/CD for my App Service using the GitHub source. Despite successfully authorizing my GitHub account and selecting the repository from the dropdown menu, the "Save" operation fails consistently.

Error Message Received:

Failed to set up deployment: Repository 'UpdateSiteSourceControl' operation failed with Microsoft.Web.Hosting.SourceControls.OAuthException: GitHub GetRepository: Not Found

Steps I have already taken to troubleshoot:

Verified that the GitHub account is authorized under "Authorized OAuth Apps" in GitHub settings.

Confirmed that the "Azure App Service" application has been granted access to the specific Organization.

Attempted to disconnect and reconnect the GitHub account in the Deployment Center.

Verified that the repository is a Private repository and that I have Admin/Write permissions.

Attempted manual configuration via Azure Resource Explorer, which resulted in an "Invalid RepoUrl format" error.

Requested Action: Please investigate if there is a stale token or a backend sync issue preventing the Azure App Service provider from accessing my GitHub private repositories.

Azure App Service
Azure App Service

Azure App Service is a service used to create and deploy scalable, mission-critical web apps.


1 answer

Sort by: Most helpful
  1. Golla Venkata Pavani 4,990 Reputation points Microsoft External Staff Moderator
    2026-02-16T19:32:58.9966667+00:00

    Hi @karthick selvan ,

    Thank you for reaching us regarding the issue of configuring CI/CD for your App Service with GitHub. The error message you're receiving indicates that Azure can't find the specified repository on GitHub.

    Recommended Troubleshooting Steps:

    1.Re-authorize GitHub from Deployment Center and ensure org/repo permissions are granted

    In App Service > Deployment Center > Settings, select GitHub as the source and use Authorize (or Change Account) to re-run the GitHub authorization flow. It states that you should select the GitHub Organization, Repository, and Branch, and if the organization/repository isn’t available (or access is blocked), you likely need to enable more permissions on GitHub.

    2.Use GitHub Actions deployment with OpenID Connect:

    Deploying to Azure App Service using GitHub Actions, and specifically recommends OpenID Connect (OIDC) because it uses short-lived tokens instead of long-lived credentials.

    For an existing app, you can set up GitHub Actions directly from Deployment Center, where App Service can generate a workflow file and commit it to your GitHub repository.

    Reference:
    https://learn.microsoft.com/en-us/azure/app-service/deploy-github-actions?tabs=openid%2Caspnetcore
    https://learn.microsoft.com/en-us/azure/app-service/deploy-continuous-deployment?tabs=github
    Kindly let us know if the above comment helps or you need further assistance on this issue.

    Please "upvote" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    0 comments No comments

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.