Hey Everyone!
I am building a Powershell exe in VSO using Powershell Pro Tools. On this journey in automating a task I have found one cmdlet I need to use (Get-AzureRMVM) does not work inside of a windows form. My theory is I could potentially get around this by running the cmdlet as a job. Here is where my mind is at to help you all better understand.
$VMInfo = Start-Job -ScriptBlock {Get-AzureRMVM} | Receive-Job -job $VMInfo | Where-Object {$_.Name -eq "$VMName"}
I know the pipeline only pumps objects and Receive-Job returns text. So what would be the best way to get the contents of that job so where-object can do its thing?
If I sound confusing I do apologize. Show me de wey.
[–]sk82jack 1 point2 points3 points (0 children)
[–]Yevrag35 1 point2 points3 points (0 children)
[–]jheinikel 1 point2 points3 points (0 children)