|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.36.1.42791", |
8 | | - "templateHash": "14571116812938220669" |
| 8 | + "templateHash": "2363441728169448979" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
71 | 71 | "description": "Version of the GPT model to deploy:" |
72 | 72 | } |
73 | 73 | }, |
| 74 | + "azureOpenAIApiVersion": { |
| 75 | + "type": "string", |
| 76 | + "defaultValue": "2025-01-01-preview" |
| 77 | + }, |
74 | 78 | "gptDeploymentCapacity": { |
75 | 79 | "type": "int", |
76 | 80 | "defaultValue": 30, |
|
336 | 340 | } |
337 | 341 | }, |
338 | 342 | "abbrs": "[variables('$fxv#0')]", |
339 | | - "azureOpenAIApiVersion": "2025-01-01-preview", |
340 | 343 | "solutionLocation": "[if(empty(parameters('AZURE_LOCATION')), resourceGroup().location, parameters('AZURE_LOCATION'))]", |
341 | 344 | "uniqueId": "[toLower(uniqueString(subscription().id, parameters('environmentName'), variables('solutionLocation')))]", |
342 | 345 | "solutionPrefix": "[format('km{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]", |
|
601 | 604 | "value": "[parameters('gptModelVersion')]" |
602 | 605 | }, |
603 | 606 | "azureOpenAIApiVersion": { |
604 | | - "value": "[variables('azureOpenAIApiVersion')]" |
| 607 | + "value": "[parameters('azureOpenAIApiVersion')]" |
605 | 608 | }, |
606 | 609 | "gptDeploymentCapacity": { |
607 | 610 | "value": "[parameters('gptDeploymentCapacity')]" |
|
2492 | 2495 | "value": { |
2493 | 2496 | "AZURE_OPEN_AI_DEPLOYMENT_MODEL": "[parameters('gptModelName')]", |
2494 | 2497 | "AZURE_OPEN_AI_ENDPOINT": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiServicesTarget.value]", |
2495 | | - "AZURE_OPENAI_API_VERSION": "[variables('azureOpenAIApiVersion')]", |
| 2498 | + "AZURE_OPENAI_API_VERSION": "[parameters('azureOpenAIApiVersion')]", |
2496 | 2499 | "AZURE_OPENAI_RESOURCE": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiServicesName.value]", |
2497 | 2500 | "AZURE_AI_AGENT_ENDPOINT": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.projectEndpoint.value]", |
2498 | 2501 | "AZURE_AI_AGENT_MODEL_DEPLOYMENT_NAME": "[parameters('gptModelName')]", |
|
2505 | 2508 | "SQLDB_SERVER": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlServerName.value]", |
2506 | 2509 | "SQLDB_USERNAME": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_sql_db'), '2022-09-01').outputs.sqlDbUser.value]", |
2507 | 2510 | "SQLDB_USER_MID": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_managed_identity'), '2022-09-01').outputs.managedIdentityBackendAppOutput.value.clientId]", |
2508 | | - "OPENAI_API_VERSION": "[variables('azureOpenAIApiVersion')]", |
| 2511 | + "OPENAI_API_VERSION": "[parameters('azureOpenAIApiVersion')]", |
2509 | 2512 | "AZURE_AI_SEARCH_ENDPOINT": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiSearchTarget.value]", |
2510 | 2513 | "AZURE_AI_SEARCH_API_KEY": "[format('@Microsoft.KeyVault(SecretUri={0}secrets/AZURE-SEARCH-KEY/)', reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_keyvault'), '2022-09-01').outputs.keyvaultUri.value)]", |
2511 | 2514 | "AZURE_AI_SEARCH_INDEX": "call_transcripts_index", |
|
3240 | 3243 | }, |
3241 | 3244 | "AZURE_OPENAI_API_VERSION": { |
3242 | 3245 | "type": "string", |
3243 | | - "value": "[variables('azureOpenAIApiVersion')]" |
| 3246 | + "value": "[parameters('azureOpenAIApiVersion')]" |
3244 | 3247 | }, |
3245 | 3248 | "AZURE_OPENAI_RESOURCE": { |
3246 | 3249 | "type": "string", |
3247 | 3250 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiServicesName.value]" |
3248 | 3251 | }, |
3249 | 3252 | "OPENAI_API_VERSION": { |
3250 | 3253 | "type": "string", |
3251 | | - "value": "[variables('azureOpenAIApiVersion')]" |
| 3254 | + "value": "[parameters('azureOpenAIApiVersion')]" |
3252 | 3255 | }, |
3253 | 3256 | "REACT_APP_LAYOUT_CONFIG": { |
3254 | 3257 | "type": "string", |
|
0 commit comments