Error Azure.Resource.UseTags Rule #1977
-
Hi guys.. It is clear what the error says but my bicep code uses the tags like this: main .bicep file param location string = resourceGroup().location module storageAccountModule 'modules/storage-account.bicep' = { If I use the resourceGroup() function for location works fine but for tags it doesnt work Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@fabianldsk84 By default, no tags are set for a resource group (same as Azure). When testing configurations that rely on the resource group tags consider setting the AZURE_RESOURCE_GROUP configuration. For example: configuration:
AZURE_RESOURCE_GROUP:
tags:
env: test
app: test Any reference to I hope that helps. |
Beta Was this translation helpful? Give feedback.
@fabianldsk84 By default, no tags are set for a resource group (same as Azure). When testing configurations that rely on the resource group tags consider setting the AZURE_RESOURCE_GROUP configuration.
For example:
Any reference to
resourceGroups().tags
will then use these tags during unit testing.I hope that helps.