question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AzureRmWebDeployment File transform unexpected characters on multi-line comments

See original GitHub issue

Troubleshooting

Checkout how to troubleshoot failures and collect debug logs: https://docs.microsoft.com/en-us/vsts/build-release/actions/troubleshooting

Environment

VSTS with private Agent

Issue Description

While deploying an app with AzureRmDeployment with file transform activated, we are expiriencing and issue on the transformed web.config files. An un expected character --> is appearing after multi line comments in the original config file.

image

After the transformation and deployment, what we have in the actual site is the following.

image

It started happing as of thi commit proxy support (#5379) AzureRmDeployment task version 3.3.24

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
vincent1173commented, Nov 8, 2017

@AlexGuirao , we identified the root cause and resolved the issue. We planned for hot-fix which will take a day or two. In the meantime, you can unblock yourself by removing comments from config files.

0reactions
frankfuucommented, Nov 10, 2017

hi @vincentdass, this seems to be fixed in 3.3.25 of Azure App Service Deploy.

Thanks!

2017-11-10T01:05:31.6765238Z ##[section]Starting: Deploy App Service
2017-11-10T01:05:31.6921483Z ==============================================================================
2017-11-10T01:05:31.6921483Z Task         : Azure App Service Deploy
2017-11-10T01:05:31.6921483Z Description  : Update Azure WebApp Services On Windows, Web App On Linux with built-in images or docker containers, ASP.NET, .NET Core, PHP, Python or Node based Web applications, Function Apps, Mobile Apps, Api applications, Web Jobs using Web Deploy / Kudu REST APIs
2017-11-10T01:05:31.6921483Z Version      : 3.3.25
2017-11-10T01:05:31.6921483Z Author       : Microsoft Corporation
2017-11-10T01:05:31.6921483Z Help         : [More Information](https://aka.ms/azurermwebdeployreadme)
2017-11-10T01:05:31.6921483Z ==============================================================================
2017-11-10T01:05:38.5273382Z XML variable substitution applied successfully.
Read more comments on GitHub >

github_iconTop Results From Across the Web

File transforms and variable substitution - Azure Pipelines
This example transform configuration file does three things: It adds a new database connection string inside the ConnectionStrings element. It ...
Read more >
Multiline string in Azure Pipelines - yaml
I always use the YAML block chomping operator like this msbuildArgs: >- /p:DeployOnBuild=true /p:WebPublishMethod=Package ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found