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

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -