Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

[P1] "azure login -e AzureChinaCloud" does not work in Linux #2726

Closed
andyzhangx opened this issue Apr 8, 2016 · 3 comments
Closed

[P1] "azure login -e AzureChinaCloud" does not work in Linux #2726

andyzhangx opened this issue Apr 8, 2016 · 3 comments

Comments

@andyzhangx
Copy link

CLI Version: 0.9.19
OS Type: Ubuntu 14.04.4 LTS
Installation via: npm
Mode: ARM / ASM

Description:
"azure login -e AzureChinaCloud" does not work in Linux

Steps to reproduce:

  1. sudo apt-get install nodejs-legacy
  2. sudo apt-get install npm
  3. sudo npm install -g azure-cli
  4. azure login -e AzureChinaCloud

Error stack trace:

|^Croot@andy-test-ubt:/tmp# azure login -e AzureChinaCloud
info: Executing command login
/info: To sign in, use a web browser to open the page https://aka.ms/deviceloginchina. Enter the code AB74HL5YU to authenticate.
+
error: CERT_UNTRUSTED
info: Error information has been recorded to /root/.azure/azure.err
error: login command failed

Note:
If I use global azure account, it works:
root@andy-test-ubt:/tmp# azure login
info: Executing command login

  • Authenticating...info: To sign in, use a web browser to open the page https://aka.ms/devicelogin. Enter the code APS7W3KUH to authenticate.
    \info: Added subscription Azure RHUI Production
    info: Added subscription OSTC Shanghai Test
    info: Setting subscription "Azure RHUI Production" as default
    +
    info: login command OK
@ahmetb
Copy link
Contributor

ahmetb commented Apr 11, 2016

duplicate of #2725

@amarzavery
Copy link
Contributor

@andyzhangx - What version of node.js are you using. I think this error should go away after installing the latest version (4.x). This link provides simple steps to install the latest version of node.js on different flavors of Linux.

@andyzhangx
Copy link
Author

Thanks, it works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants