从 VS Code 登录 Azure 帐户 [英] Sign in to Azure Account from VS Code

查看:84
本文介绍了从 VS Code 登录 Azure 帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有最新版本的 Visual Studio Code 1.19.2.这是一个干净的安装.

I have the latest version of Visual Studio Code 1.19.2. It's a clean installation.

我已使用 Azure 帐户 (0.2.2) 安装了 Microsoft 的 Azure 扩展包.但是我无法登录到我的 Azure 订阅.当我在命令面板 (CTRL+Shift+P) 中键入 Azure: Sign In 时,它只在底部紫线中显示 Azure: Logging in...,但没有任何反应.我没有登录.

I've installed Azure Extension Pack from Microsoft with Azure Account (0.2.2). But I am not able to sign in to my Azure subscription. When I type Azure: Sign In in the commands pallete (CTRL+Shift+P), it only shows Azure: Logging in... in the bottom purple line, but nothing happens. I am not signed in.

据我所知,它应该打开带有登录屏幕的浏览器窗口,但事实并非如此.我的默认浏览器是 Edge,我的操作系统是带有所有更新的 Windows 10 Enterprise x64 1709.

As far as I know it should open browser window with login screen, but it does not. My default browser is Edge, my operating system is Windows 10 Enterprise x64 1709 with all updates.

如何登录我的 Azure 订阅?

How to sign in to my Azure subscription?

推荐答案

发生这种情况是因为您的公司网络阻止了代理执行 Azure: SignIn 命令.所以解决方案是在环境变量中添加值HTTPS_PROXY,让网页浏览器在登录页面打开Azure Sign.

It happens because your corporate network has blocked the proxy to execute the Azure: SignIn command. So the solution is to add value HTTPS_PROXY in the environment variable to allow the web browser to open up the Azure Sign in the login page.

export HTTPS_PROXY=http://username:password@proxy:8080
export HTTP_PROXY=http://username:password@proxy:8080

这篇关于从 VS Code 登录 Azure 帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆