{"action":"created","issue":{"url":"https://api.github.com/repos/PowerShell/SharePointDsc/issues/906","repository_url":"https://api.github.com/repos/PowerShell/SharePointDsc","labels_url":"https://api.github.com/repos/PowerShell/SharePointDsc/issues/906/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/SharePointDsc/issues/906/comments","events_url":"https://api.github.com/repos/PowerShell/SharePointDsc/issues/906/events","html_url":"https://github.com/PowerShell/SharePointDsc/issues/906","id":367842958,"node_id":"MDU6SXNzdWUzNjc4NDI5NTg=","number":906,"title":"SPSearchContentSource: fullSchedule missing StartHour","user":{"login":"paololec","id":21666251,"node_id":"MDQ6VXNlcjIxNjY2MjUx","avatar_url":"https://avatars3.githubusercontent.com/u/21666251?v=4","gravatar_id":"","url":"https://api.github.com/users/paololec","html_url":"https://github.com/paololec","followers_url":"https://api.github.com/users/paololec/followers","following_url":"https://api.github.com/users/paololec/following{/other_user}","gists_url":"https://api.github.com/users/paololec/gists{/gist_id}","starred_url":"https://api.github.com/users/paololec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paololec/subscriptions","organizations_url":"https://api.github.com/users/paololec/orgs","repos_url":"https://api.github.com/users/paololec/repos","events_url":"https://api.github.com/users/paololec/events{/privacy}","received_events_url":"https://api.github.com/users/paololec/received_events","type":"User","site_admin":false},"labels":[{"id":203091927,"node_id":"MDU6TGFiZWwyMDMwOTE5Mjc=","url":"https://api.github.com/repos/PowerShell/SharePointDsc/labels/bug","name":"bug","color":"ee0701","default":true},{"id":407795399,"node_id":"MDU6TGFiZWw0MDc3OTUzOTk=","url":"https://api.github.com/repos/PowerShell/SharePointDsc/labels/needs%20investigation","name":"needs investigation","color":"ffff99","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-08T15:27:54Z","updated_at":"2018-11-05T14:34:17Z","closed_at":null,"author_association":"NONE","body":"#### Details of the scenario you tried and the problem that is occurring\r\nI try:\r\n FullSchedule         = MSFT_SPSearchCrawlSchedule{\r\n                                        ScheduleType = \"Weekly\"\r\n                                        CrawlScheduleDaysOfWeek = @(\"Sunday\")\r\n                                        StartHour = \"1\"\r\n                                        StartMinute = \"0\"\r\n                                       }\r\n#### Verbose logs showing the problem\r\nStartHour not working with schedule Weekly. \r\n(other problem: It's seems also that a IncrementalSchedule is set by default).\r\n#### Suggested solution to the issue\r\nFix code\r\n#### The DSC configuration that is used to reproduce the issue (as detailed as possible)\r\n```powershell\r\n SPSearchContentSource LocalSharePointSites\r\n            {\r\n                Name                 = \"Local SharePoint Sites\"\r\n                ServiceAppName       = \"Search Service Application\"\r\n                ContentSourceType    = \"SharePoint\"\r\n                Addresses            = @(\"https://portal.sharepoint.com\")\r\n                ContinuousCrawl      = $true\r\n                FullSchedule         = MSFT_SPSearchCrawlSchedule{\r\n                                        ScheduleType = \"Weekly\"\r\n                                        CrawlScheduleDaysOfWeek = @(\"Sunday\")\r\n                                        StartHour = \"1\"\r\n                                        StartMinute = \"0\"\r\n                                       }\r\n                Priority             = \"Normal\"\r\n                Ensure               = \"Present\"\r\n                PsDscRunAsCredential = $Credssp_admin\r\n            }\r\n```\r\n#### Version of SharePoint that is used (e.g. SharePoint 2016)\r\nSharePoint 2016\r\n\r\n#### Version of the DSC module that was used ('dev' if using current dev branch)\r\ndsc 3.0"},"comment":{"url":"https://api.github.com/repos/PowerShell/SharePointDsc/issues/comments/435896422","html_url":"https://github.com/PowerShell/SharePointDsc/issues/906#issuecomment-435896422","issue_url":"https://api.github.com/repos/PowerShell/SharePointDsc/issues/906","id":435896422,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTg5NjQyMg==","user":{"login":"paololec","id":21666251,"node_id":"MDQ6VXNlcjIxNjY2MjUx","avatar_url":"https://avatars3.githubusercontent.com/u/21666251?v=4","gravatar_id":"","url":"https://api.github.com/users/paololec","html_url":"https://github.com/paololec","followers_url":"https://api.github.com/users/paololec/followers","following_url":"https://api.github.com/users/paololec/following{/other_user}","gists_url":"https://api.github.com/users/paololec/gists{/gist_id}","starred_url":"https://api.github.com/users/paololec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paololec/subscriptions","organizations_url":"https://api.github.com/users/paololec/orgs","repos_url":"https://api.github.com/users/paololec/repos","events_url":"https://api.github.com/users/paololec/events{/privacy}","received_events_url":"https://api.github.com/users/paololec/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T14:34:17Z","updated_at":"2018-11-05T14:34:17Z","author_association":"NONE","body":"Found other problem, if specify continuous crawl I can't set IncrementalSchedule, but in a normal installation it seems that a Incremental Schedule every 4 hours is neeed to execute (or different interval if you need it). So settings continuous create a misconfiguration because delete/remove the \"default\" incremental schedule.\r\n\r\nBug code/part to remove:\r\n` \r\nif ($ContinuousCrawl -eq $true -and `\r\n                $PSBoundParameters.ContainsKey(\"IncrementalSchedule\") -eq $true)\r\n            {\r\n                throw (\"You can not specify an incremental crawl schedule on a content source \" + `\r\n                       \"that will use continous crawl\")\r\n            }\r\n`"}}
{"actor":{"display_login":"paololec"}}