diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a4152fc1..a8cfb140 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -150,6 +150,7 @@ jobs: gptModelVersion="2024-08-06" \ gptDeploymentCapacity="30" \ aiDeploymentsLocation="${{ env.AZURE_LOCATION }}" \ + createdBy="Pipeline" \ --query "properties.outputs" -o json); then echo "❌ Deployment failed. See logs above." exit 1 diff --git a/infra/main.bicep b/infra/main.bicep index 031d0f6e..abd6f125 100644 --- a/infra/main.bicep +++ b/infra/main.bicep @@ -418,12 +418,15 @@ module applicationInsights 'br/public:avm/res/insights/component:0.6.0' = { } } +@description('Optional created by user name') +param createdBy string = empty(deployer().userPrincipalName) ? '' : split(deployer().userPrincipalName, '@')[0] // ========== Resource Group Tag ========== // resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = { name: 'default' properties: { tags: { TemplateName: 'Content Processing' + CreatedBy: createdBy } } }