Skip to content
Discussion options

You must be logged in to vote

If you are using keyless authentication, you also need to set up the RBAC role to allow the search service to reach the OpenAI endpoint. This is how we do it in azure-search-openai-demo:

module openAiRoleSearchService 'core/security/role.bicep' = {
  scope: openAiResourceGroup
  name: 'openai-role-searchservice'
  params: {
    principalId: searchService.outputs.principalId
    roleDefinitionId: '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
    principalType: 'ServicePrincipal'
  }
}

Here's documentation that shows other ways to do it:

https://learn.microsoft.com/en-us/azure/search/search-howto-managed-identities-data-sources?tabs=portal-sys%2Cportal-user#assign-a-role

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by amynic
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment