Hi@Sharma, Manu thanks for the additional information. I am going to expand on Yutang comment and answer your questions
Firstly, can you please confirm what role assignment you currently have? You will need "Search Index Data Contributor" for read/write access.
Remember, when RBAC is enabled, you need to use Azure AD authentication in your application instead of admin keys. This typically involves obtaining an Azure AD token and using it in your requests to the Search service. RBAC allows you to manage access to your search service using Azure Active Directory (Azure AD) identities. This is more secure than using admin keys.
Set up RBAC by following these steps:
- In your Azure Cognitive Search service, go to "Access control (IAM)"
- Click "Add" > "Add role assignment"
- Choose an appropriate role:
- "Search Index Data Reader" for read-only access
- "Search Index Data Contributor" for read/write access [ this is the role assignment you need]
- "Search Service Contributor" for full access to manage the service
- Select the user, group, or service principal you want to grant access to
- Save the assignment
To address your last question, you're seeing the below message because you have " public network access" Disabled. Please Enable trusted service on the Azure AI resource it by clicking the "All Networks" option. and click Save.
Please let us know if you have further questions.
Best,
Grace