Azure-devops-docs: File transformation appears to be a Windows-only feature.

Created on 26 Feb 2020  Â·  3Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

The code https://github.com/microsoft/azure-pipelines-tasks/tree/49c9f6a/Tasks/AzureRmWebAppDeploymentV4/deploymentProvider references file transformation only in the Windows provider implementation and not in the Linux one. Indeed, I was unable to get file transformation (specifically, JSONfiles) to work with AzureRmWebAppDeployment@4 against a Linux app service. No transformations, no error, and no transformation-related debug logging was observed.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 devops-cictech devopprod doc-bug stale-issue

Most helpful comment

A workaround is to use a separate FileTransform task. This worked for me:

- task: FileTransform@2
  inputs:
    folderPath: $(Pipeline.Workspace)/path-to/my-package.zip
    jsonTargetFiles: appsettings.json
    xmlTransformationRules: '' # disabled

In my situation (Linux build agent deploying to Linux Azure App Service), the empty xmlTransformationRules is required in order to avoid a separate error, Cannot perform XML transformations on a non-Windows platform, discussed in #6563.

All 3 comments

@sharpjs -- Jeff, thank you for your feedback. You may find answers here:

@RoopeshNair -- please look into this issue.

A workaround is to use a separate FileTransform task. This worked for me:

- task: FileTransform@2
  inputs:
    folderPath: $(Pipeline.Workspace)/path-to/my-package.zip
    jsonTargetFiles: appsettings.json
    xmlTransformationRules: '' # disabled

In my situation (Linux build agent deploying to Linux Azure App Service), the empty xmlTransformationRules is required in order to avoid a separate error, Cannot perform XML transformations on a non-Windows platform, discussed in #6563.

This issue hasn't been updated in more than 180 days, so we've closed it. If you feel the issue is still relevant and needs fixed, please reopen it and we'll take another look. We appreciate your feedback and apologize for any inconvenience.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atrauzzi picture atrauzzi  Â·  3Comments

cijujoseph picture cijujoseph  Â·  3Comments

sevaa picture sevaa  Â·  3Comments

letmaik picture letmaik  Â·  3Comments

michhar picture michhar  Â·  3Comments