Azure / Azure/arm-ttk

Group-Object InnerTemplateName is failing with error Index (zero based) must be greater than or equal to zero and less than the size of the argument list

Open
#759 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
468
Forks
208
PR merge metrics
No merged PRs in 30d

Description

Using arm-ttk version 0.24 downloaded from this repo I'm getting the following error with a complex ARM template generated from bicep files.

How to troubleshoot this ? the deployment is successful, just the validation is failing.

```

[+] Min And Max Value Are Numbers (74 ms)
NestedTemplate azhop [ Lines 141 - 335 ]
[?] Outputs Must Not Contain Secrets (92 ms)
Warning: Resulting JSON is truncated as serialization has exceeded the set depth of 2.

Parameter Types Should Be Consistent
[+] Parameter Types Should Be Consistent (506 ms)
Parameters Must Be Referenced
[+] Parameters Must Be Referenced (528 ms)
Group-Object: /__w/az-hop/az-hop/marketplace/solution/arm-ttk/arm-ttk/Test-AzTemplate.ps1:340
Line |
340 | Group-Object InnerTemplateName |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Password params must be secure
[+] Password params must be secure (95 ms)
Warning: Skipping parameter "secret_permissions"
Warning: Skipping parameter "secret_permissions"

| Index (zero based) must be greater than or equal to zero and less than
| the size of the argument list.

```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.