An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
Hi @Tommy Sim,
The issue seems to be with your Azure Cognitive Search service configuration. The 403-error in particular indicates that your app lacks the correct permissions to use the search index, or something is amiss with the authentication configuration.
Check that the endpoint URL and index name you're specifying in your application are right, you can be able to determine your search service endpoint and indexes in Azure portal, Azure Portal > Cognitive Search > Overview (for endpoint) and Indexes (for index name).
If you're using an admin key, make sure that the admin key you're using is active and accurate. Your keys are available at Azure Portal > Cognitive Search > Keys.
If you're using access token or managed identity, make sure your Azure Cognitive Search has RBAC-based authentication turned on.
Assign the right role (such as Search Index Data Reader or Search Index Data Contributor) to your app's managed identity, you can control role assignment from Azure Portal > Cognitive Search > Access Control (IAM).
If your public network access in Azure Cognitive Search is disabled, ensure that trusted services are enabled, navigate to Azure Portal > Cognitive Search > Networking > Firewalls and virtual networks, and ensure Allow trusted Microsoft services to access this search service is checked.
Managed Identity and Role-Based Access Control (RBAC)
Enable trusted service
If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.