Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
请求值';VS2015';没有找到Azure powershell_Powershell_Azure_Deployment_Visual Studio 2015_Azure Deployment Slots - Fatal编程技术网

请求值';VS2015';没有找到Azure powershell

请求值';VS2015';没有找到Azure powershell,powershell,azure,deployment,visual-studio-2015,azure-deployment-slots,Powershell,Azure,Deployment,Visual Studio 2015,Azure Deployment Slots,我正在尝试通过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 + ~~~~~~~~~~

我正在尝试通过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’。我遇到了此问题,作者建议删除远程调试器,,但运气不好,我仍然会遇到此错误。

我的解决方案是:

  • 打开远程调试
  • 选择VS2013
  • 拯救
  • 再次关闭远程调试
  • 拯救
  • 我认为这是Azure中的某种错误。

    有一个与远程调试相关的错误消息:

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

    解决办法如下: 先决条件:导航到您遇到问题的Web应用(或网站)。打开“应用程序设置”面板

  • 将“远程调试”设置为“打开”
  • 将“远程Visual Studio版本”设置为“2013”
  • 将“远程调试”设置为“关闭”
  • 保存配置
  • 这里有一个类似的答案,但不够精确


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

    Yep,这似乎仍然是一个问题。今天,它打破了我的VSTS构建,真是太烦人了。