[英]Azure Powershell cmdlets - Requested value 'enable' was not found
[英]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'。” 我遇到了这个链接 ,这位作者建议删除远程调试器,但没有运气,我收到错误。
我的解决方案是:
我认为这是Azure中的某种错误。
有一个与远程调试链接的Azure Powershell错误 ,其中包含错误消息:
Get-AzureWebsite:找不到请求的值“VS2015”。
先决条件 :导航到Azure门户 ,选择您遇到问题的Web App(或Web站点)。 打开“应用程序设置”面板。
PS。 这里有一个类似的答案,但不够精确。
PS2。 如果仍有相同的问题,请尝试恢复原始值(“VS2015”)并在步骤3和4之间重复“保存配置”的步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.