protected override void ProcessRecord()
{
SavedSearchProperties properties = new SavedSearchProperties()
{
Category = this.Category,
DisplayName = this.DisplayName,
Query = this.Query,
Version = this.Version
};
properties.Tags = SearchCommandHelper.PopulateAndValidateTagsForProperties(this.Tags, properties.Query);
WriteObject(OperationalInsightsClient.CreateOrUpdateSavedSearch(ResourceGroupName, WorkspaceName, SavedSearchId, properties, true, ConfirmAction), true);
}