Azure / Azure/azure-quickstart-templates
Maybe test/template-validation-tests/test/mainTemplateTests.js should catch "Azure usage tracking resource missing"?
- Dominant language
- Bicep
- Stars
- 14.9k
- Forks
- 16.2k
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 6
Description
Given that the intended purpose of `test/template-validation-tests/test/mainTemplateTests.js` is to catch errors before going through the publishing process, perhaps we should consider allowing it to catch this class of error:
```
Error Message Azure usage tracking resource missing in one or more ARM
templates. To resolve, add a tracking GUID to the ARM template in
mainTemplate.json packages for the following plan:
20190829-arm-oraclelinux-wls-cluster. For more details, see
https://aka.ms/aboutinfluencedrevenuetracking.
```
Even if this check is not done by default, perhaps it could be enabled with a flag? That way we could update the documentation and I could mention the use of that flag in https://github.com/MicrosoftDocs/azure-docs/issues/37975 ?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with test/template-validation-tests/test/mainTemplateTests.js and review how it currently validates ARM templates, then compare that flow with the reported Azure usage tracking error. Done means the missing-resource error is caught as intended, with any flag behavior and documentation update clearly established.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- azure, javascript, json
- Domain
- cloud, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100