azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Get-AzureWebSite doesn't work when remote debugging with vs 2015 is enabled

Open lkempf opened this issue 11 years ago • 17 comments

Get-AzureWebSite -name $websiteName

returns

Get-AzureWebsite : Requested value 'VS2015' was not found.

when remote debugging for visual studio 2015 is enabled.

"RemoteDebuggingEnabled": true,
"RemoteDebuggingVersion": "VS2015",

lkempf avatar Jun 03 '15 09:06 lkempf

will look into this..

NaveenGoli avatar Jun 03 '15 20:06 NaveenGoli

Did you use API to set VS2015? I dont see an option to set to VS2015 in both portals?

NaveenGoli avatar Jun 03 '15 20:06 NaveenGoli

VS 2015 sets itself if you attach it for remote debugging

lkempf avatar Jun 04 '15 07:06 lkempf

Is there any progress on this? You can now select VS 2015 using the preview portal

lkempf avatar Jul 02 '15 16:07 lkempf

Just ran into a similar issue today when trying to deploy from VSO. Found a workaround: Resolve a "Requested value VS2015 was not found" Get-AzureWebsite Error in PowerShell

brandonmartinez avatar Jul 14 '15 18:07 brandonmartinez

Since nobody wants to fix this I tracked it down to a bug in azure-sdk-for-net. It should be trivial to fix now. This issue can probably be closed now but I'd like to keep it open as long as this remains unfixed to avoid reposts.

lkempf avatar Jul 14 '15 20:07 lkempf

@NaveenGoli What's the progress on this? Do you just need to add an option to the cmdlet, or make the value a string insstead of an enum?

markcowl avatar Aug 18 '15 18:08 markcowl

I saw this issue when attempting to web deploy to Azure. I came across this post which reminded me that I'd enabled remote debugging with vs2015. Changing it back to 2012 allowed me to deploy. Only took an hour or so to work it out!

timfish avatar Aug 19 '15 15:08 timfish

I just ran into this same issue with VS 2015 RTM and VS Online. I followed the same steps in the 'workaround' and it resolved it. Obviously there is still a problem somewhere in the setting of the remote debugger to VS 2015

Bartthefish avatar Aug 20 '15 16:08 Bartthefish

This also breaks VSO build using deployment to web site. This just fails without any indication why, as I describe here:

https://github.com/Microsoft/vso-agent-tasks/issues/526

ChristianRygg avatar Sep 09 '15 11:09 ChristianRygg

Fixing https://github.com/Azure/azure-sdk-for-net/issues/1255 should solve this so I've added a comment over there.

It could be fixed here as well by just hard-switching from unknown string values to VS2015, but I don't know if that's a good idea.

simeoncode avatar Oct 28 '15 13:10 simeoncode

any progress on this?

sergsalo avatar Jan 21 '16 19:01 sergsalo

@lkempf @sergsalo @storafrid There isn't any active development going on in the RDFE libraries or cmdlets for websites (though important bugfixes should still be happening). Have you tried updating your scripts to using the ARM cmdlets?

markcowl avatar Jan 28 '16 21:01 markcowl

@markcowl as mentioned here several times, the VSTS "Azure Web App Deployment" task uses Get-AzureWebsite internally and fails the build because it fails to detect existing web app. It is of course possible to replace that one build task with custom Azure Powershell scripts but that shouldn't be necessary. Based on the bunch of github issues, it looks like everyone is just pointing at the other teams. As a developer, I don't really care whose fault it is but the end result is that powershell management and VSTS deployment are both broken now.

I'd assume think that retrieving the information of a properly configured website with Azure Powershell (Get-AzureWebsite) should be considered "important" or supported and as such this should be fixed too.

htuomola avatar Feb 14 '16 16:02 htuomola

Adding @BradyGaster and @mohitsriv for visibility into this.

sayedihashimi avatar Feb 15 '16 19:02 sayedihashimi

RDFE fix was just checked in to dev branch, wil go out with the next release.

markcowl avatar Feb 25 '16 20:02 markcowl

@markcowl this should not be closed until it is available to customers/consumers. It makes it harder to find the issue (when I run into a problem, first thing I do is to look into the open issue), and a feature is not done until it is in production ;)

mxa0079 avatar Mar 14 '16 17:03 mxa0079