Skip to content
This repository was archived by the owner on Jul 14, 2026. It is now read-only.

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ARMTemplateComplexity

This repo is for the tool to measure ARM Template complexity It should be used as a guide and is a work in progess

To install it run

Install-Module ARMTemplateComplexity

Then to use it run

Measure-ARMTemplate -TemplatePath C:\tmp\Azuredeploy.json
Measure-ARMRepo -RepoPath C:\Code\Mine\Github\kilasuit\Public\azure-quickstart-templates\ -NumberOfTemplatesToTest 10 -TemplateTestType All -TemplateTestingPreference Serial 

or if you are feeling lazy

marmr -RepoPath C:\Code\Mine\Github\kilasuit\Public\azure-quickstart-templates\ -no 50 -ttt All -ttp Serial 

This module provides object output that comprises of the json file being analysed, as either a type of JsonFile.ARMTemplate or JsonFile.OtherJsonFile and each of these types contains the file that has been analysed so that it can be further dug into if needed.

The JsonFile.ARMTemplate has the following output properties

ARMFunctions
ARMTemplateComplexityScore
CharsInTemplate
Content
ContentVersion
FuncsUsed
Functions
LinesOfTemplate
Outputs
Parameters
Resources
TemplateDirectory
TemplateName
TemplatePath
Variables
WordsInTemplate

About

Measure the complexity of an ARM Template purely to see whether you need to split it for managability in future

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages