繁体   English   中英

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

[英]Requested value 'VS2015' was not found. - Azure powershell

我试图通过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'。” 我遇到了这个链接 ,这位作者建议删除远程调试器,但没有运气,我收到错误。

我的解决方案是:

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

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

有一个与远程调试链接的Azure Powershell错误 ,其中包含错误消息:

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

解决方法如下:

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

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

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM