Github org not showing in Static Web App creation page

pvanroos 20 Reputation points
2024-06-04T16:23:21.0233333+00:00

When I click to create a static web app, there's an option to choose Github as the code source. The dropdown gives the user a list of orgs. I am currently an admin of an org that is not my own but my own org is showing and not the one I am currently an admin. The other org is where I want to connect the repo from. What am I doing wrong? I've been through multiple docs but I can't seem to fix this.

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

Accepted answer
  1. ajkuma 28,036 Reputation points Microsoft Employee Moderator
    2024-06-06T18:19:52.03+00:00

    Update:

    pvanroos fixed the issue :
    "I fixed it by revoking access and then reauthorizing. The new org and role was added after I initially authorized access so that's why only my personal org was showing."

    --
    @pvanroos , Based on my understanding of your issue description, you are referring to this specific option? ( screenshot below).

    One possible reason for this is that you have not granted Azure access to the organization where the repository is located. Kindly ensure or double-check, that you need to authorize Azure to access your GitHub account and grant it access to the organization.

    User's image

    If you have already authorized Azure to access your GitHub account and the organization is still not showing up in the dropdown list, you may need to double-confirm your permissions in the organization ( I understand you have validate this already).

    Also, please try to grant the access to the organization you want to see while creating the Static Web App ( similar discussion).

    You can do so from here: https://github.com/settings/connections/applications/c98ca422fdc82b48e87d

    9253-2020-06-06-12-00-26-document1-autorecovered-word.png

    Just in case if you are not able to reach here using the link above, please follow the steps below,

    • Go to GitHub Settings from top right corner

    • Select Applications from the left side menu

    • Go to Authorized OAuth Apps from the tabs shown

    • And then select Azure Static Web Apps from the list


     If the answer helped (pointed, you in the right direction) > please click Accept Answer - it will benefit community members and be much appreciated.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.