The requested value "VS2015" was not found. - Azure powershell

I am trying to get information about my slot through azure powershell.

To get the information I used

Get-AzureWebsite -Name mywebsite -Slot staging 

but azure powershell throws the following error:

 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, like

 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 "The requested value" VS2015 "was not found." I came across this link and this author suggests to remove the remote debugger , but I was not lucky that I get an error message.

+6
source share
2 answers

The solution for me was as follows:

  • disable remote debugging ON
  • select VS2013
  • Save
  • Turn off remote debugging again
  • Save

I think this is some kind of bug in Azure.

+8
source

There is an Azure Powershell error related to remote debugging in case of error messages:

Get-AzureWebsite: The requested value "VS2015" was not found.

The workaround is as follows:

Prerequisites . Go to Azure Portal , select the web application (or website) that you have a problem with. Open the Application Settings panel.

  • Set "Remote Debugging" to "On"
  • Set "Remote Visual Studio Version" to "2013"
  • Set "Remote Debugging" to "Off"
  • Save configuration

PS. There is a similar answer, but not accurate enough.

PS2. If the same problem still occurs, try restoring the original value ("VS2015") and repeat the steps with "Saving the configuration" between steps 3 and 4.

+2
source

All Articles