microsoft / AzureSearch_JFK_Files

This repo contains the sample code of the Azure Search and Cognitive Services used to provide insights and analysis around the JFK Files.
MIT License
389 stars 225 forks source link

Unable to Authenticate Function App and Web App Services #97

Closed kavyasriV closed 4 years ago

kavyasriV commented 4 years ago

I am a beginner with azure services. I have replicated all the steps demonstrated in this example.

I am unable to authenticate Function App and Web App from the code here. can someone help me with this.

Careyjmac commented 4 years ago

Can you share the exact error message that is occurring when you run the JfkInitializer project? It would also be helping if you set the DebugMode boolean flag to true to get additional details on what is going wrong.

kavyasriV commented 4 years ago

I have set debug mode to true and tried to debug the code. I am getting 401 unauthorized error while authenticating Function App and Web App. I am confused if i am passing wrong Username and Password through config. Which Username and Password to provide here.

Careyjmac commented 4 years ago

You should be getting the username and password as part of step 9 of the instructions in the README (i.e. they will be output as part of the deployment template so you don't need to search for them). Here are some additional instructions on where to find these credentials in the Azure portal if needed for some reason: https://docs.microsoft.com/en-us/azure/app-service/deploy-configure-credentials#appscope

kavyasriV commented 4 years ago

I was trying multiple things and i tried these FTP Creds also. i tried app creds and user creds also but nothing seems to work.

kavyasriV commented 4 years ago

how can i remove user creds from app service ?

Careyjmac commented 4 years ago

If you deploy and use the apps that created as part of the instructions as explicitly written in this repo, then you should have no issues. If you are trying to use an app service that you created separately, there are no guarantees on it being able to work.

kavyasriV commented 4 years ago

Thank you. Issue is now solved 👍