Skip to content

Commit 9f120ee

Browse files
fix: modify code
1 parent 1d9745d commit 9f120ee

2 files changed

Lines changed: 4 additions & 8 deletions

File tree

infra/main.bicep

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,6 @@ var uniqueId = toLower(uniqueString(subscription().id, environmentName, solution
7272
var solutionPrefix = 'km${padLeft(take(uniqueId, 12), 12, '0')}'
7373
// var resourceGroupName = resourceGroup().name
7474

75-
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/'
76-
77-
7875
// ========== Managed Identity ========== //
7976
module managedIdentityModule 'deploy_managed_identity.bicep' = {
8077
name: 'deploy_managed_identity'
@@ -250,7 +247,7 @@ module frontend_docker 'deploy_frontend_docker.bicep'= {
250247

251248
output SOLUTION_NAME string = solutionPrefix
252249
output RESOURCE_GROUP_NAME string = resourceGroup().name
253-
output RESOURCE_GROUP_LOCATION string = resourceGroupLocation
250+
output RESOURCE_GROUP_LOCATION string = solutionLocation
254251
output ENVIRONMENT_NAME string = environmentName
255252
output AZURE_CONTENT_UNDERSTANDING_LOCATION string = contentUnderstandingLocation
256253
output AZURE_SECONDARY_LOCATION string = secondaryLocation

infra/main.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.34.44.8038",
8-
"templateHash": "6290848882876778384"
8+
"templateHash": "6194079026370260064"
99
}
1010
},
1111
"parameters": {
@@ -103,8 +103,7 @@
103103
"azureOpenAIApiVersion": "2024-02-15-preview",
104104
"solutionLocation": "[if(empty(parameters('AZURE_LOCATION')), resourceGroup().location, parameters('AZURE_LOCATION'))]",
105105
"uniqueId": "[toLower(uniqueString(subscription().id, parameters('environmentName'), variables('solutionLocation')))]",
106-
"solutionPrefix": "[format('km{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]",
107-
"baseUrl": "https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/"
106+
"solutionPrefix": "[format('km{0}', padLeft(take(variables('uniqueId'), 12), 12, '0'))]"
108107
},
109108
"resources": [
110109
{
@@ -2363,7 +2362,7 @@
23632362
},
23642363
"RESOURCE_GROUP_LOCATION": {
23652364
"type": "string",
2366-
"value": "[variables('resourceGroupLocation')]"
2365+
"value": "[variables('solutionLocation')]"
23672366
},
23682367
"ENVIRONMENT_NAME": {
23692368
"type": "string",

0 commit comments

Comments
 (0)