arm-ttk | Azure Resource Manager Template Toolkit | Azure library
kandi X-RAY | arm-ttk Summary
kandi X-RAY | arm-ttk Summary
The code in this repository can be used for analyzing and testing Azure Resource Manager Templates. The tests will check a template or set of templates for coding best practices. There are some checks for simple syntactical errors but the intent is not to re-implement tests or checks that are provided by the platform (e.g. the /validate api).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of arm-ttk
arm-ttk Key Features
arm-ttk Examples and Code Snippets
Community Discussions
Trending Discussions on arm-ttk
QUESTION
I am experimenting with Azure Management Groups Arm template.
As you can see in this link, I have this Arm template:
...ANSWER
Answered 2022-Mar-04 at 05:48Location is not required in Management Group. As you can check this Azure Create Management Group REST API documentation, location is not needed here.
That's why in the template either you can remove the location or you can provide 'global' as the value, as the test command output specifies.
QUESTION
I am running ARM TTK as one of the tasks in my Azure DevOps Pipeline for validating ARM Templates before a PR is merged. One of the tests that i am using is : Location Should Not Be Hardcoded which is mentioned in the link : ARM-TTK-Tests by the name of "Location Uses Parameter"
My ARM Template name is not "azuredeploy.json" or "mainTemplate.json" . My ARM Template name is "winvm-arm.json". I have the location defined in parameters like shown below :
...ANSWER
Answered 2021-Oct-04 at 10:36Thank you Brian Moore. Posting your suggestion as an answer to help other community members.
this is because anything that is not the "main template" is assumed to be a nested template... main template is determined by the filename (unless you specify otherwise).
I think short term you'll have to follow the pattern - until we have a more standard way of determining name / nested.
You can refer to "Location Should Not Be Hardcoded" test catching errors in good templates
QUESTION
I am running Unit Tests using ARM-TTK in Azure Devops and i have some selective unit tests that i would like to run from a desired location. The two location where i have my .JSON files are : ARM_Templates/IaaS and ARM_Templates/PaaS. I have other folders also that are present inside ARM_Templates parent folder but i don't want to include them in the test. So one of my task in the YAML pipeline is provided below :
...ANSWER
Answered 2021-Aug-30 at 08:24In 'Get-ChildItem' you can pass multiple paths as follow Get-ChildItem –path c:\fso,c:\music
. Please check aslo this answer. So in your case it would be
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install arm-ttk
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page