Azure / Azure/azure-cli-extensions
[Container App] 'az containerapp create --yaml' always shows warning about additional arguments.
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
### 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_
Contributor guide
Assessment
This issue has not been assessed yet.