Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion .github/workflows/RAdeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
az deployment group create \
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
--template-file infra/bicep/main.bicep \
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }}
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} createdBy="Pipeline"
- name: List KeyVaults and Store in Array
id: list_keyvaults
run: |
Expand Down
5 changes: 3 additions & 2 deletions infra/bicep/main.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ var subscriptionId = subscription().subscriptionId
var solutionLocation = resourceGroupLocation
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Build-your-own-copilot-Solution-Accelerator/byoc-researcher/'

var deployerInfo = deployer()
@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: 'Research Assistant'
CreatedBy: split(deployerInfo.userPrincipalName, '@')[0]
CreatedBy: createdBy
}
}
}
Expand Down