diff --git a/internal/services/network/network_watcher_flow_log_resource.go b/internal/services/network/network_watcher_flow_log_resource.go index b1af4492b3bc..d6d1fb5512ce 100644 --- a/internal/services/network/network_watcher_flow_log_resource.go +++ b/internal/services/network/network_watcher_flow_log_resource.go @@ -64,7 +64,7 @@ func resourceNetworkWatcherFlowLog() *pluginsdk.Resource { "resource_group_name": commonschema.ResourceGroupName(), - //lintignore: S013 + // lintignore: S013 "name": { Type: pluginsdk.TypeString, Required: true, @@ -330,6 +330,10 @@ func resourceNetworkWatcherFlowLogUpdate(d *pluginsdk.ResourceData, meta interfa } } + if d.HasChange("tags") { + payload.Tags = tags.Expand(d.Get("tags").(map[string]interface{})) + } + if err := client.CreateOrUpdateThenPoll(ctx, *id, *payload); err != nil { return fmt.Errorf("updating %s: %+v", id, err) }