More detail on TTK error " output location does not exist in template.parameters?"

Michael Wilcox 26 Reputation points
2022-09-27T17:15:52.327+00:00

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

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
113 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,262 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Wilcox 26 Reputation points
    2022-09-29T00:26:39.36+00:00

    Once I found this doc https://learn.microsoft.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.