Skip to content

Commit 9444dc9

Browse files
Added tags in main.bicep file
1 parent 9ce0cde commit 9444dc9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.github/workflows/RAdeploy.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ jobs:
9393
"Purpose=Deploying and Cleaning Up Resources for Validation" \
9494
"CreatedDate=$current_date" \
9595
"ApplicationName=Research Assistant" \
96-
"SecurityControl=Ignore" \
9796
|| { echo "Error creating resource group"; exit 1; }
9897
else
9998
echo "Resource group already exists."
@@ -115,7 +114,7 @@ jobs:
115114
az deployment group create \
116115
--resource-group ${{ env.RESOURCE_GROUP_NAME }} \
117116
--template-file infra/bicep/main.bicep \
118-
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} createdBy="Pipeline"
117+
--parameters solutionPrefix=${{ env.SOLUTION_PREFIX }} createdBy="Pipeline" tags="{'SecurityControl':'Ignore'}"
119118
- name: List KeyVaults and Store in Array
120119
id: list_keyvaults
121120
run: |

infra/bicep/main.bicep

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ var resourceGroupLocation = resourceGroup().location
1313
var resourceGroupName = resourceGroup().name
1414
var subscriptionId = subscription().subscriptionId
1515

16+
@description('Optional. The tags to apply to all deployed Azure resources.')
17+
param tags resourceInput<'Microsoft.Resources/resourceGroups@2025-04-01'>.tags = {}
18+
1619
var solutionLocation = resourceGroupLocation
1720
var baseUrl = 'https://raw.githubusercontent.com/microsoft/Build-your-own-copilot-Solution-Accelerator/byoc-researcher/'
1821

@@ -23,6 +26,7 @@ resource resourceGroupTags 'Microsoft.Resources/tags@2021-04-01' = {
2326
name: 'default'
2427
properties: {
2528
tags: {
29+
...tags
2630
TemplateName: 'Research Assistant'
2731
CreatedBy: createdBy
2832
}

0 commit comments

Comments
 (0)