You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by ThojoUno August 2, 2023
We have a very restricted lab/test environment that REQUIRES Azure tags on all resource groups. Because of this, we can't perform deployment validation with the current branch. It would be quite easy to implement but requires updating every main.test.bicep template.
Steps to implement:
very restricted lab/test environment that REQUIRES Azure tags on all resource groups. Because of this, we can't perform deployment validation with the current branch. It would be quite easy to implement but requires updating every main.test.bicep template. Steps to implement:
Discussed in #3489
Originally posted by ThojoUno August 2, 2023
We have a very restricted lab/test environment that REQUIRES Azure tags on all resource groups. Because of this, we can't perform deployment validation with the current branch. It would be quite easy to implement but requires updating every main.test.bicep template.
Steps to implement:
Update Deployment validation section
location: 'centralus'
tags: '@{"Environment"="Lab";"Expiry Date"="12/31/2023";"Business Unit"="Cloud";"Owner"="Joe Thompson"}'
Replace AdditionalParameters = @{} with AdditionalParameters = @{ tags=${{ env.tags }} }
There are 2 instances in this file to replace.
Add
@description('Optional. Some environments require tagging.')
param tags object = {}
Update
// General resources
// =================
resource resourceGroup 'Microsoft.Resources/resourceGroups@2021-04-01' = {
name: resourceGroupName
location: location
tags: tags //<=== add tag parameter
}
The text was updated successfully, but these errors were encountered: