Skip to content

Commit 3848c94

Browse files
committed
updated prefix
1 parent 3fe9746 commit 3848c94

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

infra/main.bicep

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ param azureOpenAILocation string = 'eastus2' // The location used for all deploy
3636
param environmentName string
3737

3838
var uniqueId = toLower(uniqueString(subscription().id, environmentName, resourceGroup().location))
39-
var solutionPrefix = 'km${padLeft(take(uniqueId, 12), 12, '0')}'
39+
var solutionPrefix = 'macae${padLeft(take(uniqueId, 12), 12, '0')}'
4040

4141
@description('Tags to apply to all deployed resources')
4242
param tags object = {}
@@ -62,7 +62,7 @@ param resourceSize {
6262
param capacity int = 140
6363

6464
var modelVersion = '2024-08-06'
65-
var aiServicesName = '${prefix}-aiservices'
65+
var aiServicesName = '${solutionPrefix}-aiservices'
6666
var deploymentType = 'GlobalStandard'
6767
var gptModelVersion = 'gpt-4o'
6868
var appVersion = 'fnd01'
@@ -73,7 +73,7 @@ var dockerRegistryUrl = 'https://${resgistryName}.azurecr.io'
7373
var backendDockerImageURL = '${resgistryName}.azurecr.io/macaebackend:${appVersion}'
7474
var frontendDockerImageURL = '${resgistryName}.azurecr.io/macaefrontend:${appVersion}'
7575

76-
var uniqueNameFormat = '${prefix}-{0}-${uniqueString(resourceGroup().id, prefix)}'
76+
var uniqueNameFormat = '${solutionPrefix}-{0}-${uniqueString(resourceGroup().id, solutionPrefix)}'
7777
var aoaiApiVersion = '2025-01-01-preview'
7878

7979
resource logAnalytics 'Microsoft.OperationalInsights/workspaces@2023-09-01' = {
@@ -149,7 +149,7 @@ resource aiServicesDeployments 'Microsoft.CognitiveServices/accounts/deployments
149149
module kvault 'deploy_keyvault.bicep' = {
150150
name: 'deploy_keyvault'
151151
params: {
152-
solutionName: prefix
152+
solutionName: solutionPrefix
153153
solutionLocation: location
154154
managedIdentityObjectId: managedIdentityModule.outputs.managedIdentityOutput.objectId
155155
}
@@ -163,7 +163,7 @@ module kvault 'deploy_keyvault.bicep' = {
163163
module aifoundry 'deploy_ai_foundry.bicep' = {
164164
name: 'deploy_ai_foundry'
165165
params: {
166-
solutionName: prefix
166+
solutionName: solutionPrefix
167167
solutionLocation: azureOpenAILocation
168168
keyVaultName: kvault.outputs.keyvaultName
169169
gptModelName: gptModelVersion
@@ -279,7 +279,7 @@ resource acaCosomsRoleAssignment 'Microsoft.DocumentDB/databaseAccounts/sqlRoleA
279279

280280
@description('')
281281
resource containerApp 'Microsoft.App/containerApps@2024-03-01' = {
282-
name: '${prefix}-backend'
282+
name: '${solutionPrefix}-backend'
283283
location: location
284284
tags: tags
285285
identity: {
@@ -448,7 +448,7 @@ resource frontendAppService 'Microsoft.Web/sites@2021-02-01' = {
448448
}
449449

450450
resource aiHubProject 'Microsoft.MachineLearningServices/workspaces@2024-01-01-preview' existing = {
451-
name: '${prefix}-aiproject' // aiProjectName must be calculated - available at main start.
451+
name: '${solutionPrefix}-aiproject' // aiProjectName must be calculated - available at main start.
452452
}
453453

454454
resource aiDeveloper 'Microsoft.Authorization/roleDefinitions@2022-04-01' existing = {
@@ -469,7 +469,7 @@ var cosmosAssignCli = 'az cosmosdb sql role assignment create --resource-group "
469469
module managedIdentityModule 'deploy_managed_identity.bicep' = {
470470
name: 'deploy_managed_identity'
471471
params: {
472-
solutionName: prefix
472+
solutionName: solutionPrefix
473473
//solutionLocation: location
474474
managedIdentityId: pullIdentity.id
475475
managedIdentityPropPrin: pullIdentity.properties.principalId

0 commit comments

Comments
 (0)