Skip to content

Commit de48007

Browse files
main json updated
1 parent 0834666 commit de48007

File tree

1 file changed

+26
-5
lines changed

1 file changed

+26
-5
lines changed

infra/main.json

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "4708808767614470236"
9+
"templateHash": "10857935115773987076"
1010
},
1111
"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"
1313
},
1414
"parameters": {
1515
"solutionName": {
@@ -71,6 +71,20 @@
7171
"description": "Optional. AI model deployment token capacity. Defaults to 150K tokens per minute."
7272
}
7373
},
74+
"enableMonitoring": {
75+
"type": "bool",
76+
"defaultValue": false,
77+
"metadata": {
78+
"description": "Optional. Enable monitoring for the resources. This will enable Application Insights and Log Analytics. Defaults to false."
79+
}
80+
},
81+
"enableScaling": {
82+
"type": "bool",
83+
"defaultValue": false,
84+
"metadata": {
85+
"description": "Optional. Enable scaling for the container apps. Defaults to false."
86+
}
87+
},
7488
"enableRedundancy": {
7589
"type": "bool",
7690
"defaultValue": false,
@@ -85,6 +99,13 @@
8599
"description": "Optional. The secondary location for the Cosmos DB account if redundancy is enabled."
86100
}
87101
},
102+
"enablePrivateNetworking": {
103+
"type": "bool",
104+
"defaultValue": false,
105+
"metadata": {
106+
"description": "Optional. Enable private networking for the resources. Set to true to enable private networking. Defaults to false."
107+
}
108+
},
88109
"vmSize": {
89110
"type": "string",
90111
"nullable": true,
@@ -165,9 +186,9 @@
165186
},
166187
"createdBy": {
167188
"type": "string",
168-
"defaultValue": "[if(empty(deployer().userPrincipalName), '', split(deployer().userPrincipalName, '@')[0])]",
189+
"defaultValue": "[if(contains(deployer(), 'userPrincipalName'), split(deployer().userPrincipalName, '@')[0], deployer().objectId)]",
169190
"metadata": {
170-
"description": "Optional created by user name"
191+
"description": "Tag, Created by user name"
171192
}
172193
}
173194
},
@@ -430,7 +451,7 @@
430451
"apiVersion": "2021-04-01",
431452
"name": "default",
432453
"properties": {
433-
"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'))))]"
434455
}
435456
},
436457
"avmTelemetry": {

0 commit comments

Comments
 (0)