protected override void ProcessRecord()
        {
            var tags = new Hashtable();

            tags.Add(key: "Group", value: "Computer");

            PSSavedSearchParameters parameters = new PSSavedSearchParameters(
                resourceGroupName: ResourceGroupName,
                workspaceName: WorkspaceName,
                savedSearchId: SavedSearchId,
                category: Category,
                displayName: DisplayName,
                query: Query,
                version: Version,
                functionAlias: null,
                functionParameter: null,
                eTag: string.Empty,
                tags: tags
                );

            if (ShouldProcess(DisplayName, $"Create computer group: {DisplayName}, in workspace: {WorkspaceName}, resource group: {ResourceGroupName}"))
            {
                WriteObject(OperationalInsightsClient.CreateSavedSearch(parameters, ConfirmAction, force: Force));
            }
        }
        protected override void ProcessRecord()
        {
            PSSavedSearchParameters parameters = new PSSavedSearchParameters(
                resourceGroupName: ResourceGroupName,
                workspaceName: WorkspaceName,
                savedSearchId: SavedSearchId,
                category: Category,
                displayName: DisplayName,
                query: Query,
                version: Version,
                functionAlias: FunctionAlias,
                functionParameter: FunctionParameter,
                eTag: string.Empty,
                tags: Tag);

            if (ShouldProcess(DisplayName, $"Create new saved search: {DisplayName}, in workspace: {WorkspaceName}, resource group: {ResourceGroupName}"))
            {
                WriteObject(OperationalInsightsClient.CreateSavedSearch(parameters, ConfirmAction, force: Force));
            }
        }