|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.41.2.15936", |
9 | | - "templateHash": "14392918201193616164" |
| 9 | + "templateHash": "15389484880957971429" |
10 | 10 | }, |
11 | 11 | "name": "Intelligent Content Generation Accelerator", |
12 | 12 | "description": "Solution Accelerator for multimodal marketing content generation using Microsoft Agent Framework.\n" |
@@ -14242,6 +14242,100 @@ |
14242 | 14242 | "userAssignedIdentity" |
14243 | 14243 | ] |
14244 | 14244 | }, |
| 14245 | + "existingAiServicesModelDeployments": { |
| 14246 | + "condition": "[variables('useExistingAiFoundryAiProject')]", |
| 14247 | + "type": "Microsoft.Resources/deployments", |
| 14248 | + "apiVersion": "2025-04-01", |
| 14249 | + "name": "[take(format('module.model-deployments-existing.{0}', variables('aiFoundryAiServicesResourceName')), 64)]", |
| 14250 | + "subscriptionId": "[variables('aiFoundryAiServicesSubscriptionId')]", |
| 14251 | + "resourceGroup": "[variables('aiFoundryAiServicesResourceGroupName')]", |
| 14252 | + "properties": { |
| 14253 | + "expressionEvaluationOptions": { |
| 14254 | + "scope": "inner" |
| 14255 | + }, |
| 14256 | + "mode": "Incremental", |
| 14257 | + "parameters": { |
| 14258 | + "aiServicesName": { |
| 14259 | + "value": "[variables('aiFoundryAiServicesResourceName')]" |
| 14260 | + }, |
| 14261 | + "deployments": { |
| 14262 | + "copy": [ |
| 14263 | + { |
| 14264 | + "name": "value", |
| 14265 | + "count": "[length(variables('aiFoundryAiServicesModelDeployment'))]", |
| 14266 | + "input": "[createObject('name', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].name, 'format', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].format, 'model', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].model, 'sku', createObject('name', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].sku.name, 'capacity', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].sku.capacity), 'version', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].version, 'raiPolicyName', variables('aiFoundryAiServicesModelDeployment')[copyIndex('value')].raiPolicyName)]" |
| 14267 | + } |
| 14268 | + ] |
| 14269 | + } |
| 14270 | + }, |
| 14271 | + "template": { |
| 14272 | + "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", |
| 14273 | + "contentVersion": "1.0.0.0", |
| 14274 | + "metadata": { |
| 14275 | + "_generator": { |
| 14276 | + "name": "bicep", |
| 14277 | + "version": "0.41.2.15936", |
| 14278 | + "templateHash": "12449348145632794739" |
| 14279 | + } |
| 14280 | + }, |
| 14281 | + "parameters": { |
| 14282 | + "aiServicesName": { |
| 14283 | + "type": "string", |
| 14284 | + "metadata": { |
| 14285 | + "description": "Required. Name of the AI Services account." |
| 14286 | + } |
| 14287 | + }, |
| 14288 | + "deployments": { |
| 14289 | + "type": "array", |
| 14290 | + "defaultValue": [], |
| 14291 | + "metadata": { |
| 14292 | + "description": "Required. Array of model deployments to create." |
| 14293 | + } |
| 14294 | + } |
| 14295 | + }, |
| 14296 | + "resources": [ |
| 14297 | + { |
| 14298 | + "copy": { |
| 14299 | + "name": "modelDeployments", |
| 14300 | + "count": "[length(parameters('deployments'))]", |
| 14301 | + "mode": "serial", |
| 14302 | + "batchSize": 1 |
| 14303 | + }, |
| 14304 | + "type": "Microsoft.CognitiveServices/accounts/deployments", |
| 14305 | + "apiVersion": "2024-10-01", |
| 14306 | + "name": "[format('{0}/{1}', parameters('aiServicesName'), parameters('deployments')[copyIndex()].name)]", |
| 14307 | + "properties": { |
| 14308 | + "model": { |
| 14309 | + "format": "[parameters('deployments')[copyIndex()].format]", |
| 14310 | + "name": "[parameters('deployments')[copyIndex()].model]", |
| 14311 | + "version": "[parameters('deployments')[copyIndex()].version]" |
| 14312 | + }, |
| 14313 | + "raiPolicyName": "[parameters('deployments')[copyIndex()].raiPolicyName]" |
| 14314 | + }, |
| 14315 | + "sku": { |
| 14316 | + "name": "[parameters('deployments')[copyIndex()].sku.name]", |
| 14317 | + "capacity": "[parameters('deployments')[copyIndex()].sku.capacity]" |
| 14318 | + } |
| 14319 | + } |
| 14320 | + ], |
| 14321 | + "outputs": { |
| 14322 | + "deployedModelNames": { |
| 14323 | + "type": "array", |
| 14324 | + "metadata": { |
| 14325 | + "description": "The names of the deployed models." |
| 14326 | + }, |
| 14327 | + "copy": { |
| 14328 | + "count": "[length(parameters('deployments'))]", |
| 14329 | + "input": "[parameters('deployments')[copyIndex()].name]" |
| 14330 | + } |
| 14331 | + } |
| 14332 | + } |
| 14333 | + } |
| 14334 | + }, |
| 14335 | + "dependsOn": [ |
| 14336 | + "existingAiServicesRoleAssignments" |
| 14337 | + ] |
| 14338 | + }, |
14245 | 14339 | "aiSearch": { |
14246 | 14340 | "type": "Microsoft.Resources/deployments", |
14247 | 14341 | "apiVersion": "2025-04-01", |
|
33185 | 33279 | "_generator": { |
33186 | 33280 | "name": "bicep", |
33187 | 33281 | "version": "0.41.2.15936", |
33188 | | - "templateHash": "4952237836308528733" |
| 33282 | + "templateHash": "11066122245438821615" |
33189 | 33283 | } |
33190 | 33284 | }, |
33191 | 33285 | "parameters": { |
|
33257 | 33351 | }, |
33258 | 33352 | "userAssignedIdentityResourceId": { |
33259 | 33353 | "type": "string", |
33260 | | - "defaultValue": "", |
33261 | 33354 | "metadata": { |
33262 | | - "description": "Optional. User-assigned managed identity resource ID for ACR pull." |
| 33355 | + "description": "Required. User-assigned managed identity resource ID for ACR pull." |
33263 | 33356 | } |
33264 | 33357 | } |
33265 | 33358 | }, |
|
0 commit comments