VMware Cloud Community
JvodQl0D
Enthusiast
Enthusiast

Linux PowerShell 6.1.0-preview.1 + PowerCLI 10 + Get-Cluster = Index was out of range ???

I can't even start the basics in Linux:

PS> Connect-VIServer -Server vCenter -force

[...]

PS> Get-Cluster

out-lineoutput : Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

+ CategoryInfo          : NotSpecified: (:) [out-lineoutput], ArgumentOutOfRangeException

+ FullyQualifiedErrorId : System.ArgumentOutOfRangeException,Microsoft.PowerShell.Commands.OutLineOutputCommand

10.0.0.7893915 VMware.VimAutomation.Cis.Core

10.0.0.7893906 VMware.VimAutomation.Common

10.0.0.7893909 VMware.VimAutomation.Core

10.0.0.7893910 VMware.VimAutomation.Sdk

Reply
0 Kudos
6 Replies
LucD
Leadership
Leadership

Just wondering why you use the 6.0.1 Preview?

PowerShell Core 6.0.1 is available, and supported for Ubuntu and MacOS (as you can find back in the Compatibility Matrix).


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
JvodQl0D
Enthusiast
Enthusiast

Sir, not 6.0.1 but 6.1.0 -- that is what's current via install instructions

Name                           Value

----                           -----

PSVersion                      6.1.0-preview.1

PSEdition                      Core

GitCommitId                    v6.1.0-preview.1

OS                             Linux 4.14.0-0.bpo.3-amd64 #1 SMP Debian 4.14.13-1~bpo9+1 (2018-01-14)

Platform                       Unix

PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}

PSRemotingProtocolVersion      2.3

SerializationVersion           1.1.0.1

WSManStackVersion              3.0

Reply
0 Kudos
LucD
Leadership
Leadership

But that version is not supported with the current PowerCLI 10, see the matrix I pointed to in my previous reply.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos
JvodQl0D
Enthusiast
Enthusiast

okay, i'll try, but it's the repositories fault for defaulting to the preview.  just confirmed by purging and reinstalling.

deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main

$ aptitude versions powershell

Package powershell:                             

p   6.0.0-1.debian.9                                                       stretch                                            900

p   6.0.1-1.debian.9                                                       stretch                                            900

p   6.0.2-1.debian.9                                                       stretch                                            900

i   6.1.0~preview.1-1.debian.9                                             stretch                                            900

Reply
0 Kudos
JvodQl0D
Enthusiast
Enthusiast

6.0.2 works

Reply
0 Kudos
LucD
Leadership
Leadership

Great to hear, but watch out, I did hear some issues with 6.0.2 as well.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos