Skip to content

Commit b6b90b7

Browse files
latest code from dev removed WAF
1 parent 1f44e15 commit b6b90b7

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

infra/main.bicep

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ metadata name = 'Modernize Your Code Solution Accelerator'
22
metadata description = '''CSA CTO Gold Standard Solution Accelerator for Modernize Your Code.
33
'''
44

5+
56
@minLength(3)
67
@maxLength(16)
78
@description('Required. A unique application/solution name for all resources in this deployment. This should be 3-16 characters long.')
@@ -43,12 +44,21 @@ param aiDeploymentsLocation string
4344
@description('Optional. AI model deployment token capacity. Defaults to 150K tokens per minute.')
4445
param capacity int = 150
4546

47+
@description('Optional. Enable monitoring for the resources. This will enable Application Insights and Log Analytics. Defaults to false.')
48+
param enableMonitoring bool = false
49+
50+
@description('Optional. Enable scaling for the container apps. Defaults to false.')
51+
param enableScaling bool = false
52+
4653
@description('Optional. Enable redundancy for applicable resources. Defaults to false.')
4754
param enableRedundancy bool = false
4855

4956
@description('Optional. The secondary location for the Cosmos DB account if redundancy is enabled.')
5057
param secondaryLocation string?
5158

59+
@description('Optional. Enable private networking for the resources. Set to true to enable private networking. Defaults to false.')
60+
param enablePrivateNetworking bool = false
61+
5262
@description('Optional. Size of the Jumpbox Virtual Machine when created. Set to custom value if enablePrivateNetworking is true.')
5363
param vmSize string?
5464

@@ -78,7 +88,7 @@ param llmModel string = 'gpt-4o'
7888

7989
@minLength(1)
8090
@description('Set the Image tag:')
81-
param imageVersion string = 'latest'
91+
param imageVersion string = 'latest_2025-09-22_455'
8292

8393
@minLength(1)
8494
@description('Version of the GPT model to deploy:')
@@ -122,8 +132,9 @@ var modelDeployment = {
122132

123133
var abbrs = loadJsonContent('./abbreviations.json')
124134

125-
@description('Optional created by user name')
126-
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
135+
@description('Tag, Created by user name')
136+
param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId
137+
127138

128139
// ========== Resource Group Tag ========== //
129140
resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
@@ -132,6 +143,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
132143
tags: {
133144
...allTags
134145
TemplateName: 'Code Modernization'
146+
Type: enablePrivateNetworking ? 'WAF' : 'Non-WAF'
135147
CreatedBy: createdBy
136148
}
137149
}

0 commit comments

Comments
 (0)