From 8b2a441d11009521d1c5273c1cea6117fb3c51dc Mon Sep 17 00:00:00 2001 From: Anthony Shaw Date: Thu, 13 Jun 2024 13:20:24 +1000 Subject: [PATCH] Add missing property in results for security module --- infra/app/security.bicep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/app/security.bicep b/infra/app/security.bicep index d147ac9..9f01725 100644 --- a/infra/app/security.bicep +++ b/infra/app/security.bicep @@ -75,6 +75,6 @@ output roleDefinitions object = { } output roleAssignments array = union( - !empty(appPrincipalId) ? [ nosqlAppAssignment.outputs.id, openaiAppAssignment.outputs ] : [], - !empty(userPrincipalId) ? [ nosqlUserAssignment.outputs.id, registryUserAssignment.outputs.id, openaiUserAssignment.outputs ] : [] + !empty(appPrincipalId) ? [ nosqlAppAssignment.outputs.id, openaiAppAssignment.outputs.id ] : [], + !empty(userPrincipalId) ? [ nosqlUserAssignment.outputs.id, registryUserAssignment.outputs.id, openaiUserAssignment.outputs.id ] : [] )