|
5 | 5 | "_generator": { |
6 | 6 | "name": "bicep", |
7 | 7 | "version": "0.36.177.2456", |
8 | | - "templateHash": "2218487437635677522" |
| 8 | + "templateHash": "5067006710993312117" |
9 | 9 | } |
10 | 10 | }, |
11 | 11 | "parameters": { |
|
34 | 34 | }, |
35 | 35 | "aiDeploymentsLocation": { |
36 | 36 | "type": "string", |
| 37 | + "allowedValues": [ |
| 38 | + "australiaeast", |
| 39 | + "canadaeast", |
| 40 | + "centraluseuap", |
| 41 | + "eastus", |
| 42 | + "eastus2", |
| 43 | + "francecentral", |
| 44 | + "japaneast", |
| 45 | + "koreacentral", |
| 46 | + "norwayeast", |
| 47 | + "polandcentral", |
| 48 | + "southeastasia", |
| 49 | + "southindia", |
| 50 | + "swedencentral", |
| 51 | + "switzerlandnorth", |
| 52 | + "uaenorth", |
| 53 | + "uksouth", |
| 54 | + "westus", |
| 55 | + "westus3" |
| 56 | + ], |
37 | 57 | "metadata": { |
38 | 58 | "azd": { |
39 | 59 | "type": "location", |
|
78 | 98 | "description": "API version for Azure OpenAI service. This should be a valid API version supported by the service." |
79 | 99 | } |
80 | 100 | }, |
| 101 | + "azureAiAgentApiVersion": { |
| 102 | + "type": "string", |
| 103 | + "defaultValue": "2025-05-01", |
| 104 | + "metadata": { |
| 105 | + "description": "API version for Azure AI Agent service. This should be a valid API version supported by the service." |
| 106 | + } |
| 107 | + }, |
81 | 108 | "gptDeploymentCapacity": { |
82 | 109 | "type": "int", |
83 | 110 | "defaultValue": 150, |
|
638 | 665 | "_generator": { |
639 | 666 | "name": "bicep", |
640 | 667 | "version": "0.36.177.2456", |
641 | | - "templateHash": "13327438188493804054" |
| 668 | + "templateHash": "5405168643980957312" |
642 | 669 | } |
643 | 670 | }, |
644 | 671 | "parameters": { |
|
1402 | 1429 | "aiProjectName": "[if(not(empty(parameters('azureExistingAIProjectResourceId'))), createObject('value', variables('existingAIProjectName')), createObject('value', variables('aiProjectName')))]", |
1403 | 1430 | "principalId": { |
1404 | 1431 | "value": "[reference(resourceId('Microsoft.Search/searchServices', variables('aiSearchName')), '2024-06-01-preview', 'full').identity.principalId]" |
| 1432 | + }, |
| 1433 | + "aiModelDeployments": { |
| 1434 | + "value": "[variables('aiModelDeployments')]" |
1405 | 1435 | } |
1406 | 1436 | }, |
1407 | 1437 | "template": { |
|
1411 | 1441 | "_generator": { |
1412 | 1442 | "name": "bicep", |
1413 | 1443 | "version": "0.36.177.2456", |
1414 | | - "templateHash": "11899270249637077405" |
| 1444 | + "templateHash": "9006594324715793103" |
1415 | 1445 | } |
1416 | 1446 | }, |
1417 | 1447 | "parameters": { |
|
1432 | 1462 | "aiProjectName": { |
1433 | 1463 | "type": "string", |
1434 | 1464 | "defaultValue": "" |
| 1465 | + }, |
| 1466 | + "aiModelDeployments": { |
| 1467 | + "type": "array", |
| 1468 | + "defaultValue": [] |
1435 | 1469 | } |
1436 | 1470 | }, |
1437 | 1471 | "resources": [ |
| 1472 | + { |
| 1473 | + "copy": { |
| 1474 | + "name": "aiServicesDeployments", |
| 1475 | + "count": "[length(parameters('aiModelDeployments'))]", |
| 1476 | + "mode": "serial", |
| 1477 | + "batchSize": 1 |
| 1478 | + }, |
| 1479 | + "condition": "[not(empty(parameters('aiModelDeployments')))]", |
| 1480 | + "type": "Microsoft.CognitiveServices/accounts/deployments", |
| 1481 | + "apiVersion": "2025-04-01-preview", |
| 1482 | + "name": "[format('{0}/{1}', parameters('aiFoundryName'), parameters('aiModelDeployments')[copyIndex()].name)]", |
| 1483 | + "properties": { |
| 1484 | + "model": { |
| 1485 | + "format": "OpenAI", |
| 1486 | + "name": "[parameters('aiModelDeployments')[copyIndex()].model]" |
| 1487 | + }, |
| 1488 | + "raiPolicyName": "[parameters('aiModelDeployments')[copyIndex()].raiPolicyName]" |
| 1489 | + }, |
| 1490 | + "sku": { |
| 1491 | + "name": "[parameters('aiModelDeployments')[copyIndex()].sku.name]", |
| 1492 | + "capacity": "[parameters('aiModelDeployments')[copyIndex()].sku.capacity]" |
| 1493 | + } |
| 1494 | + }, |
1438 | 1495 | { |
1439 | 1496 | "type": "Microsoft.Authorization/roleAssignments", |
1440 | 1497 | "apiVersion": "2022-04-01", |
|
1749 | 1806 | "aiSearchName": { |
1750 | 1807 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aiSearchName.value]" |
1751 | 1808 | }, |
| 1809 | + "azureAiAgentApiVersion": { |
| 1810 | + "value": "[parameters('azureAiAgentApiVersion')]" |
| 1811 | + }, |
1752 | 1812 | "AzureOpenAIEndpoint": { |
1753 | 1813 | "value": "[reference(extensionResourceId(format('/subscriptions/{0}/resourceGroups/{1}', subscription().subscriptionId, resourceGroup().name), 'Microsoft.Resources/deployments', 'deploy_ai_foundry'), '2022-09-01').outputs.aoaiEndpoint.value]" |
1754 | 1814 | }, |
|
1808 | 1868 | "_generator": { |
1809 | 1869 | "name": "bicep", |
1810 | 1870 | "version": "0.36.177.2456", |
1811 | | - "templateHash": "4888491198659956603" |
| 1871 | + "templateHash": "7711665754275271950" |
1812 | 1872 | } |
1813 | 1873 | }, |
1814 | 1874 | "parameters": { |
|
1873 | 1933 | "description": "Azure Open AI Endpoint" |
1874 | 1934 | } |
1875 | 1935 | }, |
| 1936 | + "azureAiAgentApiVersion": { |
| 1937 | + "type": "string" |
| 1938 | + }, |
1876 | 1939 | "azureOpenAIApiVersion": { |
1877 | 1940 | "type": "string" |
1878 | 1941 | }, |
|
2224 | 2287 | }, |
2225 | 2288 | { |
2226 | 2289 | "name": "AZURE_AI_AGENT_API_VERSION", |
2227 | | - "value": "[parameters('azureOpenAIApiVersion')]" |
| 2290 | + "value": "[parameters('azureAiAgentApiVersion')]" |
| 2291 | + }, |
| 2292 | + { |
| 2293 | + "name": "SOLUTION_NAME", |
| 2294 | + "value": "[parameters('solutionName')]" |
2228 | 2295 | }, |
2229 | 2296 | { |
2230 | 2297 | "name": "USE_CHAT_HISTORY_ENABLED", |
|
2261 | 2328 | { |
2262 | 2329 | "name": "UWSGI_THREADS", |
2263 | 2330 | "value": "2" |
| 2331 | + }, |
| 2332 | + { |
| 2333 | + "name": "APP_ENV", |
| 2334 | + "value": "Prod" |
2264 | 2335 | } |
2265 | 2336 | ], |
2266 | 2337 | "linuxFxVersion": "[variables('imageName')]" |
|
2327 | 2398 | "_generator": { |
2328 | 2399 | "name": "bicep", |
2329 | 2400 | "version": "0.36.177.2456", |
2330 | | - "templateHash": "11899270249637077405" |
| 2401 | + "templateHash": "9006594324715793103" |
2331 | 2402 | } |
2332 | 2403 | }, |
2333 | 2404 | "parameters": { |
|
2348 | 2419 | "aiProjectName": { |
2349 | 2420 | "type": "string", |
2350 | 2421 | "defaultValue": "" |
| 2422 | + }, |
| 2423 | + "aiModelDeployments": { |
| 2424 | + "type": "array", |
| 2425 | + "defaultValue": [] |
2351 | 2426 | } |
2352 | 2427 | }, |
2353 | 2428 | "resources": [ |
| 2429 | + { |
| 2430 | + "copy": { |
| 2431 | + "name": "aiServicesDeployments", |
| 2432 | + "count": "[length(parameters('aiModelDeployments'))]", |
| 2433 | + "mode": "serial", |
| 2434 | + "batchSize": 1 |
| 2435 | + }, |
| 2436 | + "condition": "[not(empty(parameters('aiModelDeployments')))]", |
| 2437 | + "type": "Microsoft.CognitiveServices/accounts/deployments", |
| 2438 | + "apiVersion": "2025-04-01-preview", |
| 2439 | + "name": "[format('{0}/{1}', parameters('aiFoundryName'), parameters('aiModelDeployments')[copyIndex()].name)]", |
| 2440 | + "properties": { |
| 2441 | + "model": { |
| 2442 | + "format": "OpenAI", |
| 2443 | + "name": "[parameters('aiModelDeployments')[copyIndex()].model]" |
| 2444 | + }, |
| 2445 | + "raiPolicyName": "[parameters('aiModelDeployments')[copyIndex()].raiPolicyName]" |
| 2446 | + }, |
| 2447 | + "sku": { |
| 2448 | + "name": "[parameters('aiModelDeployments')[copyIndex()].sku.name]", |
| 2449 | + "capacity": "[parameters('aiModelDeployments')[copyIndex()].sku.capacity]" |
| 2450 | + } |
| 2451 | + }, |
2354 | 2452 | { |
2355 | 2453 | "type": "Microsoft.Authorization/roleAssignments", |
2356 | 2454 | "apiVersion": "2022-04-01", |
|
0 commit comments