Skip to content

Commit 9fb1156

Browse files
updated with dev
1 parent a5892fd commit 9fb1156

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

infra/main.bicep

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ param enableTelemetry bool = true
124124
@description('Optional. Enable purge protection for the Key Vault')
125125
param enablePurgeProtection bool = false
126126

127+
@description('Optional created by user name')
128+
param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0]
129+
127130
// ============== //
128131
// Variables //
129132
// ============== //
@@ -256,7 +259,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
256259
tags: {
257260
... tags
258261
TemplateName: 'Docgen'
259-
SecurityControl: 'Ignore'
262+
CreatedBy: createdBy
260263
}
261264
}
262265
}

infra/main.json

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"_generator": {
77
"name": "bicep",
88
"version": "0.37.4.10188",
9-
"templateHash": "6532750000123932110"
9+
"templateHash": "17149382688370834876"
1010
},
1111
"name": "Document Generation Solution Accelerator",
1212
"description": "CSA CTO Gold Standard Solution Accelerator for Document Generation.\n"
@@ -236,6 +236,13 @@
236236
"metadata": {
237237
"description": "Optional. Enable purge protection for the Key Vault"
238238
}
239+
},
240+
"createdBy": {
241+
"type": "string",
242+
"defaultValue": "[if(empty(deployer().userPrincipalName), '', split(deployer().userPrincipalName, '@')[0])]",
243+
"metadata": {
244+
"description": "Optional created by user name"
245+
}
239246
}
240247
},
241248
"variables": {
@@ -375,7 +382,7 @@
375382
"apiVersion": "2021-04-01",
376383
"name": "default",
377384
"properties": {
378-
"tags": "[shallowMerge(createArray(parameters('tags'), createObject('TemplateName', 'Docgen', 'SecurityControl', 'Ignore')))]"
385+
"tags": "[shallowMerge(createArray(parameters('tags'), createObject('TemplateName', 'Docgen', 'CreatedBy', parameters('createdBy'))))]"
379386
}
380387
},
381388
"existingAiFoundryAiServices": {
@@ -26663,9 +26670,9 @@
2666326670
}
2666426671
},
2666526672
"dependsOn": [
26673+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2666626674
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').aiServices)]",
2666726675
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').openAI)]",
26668-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').cognitiveServices)]",
2666926676
"logAnalyticsWorkspace",
2667026677
"network",
2667126678
"userAssignedIdentity"
@@ -35138,8 +35145,8 @@
3513835145
}
3513935146
},
3514035147
"dependsOn": [
35141-
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3514235148
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageQueue)]",
35149+
"[format('avmPrivateDnsZones[{0}]', variables('dnsZoneIndex').storageBlob)]",
3514335150
"network",
3514435151
"userAssignedIdentity"
3514535152
]

0 commit comments

Comments
 (0)