azuregithubazure-web-app-servicegithub-actions

Adding a connection from Azure Web App to GitHub using Deployment center


We are trying to push an app from GitHub to Azure Web App. In GitHub I am an owner of an organization called DNA:

enter image description here

In the org the repo we would like to deploy exists:

enter image description here

In Azure I go to the "Deployment center" and choose GitHub in the source. I sign in with my account but I only see my personal repos and not repos from the org. What can cause this?

enter image description here

The only org I can choose are is my own profile: enter image description here


Solution

  • Follow below steps to see the multiple(or) specific organizations in the drop down of Organization under Deployment=>Source=>GitHub.

    1. Go to your profile in GitHub, open Settings=>Applications.
    2. Navigate to Authorized OAuth Apps, select Azure App Service.

    enter image description here

    1. You can see your organization which requires access under Organization Access, click on Grant to allow the organization to control the application deployment to Azure App Service.

    enter image description here

    While creating Azure App Service, navigate to Deployment section=> Source=> GitHub, click on Authorize, you can see your organization. click on Grant=> Authorize AzureAppService.

    enter image description here

    Now, you will be able to see all your organizations and repositories.

    enter image description here

    You can see all the repositories available under the selected organization.

    enter image description here