Azure / arm-ttk

Azure Resource Manager Template Toolkit
https://aka.ms/arm-ttk
MIT License
431 stars 186 forks source link

Outputs Must Be Present In Template Parameters #736

Closed noapocalypse closed 1 year ago

noapocalypse commented 1 year ago

Outputs Must Be Present In Template Parameters 5ms WriteErrorException: output location does not exist in template.parameters at , /home/runner/work/X/X/arm-ttk/arm-ttk/testcases/CreateUIDefinition/Outputs-Must-Be-Present-In-Template-Parameters.test.ps1

Hi, i;'ve spent hours moving the location parameter all over the shop.

I've copied the location param examples from the MS test cases sites and made sure it's in the UIDef file and the azuredeploy file.

Yet i still get the above error.

No matter where the location parameter seems to be set this fails. And yet all the other tests for location parameter are able to run correctly. So if i hardcode a region as an example it picks it up from the params object and identifies the issue etc.

image I've tried changing the default value to various things to no avail. And adding an output for location into the azuredeploy.json.

image It even fails against the MS sentinel all in one location params.

Any help to get this working would be appreciated

noapocalypse commented 1 year ago

We have found a fix for this. Apologies, it was not an issue with the TTK rather it was an issue in how the https://github.com/microsoft/action-armttk was importing the TTK, we @fujiant have raised a pull request on the back of identifying the issue https://github.com/microsoft/action-armttk/issues/7