Once I found this doc https://video2.skills-academy.com/en-us/azure/azure-resource-manager/templates/template-test-cases
I was able to map the ttk error output to more details in the docs.
More detail on TTK error " output location does not exist in template.parameters?"
Our goal is to get our Azure Application into the marketplace and are running thru the TTK (toolkit ) to validate our technical specification ie ARM template.
We are running into a problem.
When we run:
PS Test-AzTemplate -TemplatePath D:\Documents\ARMTest
the ARMTest file:
ARMTest
{
"$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
"handler": "Microsoft.Azure.CreateUIDef",
"version": "0.1.2-preview",
"parameters": {
"outputs": {
"location": {
"type": "string",
"defaultValue": "[resourceGroup().location]"
},
"location": "[location()]"
}
}
}
and receiving this error:
Outputs Must Be Present In Template Parameters
[-] Outputs Must Be Present In Template Parameters (4 ms)
output location does not exist in template.parameters
Can the team provide more information on how to resolve this error ? thank you
1 answer
Sort by: Most helpful
-
Michael Wilcox 26 Reputation points
2022-09-29T00:26:39.36+00:00