microsoft / microsoft/azure-container-apps

Impossible to pass multiple arguments to container app job

Open
#976 10 comments 8 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

CLI investigating
Dominant language
Bicep
Stars
445
Forks
54
Avg merge
5h 14m
Merged PRs (30d)
3

Description

This issue is bug report:
  • bug report -> please search issues before submitting
  • documentation issue or request
  • regression (a behavior that used to work and stopped in a new release)
Issue description

I it impossible to pass multiple arguments to the container. Neither in portal as the option does not exist nor in the cli (see error below).

The documentation explicitly states that this the expected format:

    --args                           : A list of container startup command argument(s). Space-
                                       separated values e.g. "-c" "mycommand". Empty string to clear
                                       existing values.
Steps to reproduce
  1. $ az containerapp job update -n jobname -g rgname --args "-m" "test_service"

Expected behavior [What you expected to happen.]

Multiple args are set

Actual behavior [What actually happened.]

$ az containerapp job update -n jobname -g rgname --args "-m" "test_service"
unrecognized arguments: -m test_service

Examples from AI knowledge base:
https://aka.ms/cli_ref
Read more about the command in reference docs

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

Cli:

$az --version
azure-cli                         2.53.1

core                              2.53.1
telemetry                          1.1.0

Extensions:
account                            0.2.2
azure-devops                      0.26.0
bastion                            0.2.1
containerapp                      0.3.33
ml                                 2.6.1
serviceconnector-passwordless               0.3.8
ssh                                1.1.1
storage-preview                    0.8.0

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location '/usr/local/Cellar/azure-cli/2.53.1/libexec/bin/python'
Extensions directory '/Users/user/.azure/cliextensions'

Python (Darwin) 3.10.13 (main, Nov  1 2023, 17:29:04) [Clang 14.0.3 (clang-1403.0.22.14.1)]

Legal docs and information: aka.ms/AzureCliLegal


Your CLI is up-to-date.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the az containerapp job update command entry point and inspect how the --args option parses multiple values. Reproduce the reported command with the documented space-separated arguments, then verify that multiple arguments are accepted and applied to the container app job without the unrecognized-arguments error.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.