-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[Containerapp] az containerapp registry set: Throw ValidationError if --identity input value is invalid
#29738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
️✔️AzureCLI-FullTest
|
|
Hi @Greedygre, |
️✔️AzureCLI-BreakingChangeTest
|
|
Containerapp |
az containerapp registry set: validate --identity, throw ValidationError if input value is invalidaz containerapp registry set: Validate --identity, throw ValidationError if input value is invalid
az containerapp registry set: Validate --identity, throw ValidationError if input value is invalidaz containerapp registry set: Throw ValidationError if --identity input value is invalid
| _validate_subscription_registered(cmd, CONTAINER_APPS_RP) | ||
| if (username or password) and identity: | ||
| raise MutuallyExclusiveArgumentError("Use either identity or username/password.") | ||
| if identity and identity.lower() != "system" and not is_valid_resource_id(identity): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not validate in RP
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently the response from request is :
The following field(s) are either invalid or missing. Field 'configuration.Registries<acr>.azurecr.io.Identity' is invalid with details: 'Invalid value: "mic-acr-puller": Managed Identity does not exist';..
I think we can add validation in CLI.
|
Will fix in RP. |
Related command
az containerapp registry setDescription
Fix issue: microsoft/azure-container-apps#1233
Give a friendly error message when --identity input value is invalid
Testing Guide
History Notes
[Component Name 1] BREAKING CHANGE:
az command a: Make some customer-facing breaking change[Component Name 2]
az command b: Add some customer-facing featureThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.