File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ resource auth 'Microsoft.App/containerApps/authConfigs@2024-10-02-preview' = {
56
56
}
57
57
}
58
58
login : {
59
- // https://learn.microsoft.com/en-us/ azure/container-apps/token-store
59
+ // https://learn.microsoft.com/azure/container-apps/token-store
60
60
tokenStore : {
61
61
enabled : true
62
62
azureBlobStorage : {
Original file line number Diff line number Diff line change @@ -1129,6 +1129,17 @@ module storageRoleContributorSearchService 'core/security/role.bicep' = if (useI
1129
1129
}
1130
1130
}
1131
1131
1132
+ // Necessary for the Container Apps backend to store tokens in the container
1133
+ module storageRoleContributorBackend 'core/security/role.bicep' = if (deploymentTarget == 'containerapps' && !empty (clientAppId )) {
1134
+ scope : storageResourceGroup
1135
+ name : 'storage-role-contributor-aca-backend'
1136
+ params : {
1137
+ principalId : acaBackend .outputs .identityPrincipalId
1138
+ roleDefinitionId : 'ba92f5b4-2d11-453d-a403-e96b0029c9fe' // Storage Blob Data Contributor
1139
+ principalType : 'ServicePrincipal'
1140
+ }
1141
+ }
1142
+
1132
1143
// Used to issue search queries
1133
1144
// https://learn.microsoft.com/azure/search/search-security-rbac
1134
1145
module searchRoleBackend 'core/security/role.bicep' = {
You can’t perform that action at this time.
0 commit comments