Page 2 of 2

Re: SCVVM Command freezing in Forms

Posted: Thu Sep 27, 2018 11:01 pm
by jvierra
Have you run this in a simple new form with only that code in a button?

Re: SCVVM Command freezing in Forms

Posted: Thu Oct 11, 2018 11:20 pm
by ITZBund_Ilmenau
Sorry for the delay.
I've just tried a simple Form instead of a Form Project and the result is the exactly same.

Re: SCVVM Command freezing in Forms

Posted: Fri Oct 12, 2018 10:35 am
by jvierra
Many modules cannot be run in a form. This includes many Azure modules. Modules that hang like this can be run as a job in the form and will usually work correctly.

Re: SCVVM Command freezing in Forms

Posted: Tue Oct 16, 2018 10:12 pm
by ITZBund_Ilmenau
I've tried implementing this now and it seems to work, even though badly.
The command finally does end after being called, which is great.
The problem is that I have to put a bunch of the code into the job and not just the Set-SCLogicalNetworkDefinition because everything i pass to it (with param or $using:) is deserialized. I can live with that, but not with the output using Receive-Job also being deserialized.
I got past the command and it already looks like another command has the same problem. I'll continue that after my vacation, so thanks for the hint with the jobs.