Skip to content

ACR task will append one extra line to the manifest #31130

@toddysm

Description

@toddysm

Describe the bug

The line version: v1.1.0 will be added as 1st line no matter what.

Steps to reproduce the behavior:

Prepare a task manifest
Attach it when creating ACR task
az acr task show -n webapptask -r $cR --query step.encodedTaskContent -o tsv | base64 --decode
Result:

Image

What it will cause is - if I somehow wrote the manifest in the wrong format (the example above is not invalid), I cannot get the correct line number due to this issue:

Image

Related command

az acr task show -n webapptask -r $cR --query step.encodedTaskContent -o tsv | base64 --decode

Errors

n/a

Issue script & Debug output

n/a

Expected behavior

The line version: v1.1.0 should not always be added.

Environment Summary

OS: [e.g. Ubuntu, Windows]: Cloud Shell
Azure CLI/PowerShell/SDK version: 2.70.0
Docker version: N/A
Datetime (UTC) when the issue occurred: 2025-03-19T08:50:19:87Z
Registry and image names: N/A

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botContainer Registryaz acrService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions