Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modification to prevent jobs from crashing while passing parameters #59

Merged
merged 1 commit into from
May 12, 2022
Merged

Modification to prevent jobs from crashing while passing parameters #59

merged 1 commit into from
May 12, 2022

Conversation

EdneiMonteiro
Copy link
Contributor

@EdneiMonteiro EdneiMonteiro commented May 7, 2022

Some resources have properties that prevent the Start-Job function from running. This issue occurs because of failures in the PowerShell marshalling process when the objects are complex. After a few hours of troubleshooting I identified the problem at two points in the script. I got around the problem by serializing and deserializing the object explicitly.

One of the side effects of this problem is incomplete resource loading.

@ClaudioMerola ClaudioMerola merged commit 608838a into microsoft:main May 12, 2022
@EdneiMonteiro EdneiMonteiro deleted the marshalling-fix branch May 15, 2022 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants