Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading