Hi Rebecca Molnar,
I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others", I'll repost your solution.
Please click "Accept" the answer as original posters help the community find answers faster by identifying the correct answer.
Issue : How to fix "azure.core.exceptions.ClientAuthenticationError: (None) Unauthorized. Access token is missing, invalid, audience is incorrect (https://cognitiveservices.azure.com), or have expired" during RAG creation tutorial?
Resolution :
I had to create an application registration and tie that into my code with the:
AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
of the application I just registered into the .env file. Once I figured this out, I was able to run the code without issues.
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.
Accept answers on Microsoft Q&A | Microsoft Learn
An accepted answer is the answer that the person who asked the question chooses as the one they think best solves their problem.