I am creating a skillset for azure search that involves custom skills developed through azure functions. How can I refer to them without without hardcoding URL and access code?

Nuno Rodrigues 20 Reputation points
2024-10-16T09:11:02.85+00:00

Here is how I specify the custom skill. How can I point it to the right function url without hardcoding it in the data with the access code? This is not robust or reliable. Can I somehow grab it from App configuration or Keyvault? Can I define a variable in the UI that can point to it somehow?

"@odata.type": "#Microsoft.Skills.Custom.WebApiSkill",
      "name": "#0",
      "description": "A custom skill that parses dates from file names",
      "uri": "XXXXXXX",
      "httpMethod": "POST",
      "timeout": "PT100S",
      "batchSize": 1,
      "context": "/document/metadata_storage_path",
	   ...

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,350 questions
{count} votes

1 answer

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2024-10-17T08:44:04.49+00:00

    @Nuno Rodrigues Additional inputs based on your question- you need to provide the function URL, but you can use managed identities instead of the function key: Custom Web API skill in skillsets - Azure AI Search | Microsoft Learn

    Here's how to configure managed identities: Configure a managed identity - Azure AI Search | Microsoft Learn

    Please let us know if further query or issue remains.

    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.