@@ -6,8 +6,6 @@ targetScope = 'resourceGroup'
66@description ('A unique prefix for all resources in this deployment. This should be 3-10 characters long:' )
77param environmentName string
88
9- var solutionPrefix = environmentName
10-
119@minLength (1 )
1210@description ('Location for the Content Understanding service deployment:' )
1311@allowed (['West US'
@@ -68,8 +66,10 @@ param embeddingDeploymentCapacity int = 80
6866
6967param imageTag string = 'latest'
7068
69+ var uniqueId = toLower (uniqueString (subscription ().id , environmentName , resourceGroup ().location ))
70+ var solutionPrefix = 'km${padLeft (take (uniqueId , 12 ), 12 , '0' )}'
7171var resourceGroupLocation = resourceGroup ().location
72- var resourceGroupName = resourceGroup ().name
72+ // var resourceGroupName = resourceGroup().name
7373
7474var solutionLocation = resourceGroupLocation
7575var baseUrl = 'https://raw.githubusercontent.com/microsoft/Conversation-Knowledge-Mining-Solution-Accelerator/main/'
@@ -191,7 +191,7 @@ module azureFunctionsCharts 'deploy_azure_function_charts.bicep' = {
191191 sqlDbName : sqlDBModule .outputs .sqlDbName
192192 sqlDbUser : sqlDBModule .outputs .sqlDbUser
193193 sqlDbPwd :keyVault .getSecret ('SQLDB-PASSWORD' )
194- managedIdentityObjectId :managedIdentityModule .outputs .managedIdentityOutput .objectId
194+ // managedIdentityObjectId:managedIdentityModule.outputs.managedIdentityOutput.objectId
195195 }
196196 dependsOn :[keyVault ]
197197}
@@ -225,7 +225,7 @@ module azureFunctionURL 'deploy_azure_function_urls.bicep' = {
225225 name : 'deploy_azure_function_urls'
226226 params :{
227227 solutionName : solutionPrefix
228- identity :managedIdentityModule .outputs .managedIdentityOutput .id
228+ // identity:managedIdentityModule.outputs.managedIdentityOutput.id
229229 }
230230 dependsOn :[azureFunctionsCharts ,azureragFunctionsRag ]
231231}
@@ -235,9 +235,9 @@ module appserviceModule 'deploy_app_service.bicep' = {
235235 name : 'deploy_app_service'
236236 params : {
237237 imageTag : imageTag
238- identity :managedIdentityModule .outputs .managedIdentityOutput .id
238+ // identity:managedIdentityModule.outputs.managedIdentityOutput.id
239239 solutionName : solutionPrefix
240- solutionLocation : solutionLocation
240+ // solutionLocation: solutionLocation
241241 AzureOpenAIEndpoint :aifoundry .outputs .aiServicesTarget
242242 AzureOpenAIModel : gptModelName //'gpt-4o-mini'
243243 AzureOpenAIKey :keyVault .getSecret ('AZURE-OPENAI-KEY' )
@@ -250,7 +250,7 @@ module appserviceModule 'deploy_app_service.bicep' = {
250250 GRAPHRAG_URL :azureFunctionURL .outputs .functionURLsOutput .graphrag_function_url
251251 RAG_URL :azureFunctionURL .outputs .functionURLsOutput .rag_function_url
252252 AZURE_COSMOSDB_ACCOUNT : cosmosDBModule .outputs .cosmosAccountName
253- AZURE_COSMOSDB_ACCOUNT_KEY : keyVault .getSecret ('AZURE-COSMOSDB-ACCOUNT-KEY' )
253+ // AZURE_COSMOSDB_ACCOUNT_KEY: keyVault.getSecret('AZURE-COSMOSDB-ACCOUNT-KEY')
254254 AZURE_COSMOSDB_CONVERSATIONS_CONTAINER : cosmosDBModule .outputs .cosmosContainerName
255255 AZURE_COSMOSDB_DATABASE : cosmosDBModule .outputs .cosmosDatabaseName
256256 AZURE_COSMOSDB_ENABLE_FEEDBACK :'True'
0 commit comments