I'm attempting to create an Azure Container app using the CLI (az containerapp create), but the command is not recognizing the arguments (--args) provided.
Reference for the command: https://learn.microsoft.com/en-us/cli/azure/containerapp?view=azure-cli-latest#az-containerapp-create
Error attempt 1:
az containerapp create \
::
::
--command "celery" \
--args "-A", "gagenerator.celery.celery", "worker", "--loglevel=INFO", "-P", "threads"
unrecognized arguments: -A, gagenerator.celery.celery, worker, --loglevel=INFO, -P, threads
Error attempt 2:
az containerapp create \
::
::
--command "celery" \
--args "-A" "gagenerator.celery.celery" "worker" "--loglevel=INFO" "-P" "threads"
unrecognized arguments: -A gagenerator.celery.celery worker --loglevel=INFO -P threads
I'm able to create the app using UI:

--argsparameter inaz containerapp createshould be passed as a single space-separated string or multiple arguments enclosed in square brackets ([]). So use:--args '["-A", "gagenerator.celery.celery", "worker", "--loglevel=INFO", "-P", "threads"]'