why is this azure apim policy expression failing? -
i've written simple policy expression azure apim includes code block expression. works:
@{ return "start" + new random().next().tostring(); }
however, not work:
@{ return "start" + new random().next().tostring() + "end" }
i tried several variations of second example unable apim policy manager accept it. apim policy error returns following error:
"error in element 'log-to-eventhub' on line 1, column 21: code block expression must enclosed in curly brackets."
however, expression above is in curly brackets. idea how can achieve i'm trying in second example above?
try rewriting (note semicolon @ end):
@{ return "start" + new random().next().tostring() + "end"; }
or (without "return"):
@{ "start" + new random().next().tostring() + "end" }
Comments
Post a Comment