Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion infra/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ module api './app/api.bicep' = {
params: {
name: functionAppName
location: location
tags: tags
tags: union(tags, {
'azd-service-name': 'api'
})
Comment on lines +109 to +111
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

infra/app/api.bicep already applies the azd-service-name tag to the Function App resource (tags: union(tags, { 'azd-service-name': serviceName })). Adding the same tag again here makes the source of truth unclear and can drift if serviceName is ever overridden. Consider either (a) reverting to tags: tags here and relying on api.bicep, or (b) passing an explicit serviceName param from main.bicep and letting api.bicep set the tag once.

Suggested change
tags: union(tags, {
'azd-service-name': 'api'
})
tags: tags

Copilot uses AI. Check for mistakes.
applicationInsightsName: monitoring.outputs.name
appServicePlanId: appServicePlan.outputs.resourceId
runtimeName: 'node'
Expand Down