azure-cli-extensions icon indicating copy to clipboard operation
azure-cli-extensions copied to clipboard

[Container App] 'az containerapp create --yaml' always shows warning about additional arguments.

Open abij opened this issue 1 year ago • 2 comments

Describe the bug

The warning is always triggered:

https://github.com/Azure/azure-cli-extensions/blob/e71b50428904aee5c6affc4708c71619ecf8a61c/src/containerapp/azext_containerapp/containerapp_decorator.py#L809

Because the self.get_argument_revisions_mode() is specified as a default argument as "single" see: https://github.com/Azure/azure-cli-extensions/blob/e71b50428904aee5c6affc4708c71619ecf8a61c/src/containerapp/azext_containerapp/custom.py#L405

Related command

az containerapp create -g rg-container-app1 -n myapp --yaml myapp.yaml

Errors

Warning: Additional flags were passed along with --yaml. These flags will be ignored, and the configuration defined in the yaml will be used instead

Issue script & Debug output

no need

Expected behavior

Everything specified in yaml, should not raise a warning when creating/updating a containerapp with minimal cli arguments.

Environment Summary

azure-cli 2.57.0

Additional context

No response

abij avatar Feb 08 '24 09:02 abij

Thank you for opening this issue, we will look into it.

yonzhan avatar Feb 08 '24 09:02 yonzhan

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @calvinsID.