Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
Add managed identity to environment (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell authored Apr 19, 2024
1 parent 064bfce commit b2a702e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions deploy/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ resource appEnvironmentInstance 'Microsoft.App/managedEnvironments@2023-11-02-pr
dnsSuffix: dnsSuffix
}
}

identity: { type: 'UserAssigned', userAssignedIdentities: { '${managedIdentity.id}': {} } }
}
resource appEnvironmentRef 'Microsoft.App/managedEnvironments@2022-10-01' existing = if (isReviewApp) { name: appEnvironmentName }

Expand Down Expand Up @@ -100,12 +102,7 @@ resource apps 'Microsoft.App/containerApps@2022-10-01' = [for def in appDefs: {
scale: { minReplicas: 0, maxReplicas: 1 }
}
}
identity: {
type: 'UserAssigned'
userAssignedIdentities: {
'${managedIdentity.id}': {/*ttk bug*/ }
}
}
identity: { type: 'UserAssigned', userAssignedIdentities: { '${managedIdentity.id}': {} } }
}]

/* Role Assignments */
Expand Down

0 comments on commit b2a702e

Please sign in to comment.