未找到请求值'VS2015'. - Azure powershell

Man*_*jSS 6 deployment powershell azure visual-studio-2015 azure-deployment-slots

我试图通过azure powershell获取我的插槽信息.

检索我使用的信息

Get-AzureWebsite -Name mywebsite -Slot staging
Run Code Online (Sandbox Code Playgroud)

但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
Run Code Online (Sandbox Code Playgroud)

当我只尝试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}
Run Code Online (Sandbox Code Playgroud)

当我谷歌这个错误"未找到请求值'VS2015'." 我遇到了这个链接,这位作者建议删除远程调试器,但没有运气,我收到错误.

Dav*_*rdi 8

我的解决方案是:

  1. 切换远程调试ON
  2. 选择VS2013
  3. 保存
  4. 再次关闭远程调试
  5. 保存

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

  • 是的,似乎这仍然是一个问题.它今天打破了我的VSTS构建,这非常烦人. (2认同)