Hi @Chhanechhara, Milin , Thanks for using Microsoft Q&A Platform.
Here is a similar issue try to check if this helps. https://github.com/Azure-Samples/azure-search-openai-demo/issues/87
Please check the necessary permissions to access the API/Operation. You can also check the access policies for your Azure OpenAI resource and ensure that the principal has the necessary permissions. Refer to this https://github.com/Azure-Samples/azure-search-openai-demo#sharing-environments
Your Azure Account must have
Microsoft.Authorization/roleAssignments/write
permissions, such as User Access Administrator or Owner.
Try regenerating the API key for your Azure OpenAI resource in the Azure portal and see if that helps.
If you still face issues, I would request you to raise it here: https://github.com/Azure-Samples/azure-search-openai-demo/issues
I hope this helps.
Regards,
Vasavi
-Please kindly accept the answer and vote 'yes' if you feel helpful to support the community, thanks.