Access azure Function customskill from AI search indexer giving Forbidden error.

2024-09-24T18:04:58.81+00:00

Hi,

I have created customskill in azure function and now I trying to access it within AI search Indexer as custom skill with following json format:

User's image

But it's giving me forbidden error:
User's image

Please help to solve this issue.

Thanks,

Sadaf

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,029 questions
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.
1,027 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pinaki Ghatak 4,380 Reputation points Microsoft Employee
    2024-09-25T09:57:07.33+00:00

    Hello @Zaheer. Sadaf (Enterprise Services)

    This error usually occurs when the credentials used to access the resource are not authorized. To resolve this issue, please make sure that you have provided the correct credentials for your Azure Function in the credentials section of your custom skill definition.

    You can also check if the credentials have the necessary permissions to access the Azure Function. If the issue persists, you can try regenerating the credentials for your Azure Function and updating the custom skill definition accordingly.

    Additionally, you can also check if the firewall settings for your Azure Function are configured correctly to allow access from the AI search indexer.

    I hope this helps

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. 2024-09-25T10:57:35.59+00:00

    I have been using _master key with URL for azure function which is also visible within Skillset Template drop down- It automatically picks up the _master code along-with URL from there.
    Whereas, for the AppID I have created within Azure Function App and pass it to the Skillset.
    What other credentials are you referring to?
    Can you please point me t0?

    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.