Skip to content

Commit

Permalink
Fix roles for integrated vectorization (#2016)
Browse files Browse the repository at this point in the history
  • Loading branch information
pamelafox authored Oct 4, 2024
1 parent 0136294 commit f4f6896
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,7 @@ module openAiRoleSearchService 'core/security/role.bicep' = if (isAzureOpenAiHos
scope: openAiResourceGroup
name: 'openai-role-searchservice'
params: {
principalId: (deploymentTarget == 'appservice')
? backend.outputs.identityPrincipalId
: acaBackend.outputs.identityPrincipalId
principalId: searchService.outputs.principalId
roleDefinitionId: '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
principalType: 'ServicePrincipal'
}
Expand Down Expand Up @@ -799,9 +797,7 @@ module storageRoleSearchService 'core/security/role.bicep' = if (useIntegratedVe
scope: storageResourceGroup
name: 'storage-role-searchservice'
params: {
principalId: (deploymentTarget == 'appservice')
? backend.outputs.identityPrincipalId
: acaBackend.outputs.identityPrincipalId
principalId: searchService.outputs.principalId
roleDefinitionId: '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1'
principalType: 'ServicePrincipal'
}
Expand Down

0 comments on commit f4f6896

Please sign in to comment.