Skip to content

Commit cf1e9d2

Browse files
Fix output
1 parent bd9681b commit cf1e9d2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

infra/deploy_foundry_role_assignment.bicep

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,14 @@ resource roleAssignmentToFoundry 'Microsoft.Authorization/roleAssignments@2022-0
9292
}
9393
}
9494

95-
// Outputs
96-
output aiServicesPrincipalId string = enableSystemAssignedIdentity ? aiServicesWithIdentity.identity.principalId : aiServices.identity.principalId
97-
output aiProjectPrincipalId string = !empty(aiProjectName) && enableSystemAssignedIdentity ? aiProjectWithIdentity.identity.principalId : aiProject.identity.principalId
95+
// ========== Outputs ==========
96+
97+
output aiServicesPrincipalId string = enableSystemAssignedIdentity
98+
? aiServicesWithIdentity.identity.principalId
99+
: aiServices.identity.principalId
100+
101+
output aiProjectPrincipalId string = !empty(aiProjectName)
102+
? (enableSystemAssignedIdentity
103+
? aiProjectWithIdentity.identity.principalId
104+
: aiProject.identity.principalId)
105+
: ''

0 commit comments

Comments
 (0)