![](/img/trans.png)
[英]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.