I am naming a resource using a property of an object passed as an input parameter to an ARM template and it is causing the 'Parameter Types Should Be Consistent' test to fail.
Parameter Types Should Be Consistent
[-] Parameter Types Should Be Consistent (65 ms)
Type Mismatch: Parameter 'intext' in nested template 'moduleTwo' is defined as string, but the pa
rent template defines it as object). Line: 81, Column: 14
Parameter Types Should Be Consistent
[-] Parameter Types Should Be Consistent (65 ms)
Type Mismatch: Parameter 'intext' in nested template 'moduleTwo' is defined as string, but the pa
rent template defines it as object). Line: 81, Column: 14
Setting the name as a string will fix this. But, in my case I am actually setting a resourceGroup name based on an json input.
I am naming a resource using a property of an object passed as an input parameter to an ARM template and it is causing the 'Parameter Types Should Be Consistent' test to fail.
mainTemplate.bicep
mymodule.bicep
This is the output from arm-ttk:
Setting the name as a string will fix this. But, in my case I am actually setting a resourceGroup name based on an json input.