Skip to content

Commit cf4f183

Browse files
committed
Grant SP the role as well
1 parent eb2c987 commit cf4f183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

infra/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ module openAIRoleUser 'core/security/role.bicep' = {
413413
params: {
414414
principalId: principalId
415415
roleDefinitionId: '5e0bd9bd-7b93-4f28-af87-19fc36ad61bd'
416-
principalType: 'User'
416+
principalType: empty(runningOnGh) ? 'User' : 'ServicePrincipal'
417417
}
418418
}
419419

0 commit comments

Comments
 (0)