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.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@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.
Most helpful comment
A workaround is to use a separate FileTransform task. This worked for me:
In my situation (Linux build agent deploying to Linux Azure App Service), the empty
xmlTransformationRulesis required in order to avoid a separate error,Cannot perform XML transformations on a non-Windows platform, discussed in #6563.