Skip to content

Commit 89e31a4

Browse files
fix: Updated the value for the AI_FOUNDRY_RESOURCE_ID output to be AI Foundry Resource Id instead of AI Foundry Project Resource Id
2 parents 591cc0d + 93bc48f commit 89e31a4

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

infra/main.bicep

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ module webSiteBackend 'modules/web-sites.bicep' = {
13031303
AGENT_NAME_CONVERSATION: ''
13041304
AGENT_NAME_TITLE: ''
13051305
API_APP_NAME: 'api-${solutionSuffix}'
1306-
AI_FOUNDRY_RESOURCE_ID: !empty(existingAiFoundryAiProjectResourceId) ? existingAiFoundryAiProjectResourceId : aiFoundryAiServices.outputs.resourceId
1306+
AI_FOUNDRY_RESOURCE_ID: aiFoundryAiServices.outputs.resourceId
13071307
AZURE_OPENAI_DEPLOYMENT_MODEL: gptModelName
13081308
AZURE_OPENAI_ENDPOINT: !empty(existingOpenAIEndpoint) ? existingOpenAIEndpoint : 'https://${aiFoundryAiServices.outputs.name}.openai.azure.com/'
13091309
AZURE_OPENAI_API_VERSION: azureOpenAIApiVersion
@@ -1515,8 +1515,8 @@ output STORAGE_ACCOUNT_NAME string = storageAccount.outputs.name
15151515
@description('Name of the Storage Container.')
15161516
output STORAGE_CONTAINER_NAME string = 'data'
15171517

1518-
@description('Resource ID of the AI Foundry Project.')
1519-
output AI_FOUNDRY_RESOURCE_ID string = !empty(existingAiFoundryAiProjectResourceId) ? existingAiFoundryAiProjectResourceId : aiFoundryAiServices.outputs.resourceId
1518+
@description('Resource ID of the AI Foundry.')
1519+
output AI_FOUNDRY_RESOURCE_ID string = aiFoundryAiServices.outputs.resourceId
15201520

15211521
@description('Resource ID of the Content Understanding AI Foundry.')
15221522
output CU_FOUNDRY_RESOURCE_ID string = cognitiveServicesCu.outputs.resourceId

infra/main.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.41.2.15936",
9-
"templateHash": "487190158402104640"
9+
"templateHash": "5621595257944878269"
1010
}
1111
},
1212
"parameters": {
@@ -30052,9 +30052,9 @@
3005230052
}
3005330053
},
3005430054
"dependsOn": [
30055-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
3005630055
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
3005730056
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
30057+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
3005830058
"logAnalyticsWorkspace",
3005930059
"userAssignedIdentity",
3006030060
"virtualNetwork"
@@ -54139,7 +54139,7 @@
5413954139
"AGENT_NAME_CONVERSATION": "",
5414054140
"AGENT_NAME_TITLE": "",
5414154141
"API_APP_NAME": "[format('api-{0}', variables('solutionSuffix'))]",
54142-
"AI_FOUNDRY_RESOURCE_ID": "[if(not(empty(parameters('existingAiFoundryAiProjectResourceId'))), parameters('existingAiFoundryAiProjectResourceId'), reference('aiFoundryAiServices').outputs.resourceId.value)]",
54142+
"AI_FOUNDRY_RESOURCE_ID": "[reference('aiFoundryAiServices').outputs.resourceId.value]",
5414354143
"AZURE_OPENAI_DEPLOYMENT_MODEL": "[parameters('gptModelName')]",
5414454144
"AZURE_OPENAI_ENDPOINT": "[if(not(empty(variables('existingOpenAIEndpoint'))), variables('existingOpenAIEndpoint'), format('https://{0}.openai.azure.com/', reference('aiFoundryAiServices').outputs.name.value))]",
5414554145
"AZURE_OPENAI_API_VERSION": "[parameters('azureOpenAIApiVersion')]",
@@ -58326,9 +58326,9 @@
5832658326
"AI_FOUNDRY_RESOURCE_ID": {
5832758327
"type": "string",
5832858328
"metadata": {
58329-
"description": "Resource ID of the AI Foundry Project."
58329+
"description": "Resource ID of the AI Foundry."
5833058330
},
58331-
"value": "[if(not(empty(parameters('existingAiFoundryAiProjectResourceId'))), parameters('existingAiFoundryAiProjectResourceId'), reference('aiFoundryAiServices').outputs.resourceId.value)]"
58331+
"value": "[reference('aiFoundryAiServices').outputs.resourceId.value]"
5833258332
},
5833358333
"CU_FOUNDRY_RESOURCE_ID": {
5833458334
"type": "string",

infra/main_custom.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,8 +1522,8 @@ output STORAGE_ACCOUNT_NAME string = storageAccount.outputs.name
15221522
@description('Name of the Storage Container.')
15231523
output STORAGE_CONTAINER_NAME string = 'data'
15241524

1525-
@description('Resource ID of the AI Foundry Project.')
1526-
output AI_FOUNDRY_RESOURCE_ID string = !empty(existingAiFoundryAiProjectResourceId) ? existingAiFoundryAiProjectResourceId : aiFoundryAiServices.outputs.resourceId
1525+
@description('Resource ID of the AI Foundry.')
1526+
output AI_FOUNDRY_RESOURCE_ID string = aiFoundryAiServices.outputs.resourceId
15271527

15281528
@description('Resource ID of the Content Understanding AI Foundry.')
15291529
output CU_FOUNDRY_RESOURCE_ID string = cognitiveServicesCu.outputs.resourceId

0 commit comments

Comments
 (0)