Skip to content

az containerapp CLI misinterprets container arguments with leading dashes (--args "--config=..." fails)Β #9124

@jewelmas

Description

@jewelmas

Describe the bug

When attempting to pass runtime arguments to a container using the az containerapp CLI, arguments that begin with double dashes (e.g., --config=...) are incorrectly parsed as CLI flags rather than container arguments.

Related command

az containerapp update
--name my-containerapp
--resource-group my-resourcegroup
--args "--config=/etc/otel/config.yaml"

Errors

Image

Issue script & Debug output

Image

Expected behavior

The container should receive --config=/etc/otel-contrib/config.yaml as a runtime argument.

Environment Summary

Image

Additional context

Please note when run via terraform the above works, only via cli it fails
No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botContainerAppService 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.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions