Skip to content

Error Azure.Resource.UseTags Rule #1977

Answered by BernieWhite
fabianldsk84 asked this question in Q&A
Discussion options

You must be logged in to vote

@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 resourceGroups().tags will then use these tags during unit testing.


I hope that helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@fabianldsk84
Comment options

Answer selected by fabianldsk84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants