You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
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:
sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo npm install -g azure-cli
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
The text was updated successfully, but these errors were encountered:
@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.
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:
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
\info: Added subscription Azure RHUI Production
info: Added subscription OSTC Shanghai Test
info: Setting subscription "Azure RHUI Production" as default
+
info: login command OK
The text was updated successfully, but these errors were encountered: