[英]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: 我的解决方案是:
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”。
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. 打开“应用程序设置”面板。
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.