Skip to content

Commit

Permalink
app/job module - fixed identity output name
Browse files Browse the repository at this point in the history
  • Loading branch information
krbar committed Nov 14, 2023
1 parent 89a5f85 commit e21a811
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modules/app/job/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ The name of the workload profile to use.
| `name` | string | The name of the Container App Job. |
| `resourceGroupName` | string | The name of the resource group the Container App Job was deployed into. |
| `resourceId` | string | The resource ID of the Container App Job. |
| `systemAssignedPrincipalId` | string | The principal ID of the system assigned identity. |
| `systemAssignedMIPrincipalId` | string | The principal ID of the system assigned identity. |

## Cross-referenced modules

Expand Down
2 changes: 1 addition & 1 deletion modules/app/job/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ output name string = containerAppJob.name
output location string = containerAppJob.location

@description('The principal ID of the system assigned identity.')
output systemAssignedPrincipalId string = (managedIdentities.?systemAssigned ?? false) && contains(containerAppJob.identity, 'principalId') ? containerAppJob.identity.principalId : ''
output systemAssignedMIPrincipalId string = (managedIdentities.?systemAssigned ?? false) && contains(containerAppJob.identity, 'principalId') ? containerAppJob.identity.principalId : ''

// =============== //
// Definitions //
Expand Down
4 changes: 2 additions & 2 deletions modules/app/job/main.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"_generator": {
"name": "bicep",
"version": "0.23.1.45101",
"templateHash": "13367947560388494083"
"templateHash": "1177002150217044728"
},
"name": "Container App Jobs",
"description": "This module deploys a Container App Job.",
Expand Down Expand Up @@ -389,7 +389,7 @@
},
"value": "[reference('containerAppJob', '2023-05-01', 'full').location]"
},
"systemAssignedPrincipalId": {
"systemAssignedMIPrincipalId": {
"type": "string",
"metadata": {
"description": "The principal ID of the system assigned identity."
Expand Down

0 comments on commit e21a811

Please sign in to comment.