Skip to content

Commit bbad5dc

Browse files
Added a maximum 20-character limit to the environment name.
1 parent 0bea710 commit bbad5dc

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

infra/main.bicep

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ metadata name = 'Content Processing Solution Accelerator'
55
metadata description = 'Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance.'
66

77
// ========== Parameters ========== //
8-
@description('Required. Name of the solution to deploy.')
8+
@minLength(3)
9+
@maxLength(20)
10+
@description('Required. Name of the solution to deploy. This should be 3-20 characters long:')
911
param solutionName string = 'cps'
1012
@description('Optional. Location for all Resources.')
1113
param location string = resourceGroup().location

infra/main.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "10045374231657176554"
9+
"templateHash": "11985360537269850534"
1010
},
1111
"name": "Content Processing Solution Accelerator",
1212
"description": "Bicep template to deploy the Content Processing Solution Accelerator with AVM compliance."
@@ -15,8 +15,10 @@
1515
"solutionName": {
1616
"type": "string",
1717
"defaultValue": "cps",
18+
"minLength": 3,
19+
"maxLength": 20,
1820
"metadata": {
19-
"description": "Required. Name of the solution to deploy."
21+
"description": "Required. Name of the solution to deploy. This should be 3-20 characters long:"
2022
}
2123
},
2224
"location": {
@@ -32968,8 +32970,8 @@
3296832970
"avmContainerApp",
3296932971
"avmContainerApp_API",
3297032972
"avmManagedIdentity",
32971-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3297232973
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
32974+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3297332975
"virtualNetwork"
3297432976
]
3297532977
},
@@ -38710,10 +38712,10 @@
3871038712
"dependsOn": [
3871138713
"avmContainerApp",
3871238714
"avmManagedIdentity",
38713-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
38715+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
3871438716
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
38717+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
3871538718
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
38716-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
3871738719
"logAnalyticsWorkspace",
3871838720
"virtualNetwork"
3871938721
]
@@ -41051,8 +41053,8 @@
4105141053
"dependsOn": [
4105241054
"avmContainerApp",
4105341055
"avmManagedIdentity",
41054-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4105541056
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
41057+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4105641058
"virtualNetwork"
4105741059
]
4105841060
},

0 commit comments

Comments
 (0)