azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Feature To Append Tags To A Resource

Open Sphyrna-029 opened this issue 5 years ago • 12 comments

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.

Sphyrna-029 avatar Feb 25 '21 19:02 Sphyrna-029

Thanks for the feedback, we’ll investigate asap.

xiangyan99 avatar Feb 25 '21 23:02 xiangyan99

@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?

jsntcy avatar Mar 01 '21 03:03 jsntcy

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:

Compute - VM, Mgmt, Service Attention, customer-reported, feature-request, question

Milestone: -

ghost avatar Mar 04 '21 17:03 ghost

Looking into the issue.

amjads1 avatar Mar 05 '21 16:03 amjads1

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.

Drewm3 avatar Mar 11 '21 08:03 Drewm3

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?

Drewm3 avatar Apr 01 '21 17:04 Drewm3

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.

Sphyrna-029 avatar Apr 08 '21 19:04 Sphyrna-029

@00Kai0 Any ideas?

xiangyan99 avatar Apr 08 '21 20:04 xiangyan99

Adding @msyyc , could you take a look?

xiangyan99 avatar Apr 13 '21 15:04 xiangyan99

@RAY-316 Please help on the issue.

msyyc avatar Apr 14 '21 02:04 msyyc

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.

ghost avatar Dec 15 '21 08:12 ghost

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.

ghost avatar Dec 29 '21 10:12 ghost