I am trying to get my slot info through azure powershell.
To retrieve the info i used
Get-AzureWebsite -Name mywebsite -Slot staging
but azure powershell throws the below 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 as
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." i came across this link and this author suggests that to remove remote debugger but no luck still i'm getting the error.