Skip to content

Commit 921ac61

Browse files
fix: fixed Project name to 12 characters
1 parent 390249e commit 921ac61

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ param name string
88
@description('Specifies the location for all the Azure resources. Defaults to the location of the resource group.')
99
param location string
1010

11-
@description('Optional. Specifies the connections to be created for the Azure AI Hub workspace. The connections are used to connect to other Azure resources and services.')
12-
param connections connectionType[] = []
13-
1411
@description('Optional. Specifies the OpenAI deployments to create.')
1512
param aiModelDeployments deploymentsType[] = []
1613

@@ -95,7 +92,7 @@ param networkAcls object ={
9592
}
9693

9794
@description('Name of the first project')
98-
param projectName string = '${name}proj'
95+
param projectName string = '${take(name, 8)}proj'
9996

10097
var defaultTags = {
10198
'azd-env-name': name

infra/main.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.36.1.42791",
9-
"templateHash": "15881347792888664493"
9+
"templateHash": "16756402081633722832"
1010
}
1111
},
1212
"definitions": {
@@ -1638,16 +1638,6 @@
16381638
"description": "Specifies the location for all the Azure resources. Defaults to the location of the resource group."
16391639
}
16401640
},
1641-
"connections": {
1642-
"type": "array",
1643-
"items": {
1644-
"$ref": "#/definitions/connectionType"
1645-
},
1646-
"defaultValue": [],
1647-
"metadata": {
1648-
"description": "Optional. Specifies the connections to be created for the Azure AI Hub workspace. The connections are used to connect to other Azure resources and services."
1649-
}
1650-
},
16511641
"aiModelDeployments": {
16521642
"type": "array",
16531643
"items": {
@@ -1826,7 +1816,7 @@
18261816
},
18271817
"projectName": {
18281818
"type": "string",
1829-
"defaultValue": "[format('{0}proj', parameters('name'))]",
1819+
"defaultValue": "[format('{0}proj', take(parameters('name'), 8))]",
18301820
"metadata": {
18311821
"description": "Name of the first project"
18321822
}

0 commit comments

Comments
 (0)