Instead of checking if the deployment file already contains a content section, it tryes to add this to all and any deployment files, which then causes the az iot edge deployment create to fail, as the structure of the deployment file is no longer correct.
New issue checklist
Task name
AzureIoTEdge
Task version
2.*
Issue Description
The Deploy to IoT Edge action does not support partial deployments.
Partial deployments must have
content
already inside - see this iotedgedev issueInstead of checking if the deployment file already contains a
content
section, it tryes to add this to all and any deployment files, which then causes theaz iot edge deployment create
to fail, as the structure of the deployment file is no longer correct.Link to relevant portion of the code
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows, ubuntu
Relevant log output
Full task logs with system.debug enabled
Repro steps
No response