Azure Devops deployment is failing for webapps

Panduranga Marriboyina 20 Reputation points

ADO web app deployment is failing with SyntaxError: Unexpected token ...

User's image

for existing piplies we are getting this issue. to resolve this we just followed below temparory work aroud.

  1. In Azure App service “AzureWebappName “  go to the Configuration\Application settings.
  2. Change the existing “XDT_MicrosoftApplicationInsights_NodeJS”  value 1 to 0 and save the changes.
  3. Redeploy the failed release pipeline from the ADO, once we redeplyed it will get successed .
  4. And again, change the modified “XDT_MicrosoftApplicationInsights_NodeJS” value 0 to 1 and save the changes.
  5. Redeploy the succussed release pipeline from the ADO.

User's image

Question : what would be the exact cause for this ADO CD failure and how to fix this issue?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,179 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 26,856 Reputation points Microsoft Employee

    Check your WEBSITE_NODE_VERSION in the app service. You can also run node --version from terminal prompt either from the portal or Kudu console. I'm thinking you're running a lower version which is causing your issue. I know of someone that was running into a similar issue and their version was 6.12.3. Setting their version to 18.12.1 resolved their issue.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful