AKS: expose generic update
Do it when one of the following conditions are met:
a. ACS has properties we can tweak
b. The 'Generic update' command can be customized, say to hide --remove, --add.
//cc: @tjprescott
Every resource should support the generic update. And every generic update should have --remove and --add (at least if the resource have one or more collection type properties).
In the case of ACS, I believe the argument is that it in fact doesn't have collection properties and thus the motivation to suppress add and remove. We tried accomplishing this through aliasing and it didn't work, so after discussion we merged the PR without the generic update. There's a possibility that when #1059 is merged that we can accomplish this with just aliasing. If not it will be a little more work to make generic update support this scenario.
@tjprescott I'm not entirely clear on the generic update mechanism that was discussed here. I do know we don't plan to implement changes other than bug fixes and maintenance to ACS itself, so this can probably be closed or retargeted to AKS.
Updated to target AKS, which apparently doesn't have an update method at all.
@yugangw-msft the Python SDK for AKS has create_or_update and update_tags methods, but I don't foresee other significant changes. I assume that's not equivalent to a "generic update" method.
Is there more we could do here or should this be closed?
This shouldn't be closed. The generic update would make use of your create_or_update method to work. Please see:
https://github.com/Azure/azure-cli/blob/dev/doc/authoring_command_modules/authoring_commands.md#generic-update-commands
As this is an enhancement, we will look at sizing and possible improvements along with other CLI issues.
I've created a PR for updating ARM tags in our preview extension:
https://github.com/Azure/azure-cli-extensions/pull/851
Assuming that looks good, I will submit the same for the mainline CLI. It's not clear what else is required for this issue, so closing in favor of the tag-specific issue, pending more details.
The issue is very specifically referencing this: https://github.com/Azure/azure-cli/blob/dev/doc/authoring_command_modules/authoring_commands.md#generic-update-commands
How is the status of this issue ? Can we close it?
Closing as no update in >5 years. Please reopen if the issue is still relevant.