Skip to content

Commit 2ba89f7

Browse files
Call the variable outside the resource
1 parent e0f98e0 commit 2ba89f7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

content-gen/infra/main.bicep

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ var imageModelDeployment = imageModelChoice != 'none' ? [
247247
var aiFoundryAiServicesModelDeployment = concat(baseModelDeployments, imageModelDeployment)
248248

249249
var aiFoundryAiProjectDescription = 'Content Generation AI Foundry Project'
250+
var existingTags = resourceGroup().tags ?? {}
250251

251252
// ============== //
252253
// Resources //
@@ -276,7 +277,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
276277
name: 'default'
277278
properties: {
278279
tags: union(
279-
resourceGroup().tags ?? {},
280+
existingTags,
280281
tags,
281282
{
282283
TemplateName: 'ContentGen'

0 commit comments

Comments
 (0)