【问题标题】:Error-Parameter set cannot be resolved using the specified named parameters无法使用指定的命名参数解析错误参数集
【发布时间】:2022-11-16 23:44:21
【问题描述】:

希望你能帮我解决尝试执行脚本块的问题

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

尝试获取大于当前版本的版本并排除预览版本,由于无法解决参数集而出现错误。提前致谢。

【问题讨论】:

  • 这个命令对Get-AzAksVersion -Location CanadaCentral | where-Object {($_.OrchestratorVersion -gt '1.22.15') -and ($_.IsPreview -ne 'True')}有帮助吗?检查this
  • 谢谢@Rukmini-那行得通。

标签: azure-aks azure-powershell


【解决方案1】:

我试图在我的环境中重现相同的内容并得到如下相同的错误:

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

要解决该错误,请尝试以下命令:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-09-02
    • 2018-08-29
    • 1970-01-01
    • 2017-07-30
    • 1970-01-01
    • 2017-12-13
    • 1970-01-01
    • 2019-04-05
    相关资源
    最近更新 更多