Azure / Azure/arm-ttk

arm-ttk does not recognize steps('basics').elementName as synonymous with basics('elementName')

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

Description

**arm-ttk version:** 0.24
**Scenario:** A TextBox control named TextBox1 is placed in "basics". It is referenced in the "outputs" using this expression:
`[steps('basics').TextBox1]`

**Problem:** Upon running arm-ttk against the CUID, the following error is returned:
```
arm-ttk: Failed: Controls In Outputs Must Exist
- Error: Could not find step 'basics' in .parameters.steps
```

**NOTE:** `steps('basics').elememtName` being the same as `basics('elementName')` is valid and runs fine in the CUID sandbox.

**Sample CUID:**

```
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"basics": [
{
"constraints": {
"regex": "^[a-z0-9A-Z]{1,30}$",
"validationMessage": "Only alphanumeric characters are allowed, and the value must be 1-30 characters long."
},
"label": "TextBox1",
"name": "TextBox1",
"toolTip": "TextBox1",
"type": "Microsoft.Common.TextBox"
}
],
"steps": [],
"outputs": {
"location": "[location()]",
"TextBox1": "[steps('basics').TextBox1]"
}
},
"metadata": {
"_generator": {
"name": "MaestroStudio",
"sku": "Solo",
"version": "0.9.0.0",
"template": {
"author": "StratusOn",
"id": "EA622966-CE0C-46E7-841B-73C2E6ED5DEB",
"description": "A blank Azure Marketplace Managed Application offer."
}
},
"_sync": {
"offer": {
"displayName": "My Offer"
},
"plan": {
"displayName": "Plan"
}
}
}
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the arm-ttk validation that emits “Controls In Outputs Must Exist” and reproduce it with the sample CUID from the issue. Compare handling of steps('basics').TextBox1 with basics('TextBox1'); done means the valid equivalent reference is accepted without the missing-step error.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.