[ Resolved ] Azure DevOps - Template parameter JToken type is not valid. Expected Integer, Actual String - DevDummy

Latest

Views | Thoughts | Concepts | Techniques

Wednesday, July 22, 2020

[ Resolved ] Azure DevOps - Template parameter JToken type is not valid. Expected Integer, Actual String

Error Message

[error] Deployment template validation failed: 'Template parameter JToken type is not valid. Expected 'Integer'. Actual 'String'. Please see https://aka.ms/resource-manager-parameter-files for usage details.'.

Context



Causes of the issue


  • Pipeline variable value set in the release pipeline is a String, But the related arm-template is expecting an Integer
  • Pipeline variable place holder is set in the release step, but the variable key/ value entry is missing in the pipeline variable list for the specific stage

Resolution

Find the relevant pipeline key/ value entry,
  • add if it is missing
  • update the value to the correct data type
...

No comments:

Post a Comment