【发布时间】:2016-03-20 01:30:35
【问题描述】:
我正在尝试通过 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'。”我遇到了这个link,作者建议删除远程调试器但是没有运气,我仍然收到错误。
【问题讨论】:
标签: powershell azure deployment visual-studio-2015 azure-deployment-slots