{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/16573","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/16573/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/16573/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/16573/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/16573","id":368627753,"node_id":"MDU6SXNzdWUzNjg2Mjc3NTM=","number":16573,"title":"Sync PowerShell Workflow runbook with foreach -parallel function give error","user":{"login":"erikverwer","id":24406274,"node_id":"MDQ6VXNlcjI0NDA2Mjc0","avatar_url":"https://avatars1.githubusercontent.com/u/24406274?v=4","gravatar_id":"","url":"https://api.github.com/users/erikverwer","html_url":"https://github.com/erikverwer","followers_url":"https://api.github.com/users/erikverwer/followers","following_url":"https://api.github.com/users/erikverwer/following{/other_user}","gists_url":"https://api.github.com/users/erikverwer/gists{/gist_id}","starred_url":"https://api.github.com/users/erikverwer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikverwer/subscriptions","organizations_url":"https://api.github.com/users/erikverwer/orgs","repos_url":"https://api.github.com/users/erikverwer/repos","events_url":"https://api.github.com/users/erikverwer/events{/privacy}","received_events_url":"https://api.github.com/users/erikverwer/received_events","type":"User","site_admin":false},"labels":[{"id":646542834,"node_id":"MDU6TGFiZWw2NDY1NDI4MzQ=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/automation/svc","name":"automation/svc","color":"009000","default":false},{"id":836703193,"node_id":"MDU6TGFiZWw4MzY3MDMxOTM=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/cxp","name":"cxp","color":"bf1394","default":false},{"id":880598256,"node_id":"MDU6TGFiZWw4ODA1OTgyNTY=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/product-issue","name":"product-issue","color":"2fe09f","default":false},{"id":836702742,"node_id":"MDU6TGFiZWw4MzY3MDI3NDI=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/triaged","name":"triaged","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"femsulu","id":34327711,"node_id":"MDQ6VXNlcjM0MzI3NzEx","avatar_url":"https://avatars1.githubusercontent.com/u/34327711?v=4","gravatar_id":"","url":"https://api.github.com/users/femsulu","html_url":"https://github.com/femsulu","followers_url":"https://api.github.com/users/femsulu/followers","following_url":"https://api.github.com/users/femsulu/following{/other_user}","gists_url":"https://api.github.com/users/femsulu/gists{/gist_id}","starred_url":"https://api.github.com/users/femsulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femsulu/subscriptions","organizations_url":"https://api.github.com/users/femsulu/orgs","repos_url":"https://api.github.com/users/femsulu/repos","events_url":"https://api.github.com/users/femsulu/events{/privacy}","received_events_url":"https://api.github.com/users/femsulu/received_events","type":"User","site_admin":false},"assignees":[{"login":"femsulu","id":34327711,"node_id":"MDQ6VXNlcjM0MzI3NzEx","avatar_url":"https://avatars1.githubusercontent.com/u/34327711?v=4","gravatar_id":"","url":"https://api.github.com/users/femsulu","html_url":"https://github.com/femsulu","followers_url":"https://api.github.com/users/femsulu/followers","following_url":"https://api.github.com/users/femsulu/following{/other_user}","gists_url":"https://api.github.com/users/femsulu/gists{/gist_id}","starred_url":"https://api.github.com/users/femsulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/femsulu/subscriptions","organizations_url":"https://api.github.com/users/femsulu/orgs","repos_url":"https://api.github.com/users/femsulu/repos","events_url":"https://api.github.com/users/femsulu/events{/privacy}","received_events_url":"https://api.github.com/users/femsulu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-10-10T11:51:01Z","updated_at":"2018-10-16T17:39:54Z","closed_at":null,"author_association":"NONE","body":"Failed to sync. \nFile parsing error:\n - Assert-AutoShutdownSchedule.ps1\n\n---\n#### Document Details\n\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\n\n* ID: 83c90e64-b615-711f-a53d-fc76606e2ecd\n* Version Independent ID: 2d164036-6886-4440-50f7-369f99f41cea\n* Content: [Source Control integration in Azure Automation](https://docs.microsoft.com/en-us/azure/automation/source-control-integration)\n* Content Source: [articles/automation/source-control-integration.md](https://github.com/Microsoft/azure-docs/blob/master/articles/automation/source-control-integration.md)\n* Service: **automation**\n* GitHub Login: @georgewallace\n* Microsoft Alias: **gwallace**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/430329554","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/16573#issuecomment-430329554","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/16573","id":430329554,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMDMyOTU1NA==","user":{"login":"georgewallace","id":6796566,"node_id":"MDQ6VXNlcjY3OTY1NjY=","avatar_url":"https://avatars3.githubusercontent.com/u/6796566?v=4","gravatar_id":"","url":"https://api.github.com/users/georgewallace","html_url":"https://github.com/georgewallace","followers_url":"https://api.github.com/users/georgewallace/followers","following_url":"https://api.github.com/users/georgewallace/following{/other_user}","gists_url":"https://api.github.com/users/georgewallace/gists{/gist_id}","starred_url":"https://api.github.com/users/georgewallace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georgewallace/subscriptions","organizations_url":"https://api.github.com/users/georgewallace/orgs","repos_url":"https://api.github.com/users/georgewallace/repos","events_url":"https://api.github.com/users/georgewallace/events{/privacy}","received_events_url":"https://api.github.com/users/georgewallace/received_events","type":"User","site_admin":false},"created_at":"2018-10-16T17:39:54Z","updated_at":"2018-10-16T17:39:54Z","author_association":"CONTRIBUTOR","body":"@erikverwer I tried with VSTS Git source control type as well and it was successful, now I just put the small workflow logic you have above in my workflow and it worked. If you just put the following code in your source control repo and try to sync does it still fail?\r\n\r\n```powershell\r\nworkflow Test-Workflow {\r\n$Array = @(\"Value1\", \"Value2\")\r\nForeach -parallel ($Item in $Array) {\r\n    $Item\r\n}\r\n}\r\n```\r\n\r\n![image](https://user-images.githubusercontent.com/6796566/47035793-b67b4480-d12f-11e8-8461-3708b717099f.png)\r\n"}}
{"actor":{"display_login":"georgewallace"}}