Hello Vaibhav Shah,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are having an error on two different Bot built in different regions and there was an error generating a response and alos, chat history can't be saved at this time with Error code: 401
What you are experiencing is a permission-related issue not because it's general region issue with your Azure OpenAI bots. The error code 401 indicates an authentication issue, which always related to invalid credentials, insufficient permissions or roles. You will first need to make sure that the API keys are correct, and not expired, and properly set in the WebApp Environment variable “AZURE_OPENAI_KEY”. Folllow this links to be able to resolve the issues using best practices:
- https://video2.skills-academy.com/en-us/dotnet/api/overview/azure/ai.openai-readme?view=azure-dotnet-preview#authenticate-the-client
- https://video2.skills-academy.com/en-us/dotnet/ai/quickstarts/get-started-azure-openai?pivots=semantic-kernel#understanding-the-code
- https://video2.skills-academy.com/en-us/azure/ai-services/openai/how-to/role-based-access-control
This is a similar issue on this platform answered by @AshokPeddakotla-MSFT via https://video2.skills-academy.com/en-us/answers/questions/1696839/trouble-connecting-to-azure-openai-api-%28401-error%29 and @VasaviLankipalle-MSFT via https://video2.skills-academy.com/en-us/answers/questions/1722903/401-error-while-trying-to-access-azure-openai-serv
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.