Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter Files get skipped if ParameterFilePath and ARMTemplatePath are same Directory #358

Open
p4th0g3n opened this issue Aug 21, 2020 · 0 comments

Comments

@p4th0g3n
Copy link

I am using ARM Template Checker to scan a directory that contains our ARM Templates and Parameter files. I found that 100% of our parameters files were getting skipped when running the following:

Get-AzSKARMTemplateSecurityStatus -ARMTemplatePath "X:\templates" -ParameterFilePath "C:\templates" -Recurse

Eventually found that we had to move template and parameters files into dedicated directories, and adjust the command as follows to get all templates and parameters files to be linked and not skipped (found that running multiple commands for each template/parameter pair works too, but not useful):

Get-AzSKARMTemplateSecurityStatus -ARMTemplatePath "X:\templates\deploy" -ParameterFilePath "X:\templates\params" -Recurse

This requirement does not appear to be documented at all, and the only reference I can find for naming convention or requirements for scanning template/parameter pairs is in the FAQ section. It took me (and one of my Microsoft contacts) a few hours before we figured this out, so it would be extremely helpful if some additional clarification on this could be added into the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant