I have deployed a web app from Azure AI studio, no code web app but facing the error every other time

Sharma, Manu 0 Reputation points
2024-08-27T09:16:37.25+00:00

I've deployed a web app from Azure AI studio, it was working good in the chat playground but when chatting in no code web app, it's giving me error . Pls help me to solve the issue Screenshot 2024-08-27 at 2.43.21 PM

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
948 questions
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
2,916 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,782 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 17,886 Reputation points
    2024-08-29T22:52:37.69+00:00

    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)"

    Screenshot of Access control (IAM) page for a resource group.

    • 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

    Access control (IAM) page with Add role assignment menu open.

    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.Screenshot 2024-08-28 at 2.48.09 PM

    Please let us know if you have further questions.

    Best,

    Grace

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.