-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added try catch block added for azlogin #10556
base: main
Are you sure you want to change the base?
Conversation
I just wanted to add here that the current approach here for this When not logged in you will get the following:
It happens because the Powershell In #10602 I have solved this using the following way:
The |
This PR adds a try-catch block for the
azlogin
function. * If an account is already logged in, it prints a message "Already logged in...". * If the login fails, it prints an error message "Login failed...". This change will help to handle the login process more gracefully and provide better user feedback.Related issue:
#10236
Check list