MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.28k stars 21.47k forks source link

PowerShell version issue #75502

Closed rvahaver closed 3 years ago

rvahaver commented 3 years ago

When attempting to run the PowerShell using PowerShell 7 I am getting errors.

Import-Module FailoverClusters

Get-ClusterResource $IPResourceName | Set-ClusterParameter -Multiple @{"Address"="$ILBIP";"ProbePort"=$ProbePort;"SubnetMask"="255.255.255.255";"Network"="$ClusterNetworkName";"EnableDhcp"=0}

WARNING: Module FailoverClusters is loaded in Windows PowerShell using WinPSCompatSession remoting session; please note that all input and output of commands from this module will be deserialized objects. If you want to load this module into PowerShell please use 'Import-Module -SkipEditionCheck' syntax. Set-ClusterParameter: The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of the parameters that take pipeline input.

When I run this same script using PowerShell 5.1 it completes successfully.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

NavtejSaini-MSFT commented 3 years ago

@rvahaver This appears to be duplicate of the issue https://github.com/MicrosoftDocs/azure-docs/issues/75500 Please confirm.

rvahaver commented 3 years ago

Yes I don't know how this one got created