Azure / autorest.csharp

Extension for AutoRest (https://github.com/Azure/autorest) that generates C# code
MIT License
141 stars 165 forks source link

XXXResource.SetTags should internally call CreateOrUpdate tag instead of Delete tag #3154

Open xboxeer opened 1 year ago

xboxeer commented 1 year ago

Describe the issue or request According to this issue https://github.com/Azure/azure-sdk-for-net/issues/33997 , deleting a tag while calling the SetTags might break some Azure Policy that customer enabled to prevent tag delete.

Describe your ideas for solutions We should use CreateOrUpdate internally for the SetTags method.

xboxeer commented 1 year ago

CC: @m-nash @ArcturusZhang @fengzhou-msft @ArthurMa1978