简体   繁体   English

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

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

I am trying to get my slot info through azure powershell. 我试图通过azure powershell获取我的插槽信息。

To retrieve the info i used 检索我使用的信息

Get-AzureWebsite -Name mywebsite -Slot staging

but azure powershell throws the below error: 但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

When i try only with Get-AzureWebsite -Name mywebsite it perfectly shows data including slot names as 当我只使用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}

when i google this error "Requested value 'VS2015' was not found." 当我谷歌这个错误“未找到请求值'VS2015'。” 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 切换远程调试ON
  2. select VS2013 选择VS2013
  3. Save
  4. Switch remote debugging OFF again 再次关闭远程调试
  5. Save

I think it is some kind of bug in Azure. 我认为这是Azure中的某种错误。

There is an Azure Powershell bug linked with Remote Debugging which cases error message: 有一个与远程调试链接的Azure Powershell错误 ,其中包含错误消息:

Get-AzureWebsite : Requested value 'VS2015' was not found. Get-AzureWebsite:找不到请求的值“VS2015”。

Workaround is as follows: 解决方法如下:

Prerequisites : Navigate to Azure Portal , select the Web App (or Web Site) with which you have a problem. 先决条件 :导航到Azure门户 ,选择您遇到问题的Web App(或Web站点)。 Open "Application Settings" panel. 打开“应用程序设置”面板。

  1. Set "Remote debugging" to "On" 将“远程调试”设置为“开”
  2. Set "Remote Visual Studio version" to "2013" 将“Remote Visual Studio版本”设置为“2013”
  3. Set "Remote debugging" to "Off" 将“远程调试”设置为“关闭”
  4. Save configuration 保存配置

PS. PS。 There is a similar answer here, but not precise enough. 这里有一个类似的答案,但不够精确。

PS2. PS2。 If there's still the same problem try restoring original value ("VS2015") and repeat the steps with "Saving configuration" between steps 3 and 4. 如果仍有相同的问题,请尝试恢复原始值(“VS2015”)并在步骤3和4之间重复“保存配置”的步骤。

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

相关问题 Azure Powershell cmdlet-找不到请求的值“启用” - Azure Powershell cmdlets - Requested value 'enable' was not found Azure Powershell cmdlet - New-AzureWebsite:未找到请求的值“Premium” - Azure Powershell cmdlets - New-AzureWebsite : Requested value 'Premium' was not found VS2015中的Service Fabric,PowerShell脚本执行失败 - Service Fabric in VS2015, PowerShell script failed to execute 在VS2015中调试Powershell无法可视化XML对象 - Debugging Powershell in VS2015 Can't Visualize XML objects VS2015:设置Powershell模块解决方案的最佳方法是什么? - VS2015: What is the best way to setup a Powershell module solution? 在VS2015中获取Nuget软件包的许可证 - Get licenses for the Nuget Packages in VS2015 使用“未找到身份”查找角色分配的可靠方法是什么? 在 Azure 和 Powershell 上? - What is the sure-fire way to find role assignments with "Identity not found." on Azure with Powershell? 在 ASP.NET 5/VS2015 中遇到 DNX 参考问题 - Stuck with DNX reference issue in ASP.NET 5/VS2015 为什么VS2015中的TestExplorer无法加载Pester模块? - Why TestExplorer in VS2015 failed to load Pester module? Azure CLI 与 Powershell? - Azure CLI vs Powershell?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM