Skip to content

Commit 6f48f62

Browse files
Merge pull request #309 from microsoft/bug-fix-25908
fix: Added a maximum 20-character limit to the environment name.
2 parents 8bae325 + 43d18fe commit 6f48f62

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
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: 7 additions & 4 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": "14310770063360835011"
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": {
@@ -32964,8 +32966,8 @@
3296432966
"avmContainerApp",
3296532967
"avmContainerApp_API",
3296632968
"avmManagedIdentity",
32967-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3296832969
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
32970+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3296932971
"virtualNetwork"
3297032972
]
3297132973
},
@@ -38706,10 +38708,10 @@
3870638708
"dependsOn": [
3870738709
"avmContainerApp",
3870838710
"avmManagedIdentity",
38709-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
3871038711
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
3871138712
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
3871238713
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
38714+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
3871338715
"logAnalyticsWorkspace",
3871438716
"virtualNetwork"
3871538717
]
@@ -41049,6 +41051,7 @@
4104941051
"avmManagedIdentity",
4105041052
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').contentUnderstanding)]",
4105141053
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
41054+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
4105241055
"virtualNetwork"
4105341056
]
4105441057
},

0 commit comments

Comments
 (0)