【问题标题】:Requested value 'VS2015' was not found. - Azure powershell未找到请求的值“VS2015”。 - Azure PowerShell
【发布时间】:2016-03-20 01:30:35
【问题描述】:

我正在尝试通过 azure powershell 获取我的插槽信息。

检索我使用的信息

Get-AzureWebsite -Name mywebsite -Slot staging

但是 azure powershell 会抛出以下错误:

Get-AzureWebsite : Requested value 'VS2015' was not found.
At line:1 char:1
+ Get-AzureWebsite -Name mywebsite -Slot staging
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : CloseError: (:) [Get-AzureWebsite], ArgumentException
    + FullyQualifiedErrorId : Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand

当我仅尝试使用 Get-AzureWebsite -Name mywebsite 时,它完美地显示数据,包括插槽名称

Name       : mywebsite
State      : Running
Host Names : {mywebsite.azurewebsites.net}

Name       : mywebsite(staging)
State      : Running
Host Names : {mywebsite-staging.azurewebsites.net}

Name       : mywebsite(dev)
State      : Running
Host Names : {mywebsite-dev.azurewebsites.net}

当我用谷歌搜索这个错误时“未找到请求的值'VS2015'。”我遇到了这个link,作者建议删除远程调试器但是没有运气,我仍然收到错误。

【问题讨论】:

    标签: powershell azure deployment visual-studio-2015 azure-deployment-slots


    【解决方案1】:

    我的解决方案是:

    1. 开启远程调试
    2. 选择VS2013
    3. 保存
    4. 再次关闭远程调试
    5. 保存

    我认为这是 Azure 中的某种错误。

    【讨论】:

    • 是的,看来这仍然是一个问题。今天它破坏了我的 VSTS 构建,这非常烦人。
    【解决方案2】:

    有一个Azure Powershell bug 与远程调试相关联,会出现错误消息:

    Get-AzureWebsite:未找到请求的值“VS2015”。

    解决方法如下:

    先决条件:导航到Azure Portal,选择您遇到问题的 Web 应用程序(或网站)。打开“应用程序设置”面板。

    1. 将“远程调试”设置为“开启”
    2. 将“远程 Visual Studio 版本”设置为“2013”​​
    3. 将“远程调试”设置为“关闭”
    4. 保存配置

    PS。这里有一个类似的答案,但不够精确。

    PS2。如果仍然存在相同的问题,请尝试恢复原始值(“VS2015”)并在第 3 步和第 4 步之间重复“保存配置”的步骤。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-03-18
      • 2011-02-08
      相关资源
      最近更新 更多