【问题标题】:Get-AzurePublishSettingFile : The term 'Get-AzurePublishSettingFile' is not recognizedGet-AzurePublishSettingFile:无法识别术语“Get-AzurePublishSettingFile”
【发布时间】:2021-07-02 16:35:57
【问题描述】:

我已尝试通过使用 AllowClobber 的命令安装 Azure 和 AZ cmdlet,并且安装成功。我以管理员身份运行 PowerShell,并通过登录连接了我的 Azure 帐户。但是,在运行命令“Get-AzurePublishSettingFile”时出现以下错误:

Get-AzurePublishSettingFile : The term 'Get-AzurePublishSettingFile' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was

包含,验证路径是否正确,然后重试。 在 line:1 char:1

  • 获取 AzurePublishSettingFile
  •   + CategoryInfo          : ObjectNotFound: (Get-AzurePublishSettingFile:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

【问题讨论】:

    标签: azure powershell azure-powershell cmdlet azureshell


    【解决方案1】:

    确保您已安装 ASM PowerShell 模块 Azure,我注意到您在命令中遗漏了一个 s,它应该是 Get-AzurePublishSettingsFile,而不是 Get-AzurePublishSettingFile

    参考 - https://docs.microsoft.com/en-us/powershell/module/servicemanagement/azure.service/get-azurepublishsettingsfile?view=azuresmps-4.0.0

    【讨论】:

    • 您好。感谢您的回答。我应该早点将此标记为已解决哈哈,因为我意识到我像个白痴一样忘记了“s”。我花了很长时间浏览网络哈哈。总之非常感谢。这里的这个问题有望成为任何没有意识到应该“设置”而不是“设置”的人的一个很好的参考
    猜你喜欢
    • 1970-01-01
    • 2020-03-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-07
    • 2020-02-14
    • 2020-03-03
    相关资源
    最近更新 更多