shigeyf / ai-digitalmedia

AI powered digitial media library portal - sample web portal app
MIT License
3 stars 3 forks source link

Installation failure - "Cannot find SourceControlToken with name GitHub" in deployment step #7 #6

Closed yokawasa closed 6 years ago

yokawasa commented 7 years ago

I got the following deployment error in executing deployment step #7

7. Deploy sample media functions into an Azure Functions account

Not sure but looks like additional configuration needed prior to #7 ?

yokawasa commented 7 years ago

@shigeyf Can you please take a look

shigeyf commented 7 years ago

I have never seen the error before. Let me check it. Meanwhile I would ask you to check: Did you try with your forked repo?

yokawasa commented 7 years ago

Yes, I repro this with my forked repo. After I gave Azure ARM/portal to access Github resource, I didn’t see the error anymore. The procedure needed.

shigeyf commented 6 years ago

Yes, right. You need to allow Azure Portal to use your Github account token to access Github resources. You will need to add Azure Portal as an Authorized OAuth App in Applications settings of your Github account. Please confirm if Azure Portal app is registered in your Github Authorized OAuth App in your personal settings of your Github account. We need to add a documentation to do this registration, since this may not be able to be done in the automation workflow.

woeterman94 commented 1 year ago

Yes, right. You need to allow Azure Portal to use your Github account token to access Github resources. You will need to add Azure Portal as an Authorized OAuth App in Applications settings of your Github account. Please confirm if Azure Portal app is registered in your Github Authorized OAuth App in your personal settings of your Github account. We need to add a documentation to do this registration, since this may not be able to be done in the automation workflow.

Any documentation on how to do this?

gargabhisar commented 1 year ago

image Its already authorized, I am still getting the same issue.

dgsarve commented 1 year ago

Same problem i too facing

woeterman94 commented 1 year ago

How I did it:

gargabhisar commented 1 year ago

image I am not getting "GITHUB External" Option in API App Service.

mak-thevar commented 1 year ago

This error occurs due to connecting Github to multiple Azure accounts. To resolve it, simply revoke all Azure-related apps from the "Authorized OAuth Apps" section in Github settings (https://github.com/settings/applications), then re-authorize Github in Azure. This should allow you to save the deployment.

MikaVirkkunen commented 1 year ago

Same problem for me. If I revoke all OAuth apps and try to create the connection through Deployment Center under Functions App it adds the Azure App Service as Authorized OAuth App but portal still gives the error: "Failed to set up deployment: Cannot find SourceControlToken with name GitHub."

anttikarjalainen commented 1 year ago

@MikaVirkkunen I got it working by disconnecting the github account from deployment center, then opened up the destination (wwwroot/site) in ftps(I used WinScp), transfered some files there and deleted them. Then afterwards I authorized through git and it started working. No idea what happened.

ph1l1pF commented 1 year ago

I tried it with another browser and then it worked. Seems to be a browser caching problem

JulianDeal commented 1 year ago

I tried it with another browser and then it worked. Seems to be a browser caching problem

I can confirm that deleting the browser cache solves the problem.

SIYEA0405 commented 1 year ago

I deleting the browser cache solves the problem.

paulious83 commented 1 year ago

I had azure and git running in chrome but noticed when you select in the development centre to authorize it will load an edge browser window.

closed everything down and restarted the process from Edge and it took two attempts but worked

Leader254 commented 1 year ago

I am getting the same error here

vpallathu commented 1 year ago

I'm getting this error from the template that I generated from Azure for creating Function App resources. I cleared the cookies which did not help. I posted the error in stackoverflow. I'm using Service Principal to create Function App resources.