terminal
terminal copied to clipboard
[Bug] Azure exits with exit code 1 after authentication
Windows Terminal version
1.15.3466.0
Windows build number
10.0.22621.963
Other Software
No response
Steps to reproduce
- Open the Terminal ;
- Open a new tab (Azure Cloud Shell) ;
- Use the login code to login at https://microsoft.com/devicelogin ;
- The Terminal outputs that I have been authenticated and Azure exits suddenly with exit code 1 .
This is the output in Chinese below (Can't upload screenshots) :
若要登录,请使用 Web 浏览器打开页 https://microsoft.com/devicelogin,然后输入代码 I7[Private]8 进行身份验证。
此代码将在 15 分钟后过期。
已经过身份验证。
[已退出进程,代码为 1 (0x00000001)]
Expected Behavior
No response
Actual Behavior
Azure exits suddenly with exit code 1(0x00000001).
Btw, I also tried to run Terminal as Administrator, and it isn't fixed.
Since you authenticated but didn't get a prompt to select a tenant, it seems that either
- the process is exiting while attempting to populate your list of tenants
- OR you only have 1 tenant, and the process is exiting after getting that tenant but before you get the prompt asking you if you would like to store your credentials (this feels unlikely as there isn't much going on here)
Are you able to use the Azure Cloud Shell directly in your browser via this link https://shell.azure.com/ ?
Hi, I have just noticed that I didn't have Azure account yet. Maybe this would cause the problem? The link reminds me that I have not signed up and paid for it.
I have just noticed that I didn't have Azure account yet. Maybe this would cause the problem?
Very possibly! Once you are able to use the Azure Cloud Shell in your browser (via that link), try again in Terminal and see if it works
It works with a valid az shell account:
Perfect! Closing this out then