Skip to content

Commit 207bba2

Browse files
Automatic pulling latest code from repo, Policy violation for CosmosDB and ACR, env name max 20 characters limit
1 parent 96c6ce0 commit 207bba2

File tree

6 files changed

+17
-17
lines changed

6 files changed

+17
-17
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
]
1717
}
1818
},
19-
"postCreateCommand": "python3 -m pip install -r infra/scripts/index_scripts/requirements.txt",
19+
"postStartCommand": "git pull origin main && python3 -m pip install -r infra/scripts/index_scripts/requirements.txt",
2020
"remoteUser": "vscode",
2121
"hostRequirements": {
22-
"memory": "8gb"
22+
"memory": "4gb"
2323
}
2424
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Please check the link [Azure Products by Region](https://azure.microsoft.com/en-
5454
5555
- Azure region where the resources will be created in
5656

57-
- Environment name, a 3-10 characters alphanumeric value that will be used to prefix resources
57+
- Environment name, a 3-20 characters alphanumeric value that will be used to prefix resources
5858

5959
- Content Understanding location from the drop-down list of values
6060

@@ -199,7 +199,7 @@ You can view the permissions for your account and subscription by following the
199199
By default this template will use the environment name as the prefix to prevent naming collisions within Azure. The parameters below show the default values. You only need to run the statements below if you need to change the values.
200200
201201
202-
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-10 charaters alphanumeric unique name.
202+
> To override any of the parameters, run `azd env set <key> <value>` before running `azd up`. On the first azd command, it will prompt you for the environment name. Be sure to choose 3-20 charaters alphanumeric unique name.
203203
204204
Change the Content Understanding Location (allowed values: West US, Sweden Central, Australia East)
205205

infra/deploy_ai_foundry.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ resource containerRegistry 'Microsoft.ContainerRegistry/registries@2021-09-01' =
8080
name: 'Premium'
8181
}
8282
properties: {
83-
adminUserEnabled: true
83+
adminUserEnabled: false
8484
dataEndpointEnabled: false
8585
networkRuleBypassOptions: 'AzureServices'
8686
networkRuleSet: {

infra/deploy_cosmos_db.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ resource cosmos 'Microsoft.DocumentDB/databaseAccounts@2022-08-15' = {
3939
databaseAccountOfferType: 'Standard'
4040
enableAutomaticFailover: false
4141
enableMultipleWriteLocations: false
42-
disableLocalAuth: false
42+
disableLocalAuth: true
4343
apiProperties: (kind == 'MongoDB') ? { serverVersion: '4.0' } : {}
4444
capabilities: [ { name: 'EnableServerless' } ]
4545
}

infra/main.bicep

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
targetScope = 'resourceGroup'
33

44
@minLength(3)
5-
@maxLength(10)
6-
@description('A unique prefix for all resources in this deployment. This should be 3-10 characters long:')
5+
@maxLength(20)
6+
@description('A unique prefix for all resources in this deployment. This should be 3-20 characters long:')
77
param environmentName string
88

99
@minLength(1)

infra/main.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.33.93.31351",
8-
"templateHash": "6443985593110817960"
8+
"templateHash": "770098073876871961"
99
}
1010
},
1111
"parameters": {
1212
"environmentName": {
1313
"type": "string",
1414
"minLength": 3,
15-
"maxLength": 10,
15+
"maxLength": 20,
1616
"metadata": {
17-
"description": "A unique prefix for all resources in this deployment. This should be 3-10 characters long:"
17+
"description": "A unique prefix for all resources in this deployment. This should be 3-20 characters long:"
1818
}
1919
},
2020
"contentUnderstandingLocation": {
@@ -366,7 +366,7 @@
366366
"_generator": {
367367
"name": "bicep",
368368
"version": "0.33.93.31351",
369-
"templateHash": "12900062765650369722"
369+
"templateHash": "16302841985782460131"
370370
}
371371
},
372372
"parameters": {
@@ -540,7 +540,7 @@
540540
"name": "Premium"
541541
},
542542
"properties": {
543-
"adminUserEnabled": true,
543+
"adminUserEnabled": false,
544544
"dataEndpointEnabled": false,
545545
"networkRuleBypassOptions": "AzureServices",
546546
"networkRuleSet": {
@@ -1250,7 +1250,7 @@
12501250
"_generator": {
12511251
"name": "bicep",
12521252
"version": "0.33.93.31351",
1253-
"templateHash": "3100365088410602500"
1253+
"templateHash": "12347068855899407617"
12541254
}
12551255
},
12561256
"parameters": {
@@ -1339,7 +1339,7 @@
13391339
"databaseAccountOfferType": "Standard",
13401340
"enableAutomaticFailover": false,
13411341
"enableMultipleWriteLocations": false,
1342-
"disableLocalAuth": false,
1342+
"disableLocalAuth": true,
13431343
"apiProperties": "[if(equals(parameters('kind'), 'MongoDB'), createObject('serverVersion', '4.0'), createObject())]",
13441344
"capabilities": [
13451345
{
@@ -2363,7 +2363,7 @@
23632363
"_generator": {
23642364
"name": "bicep",
23652365
"version": "0.33.93.31351",
2366-
"templateHash": "5835426116727035307"
2366+
"templateHash": "11186995242820167426"
23672367
}
23682368
},
23692369
"parameters": {
@@ -2498,7 +2498,7 @@
24982498
},
24992499
"variables": {
25002500
"WebAppImageName": "[format('DOCKER|kmcontainerreg.azurecr.io/km-app:{0}', parameters('imageTag'))]",
2501-
"REACT_APP_LAYOUT_CONFIG": "{\r\n \"appConfig\": {\r\n \"THREE_COLUMN\": {\r\n \"DASHBOARD\": 50,\r\n \"CHAT\": 33,\r\n \"CHATHISTORY\": 17\r\n },\r\n \"TWO_COLUMN\": {\r\n \"DASHBOARD_CHAT\": {\r\n \"DASHBOARD\": 65,\r\n \"CHAT\": 35\r\n },\r\n \"CHAT_CHATHISTORY\": {\r\n \"CHAT\": 80,\r\n \"CHATHISTORY\": 20\r\n }\r\n }\r\n },\r\n \"charts\": [\r\n {\r\n \"id\": \"SATISFIED\",\r\n \"name\": \"Satisfied\",\r\n \"type\": \"card\",\r\n \"layout\": { \"row\": 1, \"column\": 1, \"height\": 11 }\r\n },\r\n {\r\n \"id\": \"TOTAL_CALLS\",\r\n \"name\": \"Total Calls\",\r\n \"type\": \"card\",\r\n \"layout\": { \"row\": 1, \"column\": 2, \"span\": 1 }\r\n },\r\n {\r\n \"id\": \"AVG_HANDLING_TIME\",\r\n \"name\": \"Average Handling Time\",\r\n \"type\": \"card\",\r\n \"layout\": { \"row\": 1, \"column\": 3, \"span\": 1 }\r\n },\r\n {\r\n \"id\": \"SENTIMENT\",\r\n \"name\": \"Topics Overview\",\r\n \"type\": \"donutchart\",\r\n \"layout\": { \"row\": 2, \"column\": 1, \"width\": 40, \"height\": 44.5 }\r\n },\r\n {\r\n \"id\": \"AVG_HANDLING_TIME_BY_TOPIC\",\r\n \"name\": \"Average Handling Time By Topic\",\r\n \"type\": \"bar\",\r\n \"layout\": { \"row\": 2, \"column\": 2, \"row-span\": 2, \"width\": 60 }\r\n },\r\n {\r\n \"id\": \"TOPICS\",\r\n \"name\": \"Trending Topics\",\r\n \"type\": \"table\",\r\n \"layout\": { \"row\": 3, \"column\": 1, \"span\": 2 }\r\n },\r\n {\r\n \"id\": \"KEY_PHRASES\",\r\n \"name\": \"Key Phrases\",\r\n \"type\": \"wordcloud\",\r\n \"layout\": { \"row\": 3, \"column\": 2, \"height\": 44.5 }\r\n }\r\n ]\r\n}"
2501+
"REACT_APP_LAYOUT_CONFIG": "{\n \"appConfig\": {\n \"THREE_COLUMN\": {\n \"DASHBOARD\": 50,\n \"CHAT\": 33,\n \"CHATHISTORY\": 17\n },\n \"TWO_COLUMN\": {\n \"DASHBOARD_CHAT\": {\n \"DASHBOARD\": 65,\n \"CHAT\": 35\n },\n \"CHAT_CHATHISTORY\": {\n \"CHAT\": 80,\n \"CHATHISTORY\": 20\n }\n }\n },\n \"charts\": [\n {\n \"id\": \"SATISFIED\",\n \"name\": \"Satisfied\",\n \"type\": \"card\",\n \"layout\": { \"row\": 1, \"column\": 1, \"height\": 11 }\n },\n {\n \"id\": \"TOTAL_CALLS\",\n \"name\": \"Total Calls\",\n \"type\": \"card\",\n \"layout\": { \"row\": 1, \"column\": 2, \"span\": 1 }\n },\n {\n \"id\": \"AVG_HANDLING_TIME\",\n \"name\": \"Average Handling Time\",\n \"type\": \"card\",\n \"layout\": { \"row\": 1, \"column\": 3, \"span\": 1 }\n },\n {\n \"id\": \"SENTIMENT\",\n \"name\": \"Topics Overview\",\n \"type\": \"donutchart\",\n \"layout\": { \"row\": 2, \"column\": 1, \"width\": 40, \"height\": 44.5 }\n },\n {\n \"id\": \"AVG_HANDLING_TIME_BY_TOPIC\",\n \"name\": \"Average Handling Time By Topic\",\n \"type\": \"bar\",\n \"layout\": { \"row\": 2, \"column\": 2, \"row-span\": 2, \"width\": 60 }\n },\n {\n \"id\": \"TOPICS\",\n \"name\": \"Trending Topics\",\n \"type\": \"table\",\n \"layout\": { \"row\": 3, \"column\": 1, \"span\": 2 }\n },\n {\n \"id\": \"KEY_PHRASES\",\n \"name\": \"Key Phrases\",\n \"type\": \"wordcloud\",\n \"layout\": { \"row\": 3, \"column\": 2, \"height\": 44.5 }\n }\n ]\n}"
25022502
},
25032503
"resources": [
25042504
{

0 commit comments

Comments
 (0)