File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -763,9 +763,7 @@ module openAiRoleSearchService 'core/security/role.bicep' = if (isAzureOpenAiHos
763
763
scope : openAiResourceGroup
764
764
name : 'openai-role-searchservice'
765
765
params : {
766
- principalId : (deploymentTarget == 'appservice' )
767
- ? backend .outputs .identityPrincipalId
768
- : acaBackend .outputs .identityPrincipalId
766
+ principalId : searchService .outputs .principalId
769
767
roleDefinitionId : '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
770
768
principalType : 'ServicePrincipal'
771
769
}
@@ -799,9 +797,7 @@ module storageRoleSearchService 'core/security/role.bicep' = if (useIntegratedVe
799
797
scope : storageResourceGroup
800
798
name : 'storage-role-searchservice'
801
799
params : {
802
- principalId : (deploymentTarget == 'appservice' )
803
- ? backend .outputs .identityPrincipalId
804
- : acaBackend .outputs .identityPrincipalId
800
+ principalId : searchService .outputs .principalId
805
801
roleDefinitionId : '2a2b9908-6ea1-4ae2-8e65-a410df84e7d1'
806
802
principalType : 'ServicePrincipal'
807
803
}
You can’t perform that action at this time.
0 commit comments