Skip to content

Commit 1db265a

Browse files
bicep tags changes
1 parent 6e7cffa commit 1db265a

File tree

5 files changed

+17
-2
lines changed

5 files changed

+17
-2
lines changed

infra/deploy_app_service.bicep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ param appImageName string
2222
@description('Optional. Contains User Assigned Identity ID.')
2323
param userassignedIdentityId string = ''
2424

25+
@description('Optional. Tags to be applied to the resources.')
26+
param tags object = {}
27+
2528
resource appService 'Microsoft.Web/sites@2020-06-01' = {
2629
name: solutionName
2730
location: solutionLocation
31+
tags : tags
2832
identity: userassignedIdentityId == '' ? {
2933
type: 'SystemAssigned'
3034
} : {

infra/deploy_appservice-appsettings.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
metadata description = 'Updates app settings for an Azure App Service.'
2-
@description('Required. The name of the app service resource within the current resource group scope.')
2+
@description('Required. The name of the app service resource within the current resource group scope')
33
param name string
44

55
@description('Required. The app settings to be applied to the app service')

infra/deploy_backend_docker.bicep

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ param azureExistingAIProjectResourceId string = ''
3131

3232
@description('Required. Contains AI Search Name')
3333
param aiSearchName string
34+
35+
@description('Optional. Tags to be applied to the resources.')
36+
param tags object = {}
37+
3438
var existingAIServiceSubscription = !empty(azureExistingAIProjectResourceId) ? split(azureExistingAIProjectResourceId, '/')[2] : subscription().subscriptionId
3539
var existingAIServiceResourceGroup = !empty(azureExistingAIProjectResourceId) ? split(azureExistingAIProjectResourceId, '/')[4] : resourceGroup().name
3640
var existingAIServicesName = !empty(azureExistingAIProjectResourceId) ? split(azureExistingAIProjectResourceId, '/')[8] : ''
@@ -117,6 +121,7 @@ module appService 'deploy_app_service.bicep' = {
117121
REACT_APP_LAYOUT_CONFIG: reactAppLayoutConfig
118122
}
119123
)
124+
tags : tags
120125
}
121126
}
122127

@@ -206,6 +211,7 @@ module assignAiUserRoleToAiProject 'deploy_foundry_role_assignment.bicep' = {
206211
}
207212
}
208213

214+
@description('Contains App URL.')
209215
output appUrl string = appService.outputs.appUrl
210216

211217
@description('Contains React App Layout Config.')

infra/deploy_frontend_docker.bicep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ var imageName = 'DOCKER|${acrName}.azurecr.io/km-app:${imageTag}'
2222
@description('Required. The name of the app service resource within the current resource group scope.')
2323
param name string
2424

25+
@description('Optional. Tags to be applied to the resources.')
26+
param tags object = {}
27+
2528
module appService 'deploy_app_service.bicep' = {
2629
name: '${name}-app-module'
2730
params: {
@@ -35,6 +38,7 @@ module appService 'deploy_app_service.bicep' = {
3538
APPINSIGHTS_INSTRUMENTATIONKEY: reference(applicationInsightsId, '2015-05-01').InstrumentationKey
3639
}
3740
)
41+
tags : tags
3842
}
3943
}
4044

infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ module backend_docker 'deploy_backend_docker.bicep' = {
289289
DUMMY_TEST: 'True'
290290
SOLUTION_NAME: solutionSuffix
291291
APP_ENV: 'Prod'
292-
tags : tags
293292
}
293+
tags : tags
294294
}
295295
scope: resourceGroup(resourceGroup().name)
296296
}
@@ -307,6 +307,7 @@ module frontend_docker 'deploy_frontend_docker.bicep' = {
307307
appSettings:{
308308
APP_API_BASE_URL:backend_docker.outputs.appUrl
309309
}
310+
tags : tags
310311
}
311312
scope: resourceGroup(resourceGroup().name)
312313
}

0 commit comments

Comments
 (0)