未找到请求的值“VS2015”。 - Azure powerhell [英] Requested value 'VS2015' was not found. - Azure powershell

查看:305
本文介绍了未找到请求的值“VS2015”。 - Azure powerhell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



要检索我使用的信息

  Get-AzureWebsite -Name mywebsite -Slot staging 

但天蓝色powershell会抛出以下错误:

  Get-AzureWebsite:未找到请求的值VS2015。 
在行:1 char:1
+ Get-AzureWebsite -Name mywebsite -Slot staging
+ ~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ FullyQualifiedErrorId:Microsoft.WindowsAzure.Commands.Websites.GetAzureWebsiteCommand

当我尝试只 Get-AzureWebsite -Name mywebsite 它完美地显示包括插槽名称的数据

 名称:mywebsite 
状态:运行
主机名:{mywebsite.azurewebsites.net}

名称:mywebsite(staging)
状态:运行
主机名:{mywebsite-staging.azurewebsites.net}

名称:mywebsite(dev)
状态:运行
主机名:{mywebsite-dev.azurewebsites.net}

当我google这个错误请求的值VS2015未找到。我遇到这个和这个连接,这样就可以实现这个功能了作者建议,删除远程调试器,但没有运气仍然是我得到错误。

解决方案

我的解决方案是:


  1. 切换远程调试开

  2. 选择VS2013

  3. 保存

  4. 再次切换远程调试OFF

  5. 保存

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


I am trying to get my slot info through azure powershell.

To retrieve the info i used

Get-AzureWebsite -Name mywebsite -Slot staging

but azure powershell throws the below error:

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

When i try only with Get-AzureWebsite -Name mywebsite it perfectly shows data including slot names as

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}

when i google this error "Requested value 'VS2015' was not found." i came across this link and this author suggests that to remove remote debugger but no luck still i'm getting the error.

解决方案

The solution for me was to:

  1. switch remote debugging ON
  2. select VS2013
  3. Save
  4. Switch remote debugging OFF again
  5. Save

I think it is some kind of bug in Azure.

这篇关于未找到请求的值“VS2015”。 - Azure powerhell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆