File tree 2 files changed +16
-10
lines changed
2 files changed +16
-10
lines changed Original file line number Diff line number Diff line change @@ -5,3 +5,7 @@ resource apiIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-3
5
5
name : name
6
6
location : location
7
7
}
8
+
9
+ output tenantId string = apiIdentity .properties .tenantId
10
+ output principalId string = apiIdentity .properties .principalId
11
+ output clientId string = apiIdentity .properties .clientId
Original file line number Diff line number Diff line change @@ -213,16 +213,17 @@ module searchApi './core/host/container-app.bicep' = {
213
213
value : storageContainerName
214
214
}
215
215
{
216
- name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
217
- secretRef : 'appinsights-cs'
216
+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
217
+ secretRef : 'appinsights-cs'
218
+ }
219
+ {
220
+ name : 'AZURE_CLIENT_ID'
221
+ value : searchApiIdentity .outputs .clientId
218
222
}
219
223
]
220
224
imageName : !empty (searchApiImageName ) ? searchApiImageName : 'nginx:latest'
221
225
targetPort : 3000
222
226
}
223
- dependsOn : [
224
- searchApiIdentity
225
- ]
226
227
}
227
228
228
229
// Indexer API identity
@@ -292,16 +293,17 @@ module indexerApi './core/host/container-app.bicep' = {
292
293
value : storageContainerName
293
294
}
294
295
{
295
- name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
296
- secretRef : 'appinsights-cs'
296
+ name : 'APPLICATIONINSIGHTS_CONNECTION_STRING'
297
+ secretRef : 'appinsights-cs'
298
+ }
299
+ {
300
+ name : 'AZURE_CLIENT_ID'
301
+ value : indexerApiIdentity .outputs .clientId
297
302
}
298
303
]
299
304
imageName : !empty (indexerApiImageName ) ? indexerApiImageName : 'nginx:latest'
300
305
targetPort : 3001
301
306
}
302
- dependsOn : [
303
- indexerApiIdentity
304
- ]
305
307
}
306
308
307
309
module openAi 'core/ai/cognitiveservices.bicep' = {
You can’t perform that action at this time.
0 commit comments