Skip to content

Commit 3fe9746

Browse files
authored
Update main.bicep
1 parent 873d1e7 commit 3fe9746

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

infra/main.bicep

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ param azureOpenAILocation string = 'eastus2' // The location used for all deploy
3232

3333
@minLength(3)
3434
@maxLength(20)
35-
@description('Prefix for all resources created by this template. This prefix will be used to create unique names for all resources. The prefix must be unique within the resource group.')
36-
param prefix string = toLower(uniqueString(subscription().id, resourceGroup().location))
35+
@description('A unique prefix for all resources in this deployment. This should be 3-20 characters long:')
36+
param environmentName string
37+
38+
var uniqueId = toLower(uniqueString(subscription().id, environmentName, resourceGroup().location))
39+
var solutionPrefix = 'km${padLeft(take(uniqueId, 12), 12, '0')}'
3740

3841
@description('Tags to apply to all deployed resources')
3942
param tags object = {}

0 commit comments

Comments
 (0)