Search found 31 matches

by dlaurora
Fri Sep 13, 2019 5:59 am
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 402

Re: Running responsive gui with wokflows

I was able to fix the error after replacing the entire jobtracker framework, and now it shows me information about all the VMS, really thanks a lot for your help, this was pretty helpfull! :)
by dlaurora
Fri Sep 13, 2019 4:41 am
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 402

Re: Running responsive gui with wokflows

With your correction adding the @(,$VMs) I receive the below error ERROR: You cannot call a method on a null-valued expression. WorkflowVMs.psf (171, 3): ERROR: At Line: 171 char: 3 ERROR: + [void]$JobTrackerList.Add($psObject) ERROR: + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ERROR: + CategoryInfo : In...
by dlaurora
Thu Sep 12, 2019 11:04 am
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 402

Re: Running responsive gui with wokflows

I really copy your code and replace it in my form, then test it, still getting info about the first vm of the txt, I'm thinking that the Jobtracker stops as soon the first job of the workflow ends, I've tested the workflow outside the form in PS ISE, and what i've notice is that after finishing the ...
by dlaurora
Thu Sep 12, 2019 3:49 am
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 402

Re: Running responsive gui with wokflows

Hello,

Thanks for your reply, I've tried that and it is the same, it only brings me the info of the first value of the .txt, it is like the foreach isn't working. Also, don't know why, perhaps it is a property that I've modified, but the textbox got unresponsive I can't even scroll down :P
by dlaurora
Wed Sep 11, 2019 1:00 pm
Forum: PowerShell GUIs
Topic: Running responsive gui with wokflows
Replies: 8
Views: 402

Running responsive gui with wokflows

Hello Guys, I have the below code, I'm trying to start multiple Azure Vms using workflow so I can use foreach with parallel property and start all at the same time, I tried to add it to a jobscript, but it only starts the first VM of the txt file, I have added the Params for the workflow, i've teste...
by dlaurora
Fri Sep 06, 2019 3:51 pm
Forum: PowerShell GUIs
Topic: Getting Data from DataGridView Column
Replies: 5
Views: 312

Re: Getting Data from DataGridView Column

Still getting null even if I use $datagridview.Cells['PowerState'].Value
by dlaurora
Fri Sep 06, 2019 12:12 pm
Forum: PowerShell GUIs
Topic: Getting Data from DataGridView Column
Replies: 5
Views: 312

Re: Getting Data from DataGridView Column

Tried that but the result is empty. Attached you will find what I need to get from the grid. Here is the code that I'm trying to get it to work. foreach ($state in $datagridview1.Rows.Cells['PowerState'].Value) { $vm = $datagridview1.Rows.Cells['Name'].Value $res = $datagridview1.Rows.Cells['Resourc...
by dlaurora
Fri Sep 06, 2019 11:19 am
Forum: PowerShell GUIs
Topic: Getting Data from DataGridView Column
Replies: 5
Views: 312

Getting Data from DataGridView Column

Hello,

I'm trying to get data from a DatagridView that I filled with VMs info, the columns are Name, ResourceGroup, and PowerState.
How can I read the entire column Powerstate?

Thanks, best regards.
by dlaurora
Thu May 09, 2019 5:15 am
Forum: PowerShell GUIs
Topic: $null result on responsive form
Replies: 10
Views: 886

Re: $null result on responsive form

Hello again, I have a new question regarding Arguments, i'm trying to pass credentials, in the main load form it asks for credentials and I save it into a variable, just a simple line $creds = get-credentials, then I try to add the same into the job passing through but during the process, it prompts...
by dlaurora
Thu May 09, 2019 4:56 am
Forum: PowerShell GUIs
Topic: Login Into Azure
Replies: 2
Views: 351

Re: Login Into Azure

Thanks, I'll investigate about Az Context, and see if can find a way to get this work.

Best regards.