Skip to content

Commit f4f6896

Browse files
authored
Fix roles for integrated vectorization (#2016)
1 parent 0136294 commit f4f6896

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

infra/main.bicep

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -763,9 +763,7 @@ module openAiRoleSearchService 'core/security/role.bicep' = if (isAzureOpenAiHos
763763
scope: openAiResourceGroup
764764
name: 'openai-role-searchservice'
765765
params: {
766-
principalId: (deploymentTarget == 'appservice')
767-
? backend.outputs.identityPrincipalId
768-
: acaBackend.outputs.identityPrincipalId
766+
principalId: searchService.outputs.principalId
769767
roleDefinitionId: '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
770768
principalType: 'ServicePrincipal'
771769
}
@@ -799,9 +797,7 @@ module storageRoleSearchService 'core/security/role.bicep' = if (useIntegratedVe
799797
scope: storageResourceGroup
800798
name: 'storage-role-searchservice'
801799
params: {
802-
principalId: (deploymentTarget == 'appservice')
803-
? backend.outputs.identityPrincipalId
804-
: acaBackend.outputs.identityPrincipalId
800+
principalId: searchService.outputs.principalId
805801
roleDefinitionId: '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1'
806802
principalType: 'ServicePrincipal'
807803
}

0 commit comments

Comments
 (0)