diff --git a/infra/bicep/main.bicep b/infra/bicep/main.bicep index b4769741..f27de9c9 100644 --- a/infra/bicep/main.bicep +++ b/infra/bicep/main.bicep @@ -19,8 +19,8 @@ param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = var solutionLocation = resourceGroupLocation var baseUrl = 'https://raw.githubusercontent.com/microsoft/Build-your-own-copilot-Solution-Accelerator/byoc-researcher/' -@description('Optional created by user name') -param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0] +@description('Tag, Created by user name') +param createdBy string = contains(deployer(), 'userPrincipalName')? split(deployer().userPrincipalName, '@')[0]: deployer().objectId // ========== Resource Group Tag ========== // resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { name: 'default'