Skip to content

Commit bd4985e

Browse files
authored
Merge pull request #22 from Azure-Samples/howie/fix-agent-name
Fixed failed to write AZURE_AI_AGENT_NAME into env variable
2 parents 3c60eeb + 373e2a1 commit bd4985e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

infra/api.bicep

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ param serviceName string = 'api'
99
param exists bool
1010
param projectConnectionString string
1111
param agentDeploymentName string
12+
param agentName string
1213

1314
resource apiIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2023-01-31' = {
1415
name: identityName
@@ -24,6 +25,10 @@ var env = [
2425
name: 'AZURE_AIPROJECT_CONNECTION_STRING'
2526
value: projectConnectionString
2627
}
28+
{
29+
name: 'AZURE_AI_AGENT_NAME'
30+
value: agentName
31+
}
2732
{
2833
name: 'AZURE_AI_AGENT_DEPLOYMENT_NAME'
2934
value: agentDeploymentName

infra/main.bicep

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,7 @@ module api 'api.bicep' = {
330330
containerRegistryName: containerApps.outputs.registryName
331331
projectConnectionString: projectConnectionString
332332
agentDeploymentName: agentDeploymentName
333+
agentName: agentName
333334
exists: apiAppExists
334335
}
335336
}

0 commit comments

Comments
 (0)