Feature To Append Tags To A Resource
Is your feature request related to a problem? Please describe. When utilizing begin_create_or_update() in compute_client.virtual_machines class, the tags for a vm are all overwritten with the new values.
Describe the solution you'd like I would like an option to append to the existing tags instead of overwriting the old tags with new ones.
Describe alternatives you've considered Currently our only option is to poll for existing tags then add them to our tag dictionary.
Thanks for the feedback, we’ll investigate asap.
@lmazuel, it seems this request has nothing to do with mgmt. SDK and this request may wants a patch behavior, any thoughts from your side?
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @avirishuv.
Issue Details
Is your feature request related to a problem? Please describe. When utilizing begin_create_or_update() in compute_client.virtual_machines class, the tags for a vm are all overwritten with the new values.
Describe the solution you'd like I would like an option to append to the existing tags instead of overwriting the old tags with new ones.
Describe alternatives you've considered Currently our only option is to poll for existing tags then add them to our tag dictionary.
| Author: | BuckarewBanzai |
|---|---|
| Assignees: | 00Kai0 |
| Labels: |
|
| Milestone: | - |
Looking into the issue.
I believe that the behavior for ARM tags is generic SDK behavior, and not something that is specific to each resource. @jaylabell, could you confirm this is the case with the compute SDK team. And if this behavior is owned by the general SDK team, then please remove the Service Attention label.
Hi @BuckarewBanzai, from a REST API perspective the functionality that you are looking to use is available in the following API: Tags - Update At Scope.
@xiangyan99, could you provide details on how to use the above REST API in the python SDK?
Yea this appears to be the functionality I was looking for. Any guidance on how to achieve this with the sdk would be great. Thanks everyone for continuing to follow up on this.
@00Kai0 Any ideas?
Adding @msyyc , could you take a look?
@RAY-316 Please help on the issue.
Hi @BuckarewBanzai. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.
Hi @BuckarewBanzai, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.