A custom Web API skill calls an existing Azure Function. The function requires a function access key, and Microsoft Entra authentication is disabled. This authentication configuration must remain unchanged.
Requests must use encrypted transport. Security policy forbids access keys in request URLs.
Which request configuration should you use?
Use an HTTPS endpoint and place the function key in a request header. This satisfies the function's existing authorization requirement while keeping the key out of the URL. Managed identity authentication would require configuration changes that the scenario prohibits.
- Correct: Use HTTPS and send the function key in an HTTP header. The source supports sending a function's access key through a header. HTTPS meets the transport requirement, and the key remains outside the URL.
- Not correct: Use HTTP and send the function key in an HTTP header. The header supplies the key, but HTTP fails the transport requirement. The source specifies an HTTPS endpoint for the custom skill.
- Not correct: Use HTTPS and send the function key as a URI parameter. The source supports a URI parameter as an authorization method, but that method violates this scenario's restriction on keys in URLs.
- Not correct: Use HTTPS and send a Microsoft Entra managed identity token. The source requires the receiving application to be configured for Microsoft Entra ID when using managed identity authentication. That would require changing the function's stated authentication configuration.
- Custom Skill Interface - Azure AI SearchMicrosoft Learn