Open milind-devlok opened 5 months ago
It sounds like something funky with your azure login status. Can you try "azd auth login" again? You could also try "azd auth login --tenant-id TENANT-ID" if you think its not logging you into the target tenant for your OpenAI deployment.
I've got the same error, and I could solve it by running az login -- maybe the azd at some point uses the az independently which seems to have an independent scope and I had another azure account. Hope this helps. ;)
PD: Pamela and team, you're awesome, total respect. Thank you :)
Getting this error while running with azure open ai env setting. openai.BadRequestError: Error code: 400 - {'error': {'code': 'Tenant provided in token does not match resource token', 'message': 'Token tenant xxxxxxxxxxxxxxxx does not match resource tenant.'}}