1

enter image description hereHope you can help me with a problem trying to execute a script block

Get-AzAksVersion -Location CanadaCentral | Where-Object -Property OrchestratorVersion -gt 1.22.11, IsPreview -ne $true

trying to get the versions greater than the current version and excluding the preview version, getting error as Parameter set cannot be resolved. Thanks in advance.

1
  • 1
    Does this command help Get-AzAksVersion -Location CanadaCentral | where-Object {($_.OrchestratorVersion -gt '1.22.15') -and ($_.IsPreview -ne 'True')}. Check this Commented Nov 16, 2022 at 14:30

1 Answer 1

1

I tried to reproduce the same in my environment and got the same error as below:

Get-AzAksVersion -Location CanadaCentral | Where-Object -Property OrchestratorVersion -gt 1.22.11, IsPreview -ne $true

enter image description here

To resolve the error, try the below command:

Get-AzAksVersion -Location CanadaCentral | where-Object {($_.OrchestratorVersion -gt '1.22.15') -and ($_.IsPreview -ne 'True')}

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

When i was trying from azure runbook using Get-AzAksVersion -Location canadacentral | where-Object {($_.OrchestratorVersion -gt '1.23.12') -and ($_.IsPreview -ne 'True')} output is 1.23.8, 1.24.3, 1.24.6 -it shouldn't give the 1.23.8
Can you include the snip of what you are trying?
added the screenshot which im trying in my environment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.