diff --git a/internal/services/bot/bot_service_resource_base.go b/internal/services/bot/bot_service_resource_base.go index e5bf53aca3c5..a37e5e6952bd 100644 --- a/internal/services/bot/bot_service_resource_base.go +++ b/internal/services/bot/bot_service_resource_base.go @@ -300,6 +300,10 @@ func (br botBaseResource) updateFunc() sdk.ResourceFunc { existing.Properties.IconURL = utils.String(metadata.ResourceData.Get("icon_url").(string)) } + if metadata.ResourceData.HasChange("tags") { + existing.Tags = tags.Expand(metadata.ResourceData.Get("tags").(map[string]interface{})) + } + if _, err := client.Update(ctx, id.ResourceGroup, id.Name, existing); err != nil { return fmt.Errorf("updating %s: %+v", *id, err) }