Hi
I'm exporting ARM Template for an API Management instance (completely functional in source environment) and importing it to target. While deploying the template at target, the deployment validation fails and reports this:
Deployment template validation failed: 'The template resource 'abc-ps-sh-apim/imagesitadetectionfunc;rev=1/post-lprdetecthttptrigv2' at line '9204' and column '5' is not valid: The language expression '
{
"uid": 1234,
"created": "2019-10-10 17:30:26+05:30",
"frames": [
{
"uid": 123,
"type": "context",
"URL": "https://apidemos01.snbos.com/senapi/public/events/eventsFrames/379759"
},
{
"uid": 121,
"type": "plate",
"URL": "https://apidemos01.snbos.com/senapi/public/events/eventsFrames/379758"
}
],
"positions": [
{
"latitude": "23.456372",
"longitude": "143.103301597",
"method": "gps"
}
],
"confidence": 90,
"registrationNumbers": [
{
"ocr": "ABC128",
"rank": 1
},
{
"ocr": "ABC12B",
"rank": 2
}
],
"host": {
"uid": "sensen-car-01",
"description": "sensen-car-01 GeelongCouncil"
}
}
' is not valid: the string character '{' at position '3' is not expected.
I checked the code snippet at the specified location using VSCode and could not visibly make out anything. VSCode is not highlighting any issues at all (have ARM Toolkit extension installed). The fact that this is just a template that I'm directly exporting from functional source environment, indicates that ARM cannot be invalid.
Can someone please point me in the right direction - what to look for, any know issues etc.?
Thanks
Taranjeet Singh