|
6 | 6 | "_generator": { |
7 | 7 | "name": "bicep", |
8 | 8 | "version": "0.37.4.10188", |
9 | | - "templateHash": "4708808767614470236" |
| 9 | + "templateHash": "10857935115773987076" |
10 | 10 | }, |
11 | 11 | "name": "Modernize Your Code Solution Accelerator", |
12 | | - "description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \n" |
| 12 | + "description": "CSA CTO Gold Standard Solution Accelerator for Modernize Your Code. \r\n" |
13 | 13 | }, |
14 | 14 | "parameters": { |
15 | | - "useWafAlignedArchitecture": { |
16 | | - "type": "bool", |
17 | | - "metadata": { |
18 | | - "description": "Set to true if you want to deploy WAF-aligned infrastructure." |
19 | | - } |
20 | | - }, |
21 | 15 | "solutionName": { |
22 | 16 | "type": "string", |
23 | 17 | "minLength": 3, |
|
79 | 73 | }, |
80 | 74 | "enableMonitoring": { |
81 | 75 | "type": "bool", |
82 | | - "defaultValue": "[if(parameters('useWafAlignedArchitecture'), true(), false())]", |
| 76 | + "defaultValue": false, |
83 | 77 | "metadata": { |
84 | 78 | "description": "Optional. Enable monitoring for the resources. This will enable Application Insights and Log Analytics. Defaults to false." |
85 | 79 | } |
86 | 80 | }, |
87 | 81 | "enableScaling": { |
88 | 82 | "type": "bool", |
89 | | - "defaultValue": "[if(parameters('useWafAlignedArchitecture'), true(), false())]", |
| 83 | + "defaultValue": false, |
90 | 84 | "metadata": { |
91 | 85 | "description": "Optional. Enable scaling for the container apps. Defaults to false." |
92 | 86 | } |
|
107 | 101 | }, |
108 | 102 | "enablePrivateNetworking": { |
109 | 103 | "type": "bool", |
110 | | - "defaultValue": "[if(parameters('useWafAlignedArchitecture'), true(), false())]", |
| 104 | + "defaultValue": false, |
111 | 105 | "metadata": { |
112 | 106 | "description": "Optional. Enable private networking for the resources. Set to true to enable private networking. Defaults to false." |
113 | 107 | } |
|
192 | 186 | }, |
193 | 187 | "createdBy": { |
194 | 188 | "type": "string", |
195 | | - "defaultValue": "[if(empty(deployer().userPrincipalName), '', split(deployer().userPrincipalName, '@')[0])]", |
| 189 | + "defaultValue": "[if(contains(deployer(), 'userPrincipalName'), split(deployer().userPrincipalName, '@')[0], deployer().objectId)]", |
196 | 190 | "metadata": { |
197 | | - "description": "Optional created by user name" |
| 191 | + "description": "Tag, Created by user name" |
198 | 192 | } |
199 | 193 | } |
200 | 194 | }, |
|
457 | 451 | "apiVersion": "2021-04-01", |
458 | 452 | "name": "default", |
459 | 453 | "properties": { |
460 | | - "tags": "[shallowMerge(createArray(variables('allTags'), createObject('TemplateName', 'Code Modernization', 'CreatedBy', parameters('createdBy'))))]" |
| 454 | + "tags": "[shallowMerge(createArray(variables('allTags'), createObject('TemplateName', 'Code Modernization', 'Type', if(parameters('enablePrivateNetworking'), 'WAF', 'Non-WAF'), 'CreatedBy', parameters('createdBy'))))]" |
461 | 455 | } |
462 | 456 | }, |
463 | 457 | "avmTelemetry": { |
|
0 commit comments