profile
viewpoint

Ask questionsUnable to register Self-Hosted Environment - Unauthorized

Hi,

I currently have a windows 10 system that I am trying to register for a self-hosted environment. I am able to install VS Code fine along with the online plugin. I am able to authenticate into Azure where it sees my subscription, etc.

I get to the point where it asks for the folder to use for a workspace, it then asks for the name for the environment, and then how it should install (as a service or as a process). Regardless if I click on the service or process, I am never able to get past this step. I continually get the following error message:

"Register Self-hosted Environment: (Error 1) Error calling HTTP POST at 'https://online.visualstudio.com/api/v1/environments' ErrorCode : Unauthorized"

I am able to successfully login with the Azure functions plugin, etc. and I am able to push code through VS Code to azure functions, so it isn't a matter of me giving the incorrect credentials. Any help please? If you need any additional information on my end, just let me know what else I can provide.

MicrosoftDocs/vsonline

Answer questions erinxocon

I was getting the exact issue above and after creating a new plan in the region reported from the above endpoint, everything is working. I mean to say; the workaround is working for now for me! I literally tried creating an environment today about 2 hours after this issue was posted. Will be happy to try out a fix if needed!

useful!

Related questions

Could not target platform: 'Java SE 11' using tool chain: 'JDK 8 (1.8)'. hot 4
Github User Rank List