Skip to content

Commit 472bfe9

Browse files
authored
Fix non-subscription owner scenarios by adding Search Service Contributor user role (#220)
1 parent 01a88b2 commit 472bfe9

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

infra/main.bicep

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,16 @@ module searchContribRoleUser 'core/security/role.bicep' = {
268268
}
269269
}
270270

271+
module searchSvcContribRoleUser 'core/security/role.bicep' = {
272+
scope: searchServiceResourceGroup
273+
name: 'search-svccontrib-role-user'
274+
params: {
275+
principalId: principalId
276+
roleDefinitionId: '7ca78c08-252a-4471-8644-bb5ff32d4ba0'
277+
principalType: 'User'
278+
}
279+
}
280+
271281
// SYSTEM IDENTITIES
272282
module openAiRoleBackend 'core/security/role.bicep' = {
273283
scope: openAiResourceGroup

0 commit comments

Comments
 (0)