You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidTemplate
{
"error": {
"code": "InvalidTemplate",
"message": "Deployment template language expression evaluation failed: 'The language expression 'if(not(equals(parameters('numberOfWorkers'), −1)), parameters('numberOfWorkers'), null())' is not valid: the string character '−' at position '45' is not expected.'. Please see https://aka.ms/arm-functions for usage details.",
"additionalInfo": [
{
"type": "TemplateViolation",
"info": {
"lineNumber": 0,
"linePosition": 0,
"path": ""
}
}
]
}
}
run azd version and copy paste here.
azd version 1.11.0 (commit 5b92e0687e1fa96dfc8292f4b900c0c58610b6a5)
Versions
Mention any other details that might be useful
Suspected cause: The template contains a special character "−" (Unicode minus sign, U+2212) instead of a regular hyphen "-" (ASCII code 45). This often happens if the code was copied from a document or a PDF where the characters are automatically replaced.
Tried solution: Replacing the Unicode Minus Sign with a Regular Hyphen:
Change the character − (Unicode minus sign) to - (ASCII hyphen).
I changed that and tried to update also some others but the error persisted.
Thanks! We'll be in touch soon.
The text was updated successfully, but these errors were encountered:
This issue is for a: (mark with an
x
)Minimal steps to reproduce
Any log messages given by the failure
RESPONSE 400: 400 Bad Request
ERROR CODE: InvalidTemplate
{
"error": {
"code": "InvalidTemplate",
"message": "Deployment template language expression evaluation failed: 'The language expression 'if(not(equals(parameters('numberOfWorkers'), −1)), parameters('numberOfWorkers'), null())' is not valid: the string character '−' at position '45' is not expected.'. Please see https://aka.ms/arm-functions for usage details.",
"additionalInfo": [
{
"type": "TemplateViolation",
"info": {
"lineNumber": 0,
"linePosition": 0,
"path": ""
}
}
]
}
}
Expected/desired behavior
OS and Version?
ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79
azd version?
Versions
Mention any other details that might be useful
Suspected cause: The template contains a special character "−" (Unicode minus sign, U+2212) instead of a regular hyphen "-" (ASCII code 45). This often happens if the code was copied from a document or a PDF where the characters are automatically replaced.
Tried solution: Replacing the Unicode Minus Sign with a Regular Hyphen:
Change the character − (Unicode minus sign) to - (ASCII hyphen).
I changed that and tried to update also some others but the error persisted.
The text was updated successfully, but these errors were encountered: