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

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

Open
raouche opened this issue Mar 2, 2024 · 0 comments

Comments

@raouche
Copy link
Contributor

raouche commented Mar 2, 2024

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"
      }
    }
  }
}
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