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

Possible breaking change Get-AzureVM breaks pipeline with Out-Gridview (#3047) #13

Closed
MaxTrinidad opened this issue Nov 25, 2014 · 24 comments

Comments

@MaxTrinidad
Copy link

commented Nov 25, 2014

(reposted from https://github.com/Azure/azure-sdk-tools/issues/3047 - 11/04/2014)

Get-AzureVM breaks pipeline with Out-Gridview. I have Trevor Sullivan confirmed this issue.

This is PowerShell Azure Cmdlets version 0.8.10.1 in PowerShell 4.0.

PS C:> $vm = Get-AzureVM | Out-Gridview -PassThru
Get-AzureVM : The pipeline has been stopped.
At line:1 char:7
•$vm = Get-AzureVM | Out-Gridview -PassThru
• ~~~~~~~~~~~ ◦CategoryInfo : CloseError: (:) [Get-AzureVM], PipelineStoppedException
◦FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.GetAzureVMCommand Out-Gridview : Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index At line:1 char:21

•$vm = Get-AzureVM | Out-Gridview -PassThru
• ~~~~~~~~~~~~~~~~~~~~~~ ◦CategoryInfo : NotSpecified: (:) [Out-GridView], ArgumentOutOfRangeException
◦FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutGridViewCommand

Thanks,
Maximo Trinidad
Microsoft MVP - PowerShell

@micdenny

This comment has been minimized.

Copy link

commented Nov 25, 2014

+1

@markcowl

This comment has been minimized.

Copy link
Member

commented Dec 2, 2014

@matt-gibbs Please ensure that Kay is added with permissions to update issues

@azuresdkci azuresdkci changed the title Possible breaking change Get-AzureVM breaks pipeline with Out-Gridview (#3047) Possible breaking change Get-AzureVM breaks pipeline with Out-Gridview (#3047) Dec 2, 2014

@doctordns

This comment has been minimized.

Copy link
Contributor

commented Jan 3, 2015

I just tried it, using 0.8.9 against December 2014 PowerShell v5 beta. And it works just fine!

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented Jan 4, 2015

Awesome!! Just to confirm that on the December release this issue was corrected.
Microsoft Azure PowerShell download version:
Version : 0.8.12
Title : Microsoft Azure PowerShell with Microsoft Azure SDK
Published : 12/11/2014 7:00:00 AM
Author : Microsoft Corporation

Thank You!

@MaxTrinidad MaxTrinidad closed this Jan 4, 2015

@ruano84

This comment has been minimized.

Copy link

commented Jan 8, 2015

Hi, i just tested

Get-AzureVM | Out-Gridview -PassThru

with 0.8.13 and gives me the same error:

Get-AzureVM : Se ha detenido la canalización.
En línea: 1 Carácter: 1

  • Get-AzureVM | Out-GridView -Title "Select a VM ." -PassThru
  • - CategoryInfo          : CloseError: (:) [Get-AzureVM], PipelineStoppedException
    - FullyQualifiedErrorId : >Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.GetAzureVMCommand
    

The "(Get-Module Azure).Version" output:

Major Minor Build Revision


0 8 13 -1

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented Jan 8, 2015

Interesting! Azure PowerShell version 0.8.13 has been release yet thru the Microsoft Azure download site which is still 0.8.12 December download. This issue was corrected in 0.8.12.

If you downloads the Azure PowerShell from Github then is possible this error will come back again.

Thx for the email.
Max

@KeithHill

This comment has been minimized.

Copy link

commented Feb 19, 2015

I just tested this as well....with 0.8.13 and I have the issues as well. Any updates on this?

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented Feb 19, 2015

It has been fixed on 0.8.14 (2/12/2015)
Version : 0.8.14
Title : Microsoft Azure PowerShell with Microsoft Azure SDK
Published : 2/12/2015 7:00:00 AM
Author : Microsoft Corporation

PS C:>
PS C:>
PS C:> $x = Get-AzureVM | Out-GridView -PassThru;
PS C:> $x.Name
MyTestSQLServer
:)

Max TrinidadMicrosoft MVP – PowerShell (7yrs)SAPIEN Technologies MVP 2015
Florida PowerShell User Group: http://www.flpsug.com/
Blog: http://www.maxtblog.com/Twitter: @MaxTrinidad
Member of: MTC, INETA and PASS.

Date: Thu, 19 Feb 2015 11:09:46 -0800
From: notifications@github.com
To: azure-powershell@noreply.github.com
CC: maxt@putittogether.net
Subject: Re: [azure-powershell] Possible breaking change Get-AzureVM breaks pipeline with Out-Gridview (#3047) (#13)

I just tested this as well....with 0.8.13 and I have the issues as well. Any updates on this?


Reply to this email directly or view it on GitHub.

@doctordns

This comment has been minimized.

Copy link
Contributor

commented Feb 20, 2015

Where do we download 0.8.14?

From: MaxTrinidad [mailto:notifications@github.com]
Sent: 19 February 2015 19:58
To: Azure/azure-powershell
Cc: Thomas Lee
Subject: Re: [azure-powershell] Possible breaking change Get-AzureVM breaks pipeline with Out-Gridview (#3047) (#13)

It has been fixed on 0.8.14 (2/12/2015)
Version : 0.8.14
Title : Microsoft Azure PowerShell with Microsoft Azure SDK
Published : 2/12/2015 7:00:00 AM
Author : Microsoft Corporation

PS C:>
PS C:>
PS C:> $x = Get-AzureVM | Out-GridView -PassThru;
PS C:> $x.Name
MyTestSQLServer
:)

Max TrinidadMicrosoft MVP – PowerShell (7yrs)SAPIEN Technologies MVP 2015
Florida PowerShell User Group: http://www.flpsug.com/
Blog: http://www.maxtblog.com/Twitter: @MaxTrinidad
Member of: MTC, INETA and PASS.

Date: Thu, 19 Feb 2015 11:09:46 -0800
From: notifications@github.commailto:notifications@github.com
To: azure-powershell@noreply.github.commailto:azure-powershell@noreply.github.com
CC: maxt@putittogether.netmailto:maxt@putittogether.net
Subject: Re: [azure-powershell] Possible breaking change Get-AzureVM breaks pipeline with Out-Gridview (#3047) (#13)

I just tested this as well....with 0.8.13 and I have the issues as well. Any updates on this?


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-75124263.


This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com



This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com


ogail pushed a commit that referenced this issue Feb 25, 2015
Merge pull request #13 from AsrOneSdk/sriramvu-dev
E2A Network Mapping & UnMapping tests
avijitgupta pushed a commit to avijitgupta/azure-powershell that referenced this issue Mar 2, 2015
ogail pushed a commit that referenced this issue Mar 13, 2015
Merge pull request #13 from Azure/dev
pull from dev branch of azure/azure-powershell
markcowl pushed a commit that referenced this issue Mar 23, 2015
@georgiosd

This comment has been minimized.

Copy link

commented May 21, 2015

Still appears in 0.9.1 :(

Workaround:

$vms = Get-AzureVM | select Name, ServiceName, Status

Then fetch single object using -ServiceName x -Name y

@devigned devigned reopened this May 21, 2015

@devigned

This comment has been minimized.

Copy link
Member

commented May 21, 2015

@markcowl looks like this is still an issue

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented May 22, 2015

Guys!!
I just installed Azure PowerShell version 0.9.1 (Published : 5/4/2015 8:00:00 AM) today. I the following command works:

PS C:\Users\mtrinidad>
PS C:\Users\mtrinidad> $vm = Get-AzureVM | Out-Gridview -PassThru
PS C:\Users\mtrinidad> $vm

ServiceName Name Status


MyMaxPITcloudSvc05 SuperNova01 StoppedDeallocated

Now, I did recently installed WMF5.0 on my Windows 7 SP1 desktop. So, if you still having some issues, it may be something with PowerShell version you're using,

Thanks for the heads up!
Max

@georgiosd

This comment has been minimized.

Copy link

commented May 22, 2015

Try adding -Title too
On Fri, 22 May 2015 at 16:17 MaxTrinidad notifications@github.com wrote:

Guys!!

I just installed Azure PowerShell version 0.9.1 (Published : 5/4/2015
8:00:00 AM) today. I the following command works:

PS C:\Users\mtrinidad>
PS C:\Users\mtrinidad> $vm = Get-AzureVM | Out-Gridview -PassThru
PS C:\Users\mtrinidad> $vm

ServiceName Name Status

MyMaxPITcloudSvc05 SuperNova01 StoppedDeallocated

Now, I did recently installed WMF5.0 on my Windows 7 SP1 desktop. So, if
you still having some issues, it may be something with PowerShell version
you're using,

Thanks for the heads up!
Max


Reply to this email directly or view it on GitHub
#13 (comment)
.

@MaxTrinidad MaxTrinidad reopened this May 22, 2015

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented May 22, 2015

Sorry! I press the wrong button. :P

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented May 22, 2015

I just test Out-Gridview with both -Passthru and -Title. It's working for me. (see image)
azuregridviewnoerror

@georgiosd

This comment has been minimized.

Copy link

commented May 22, 2015

Very weird. I upgraded and checked version was kosher. What do you
recommend? Reinstall?
On Fri, 22 May 2015 at 18:01 MaxTrinidad notifications@github.com wrote:

I just test Out-Gridview with both -Passthru and -Title. It's working for
me. (see image)
[image: azuregridviewnoerror]
https://cloud.githubusercontent.com/assets/7338470/7773336/df4eb62c-0071-11e5-88e9-c8f9538be3bb.jpg

Reply to this email directly or view it on GitHub
#13 (comment)
.

@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented May 22, 2015

Just to make sure.

  1. Which version of Windows you are on? 7/8.1/10. Which PowerShell version or WMF? 4.0 or 5.0 May Preview.
  2. Are you sure you're on Azure PowerShell 0.9.1 (May 2015 build)? Older version had the problem.
  3. And, is .NET Framework 4.0 (or >) installed?
  4. What's the system culture? is this a non-US Windows version.

Maybe we can get some direction.
:)

@georgiosd

This comment has been minimized.

Copy link

commented May 22, 2015

  1. Windows 8.1, Powershell 4! No WMF.
  2. This script tells me I'm on 0.9.1, I upgraded with Web PI last night.
  3. I got all the default .NETs + VS2013 + VS2015 RC
  4. Uhm, keyboard is en-US, culture is I believe en-GB
@MaxTrinidad

This comment has been minimized.

Copy link
Author

commented May 22, 2015

OK. It won't hurt but can you try loading the WMF 5.0 April Preview for Windows 8.1. Here's the link:http://www.microsoft.com/en-us/download/details.aspx?id=46889

Apologies! in the previous comment I mention WMF 5.0 May Preview, but I meant to say April Preview. :)

There's a chance that it ha to be something with PowerShell 4.0 then in Version 5.0 gets corrected.
Can you give it a try?
Max

@osakanataro

This comment has been minimized.

Copy link

commented Jun 1, 2015

Same problem occurred.
"$vm = Get-AzureVM | Out-Gridview -PassThru" could not work powershell 3.0 and 4.0.

PS C:\> (Get-Module azure).version

Major  Minor  Build  Revision
-----  -----  -----  --------
0      9      2      -1


PS C:\> $PSversiontable

Name                           Value
----                           -----
PSVersion                      3.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.34209
BuildVersion                   6.2.9200.16398
PSCompatibleVersions           {1.0, 2.0, 3.0}
PSRemotingProtocolVersion      2.2

PS C:\>
PS C:\> $vm = Get-AzureVM | Out-GridView -Title "Select a VM ..." -PassThru
Get-AzureVM : パイプラインが停止されています。
発生場所 行:1 文字:7
+ $vm = Get-AzureVM | Out-GridView -Title "Select a VM ..." -PassThru
+       ~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureVM]、PipelineStoppedException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.GetAzureVMCommand

Out-GridView : インデックスが範囲を超えています。負でない値で、コレクションのサイズよりも小さくなければなりません。
パラメーター名:index
発生場所 行:1 文字:21
+ $vm = Get-AzureVM | Out-GridView -Title "Select a VM ..." -PassThru
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Out-GridView], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutGridViewCommand

PS C:\>

I update to power shell 4.0.

PS C:\>  $PSversiontable

Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.34209
BuildVersion                   6.3.9600.16406
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2


PS C:\> (Get-Module azure).version

Major  Minor  Build  Revision
-----  -----  -----  --------
0      9      2      -1


PS C:\>
PS C:\> $vm = Get-AzureVM | Out-GridView -Title "Select a VM ..." -PassThru
Get-AzureVM : パイプラインが停止されています。発生場所 行:1 文字:7
+ $vm = Get-AzureVM | Out-GridView -Title "Select a VM ..." -PassThru
+       ~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureVM]、PipelineStoppedException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.ServiceManagement.IaaS.GetAzureVMCommand

Out-GridView : インデックスが範囲を超えています。負でない値で、コレクションのサイズよりも小さくなければなりません。
パラメーター名:index発生場所 行:1 文字:21
+ $vm = Get-AzureVM | Out-GridView -Title "Select a VM ..." -PassThru
+                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Out-GridView], ArgumentOutOfRangeException
    + FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutGridViewCommand

PS C:\> 
huangpf added a commit that referenced this issue Jun 4, 2015
ogail pushed a commit that referenced this issue Jul 7, 2015
stankovski pushed a commit that referenced this issue Jul 10, 2015
Merge pull request #13 from MabOneSdk/pikumar3
Added Filters ,help message and removed unnecessary fields in response.
@singhkays

This comment has been minimized.

Copy link
Member

commented Jul 17, 2015

Looks like this breaks only in PowerShell v3.0 or 4.0. @huangpf Can you investigate why that would be the case?

@huangpf

This comment has been minimized.

Copy link
Contributor

commented Jul 21, 2015

It's a bug in PS 3.0 and 4.0 in that it fails to load the object and/or type info, if TableControl is not correctly configured.

This will be patched on our end for 3.0/4.0 in the incoming release. Stay tuned. Thanks.

@singhkays

This comment has been minimized.

Copy link
Member

commented Aug 3, 2015

Thanks for the update @huangpf! Closing as fixed

@singhkays singhkays closed this Aug 3, 2015

@huangpf

This comment has been minimized.

Copy link
Contributor

commented Aug 3, 2015

@singhkay It's only fixed in the new release.

hovsepm pushed a commit that referenced this issue Jan 28, 2016
Merge pull request #13 from Bpoe/dev
Disabling passing Parameters value from pipeline per Bug 1731159
markcowl pushed a commit that referenced this issue Jan 24, 2017
Merge pull request #13 from Azure/dev
Sync from Azure/dev
bganapa pushed a commit to bganapa/azure-powershell that referenced this issue Mar 22, 2018
Merge pull request Azure#13 from deathly809/Azs.Subs
2203814 - [Disconnect-AzsPlanFromOffer] Cmdlet returns empty object a…
vladimir-shcherbakov pushed a commit that referenced this issue May 4, 2018
cormacpayne pushed a commit that referenced this issue Apr 16, 2019
Nfsaas 1707 add netapp (#13)
* NFSAAS-1707 update from review comments

* NFSAAS-1707 update from review comments

* NFSAAS-1707 updates from review comments
cormacpayne pushed a commit that referenced this issue Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
You can’t perform that action at this time.