azure-dev
azure-dev copied to clipboard
Support azd logout
If we support azd login, we should also probably support azd logout.
I can imagine a use case where a developer would want to switch Azure accounts (e.g. from personal to work or vice versa) where this would be helpful.
As it stands right now, I don't think there's anyway to logout via azd or az?
Dupe Azure/azure-dev-pr#1039
As it stands right now, I don't think there's anyway to logout via azd or az?
Since we piggyback on az today for authentication, you can use az logout to log out of azd but it is a little confusing for sure.
@savannahostrowski If we add an azd logout gesture, the implementation will just call az logout. Do you think users will find that surprising?
Oops my bad for not checking that this issue already existed!
az logout unfortunately does not print "Logged out" once the command executes so that's a little unfortunate. If we were to piggyback off of that command, I think that's fine so long as we can print something to the terminal that indicates whether or not the action was successful.
az logout unfortunately does not print "Logged out" once the command executes so that's a little unfortunate. If we were to piggyback off of that command, I think that's fine so long as we can print something to the terminal that indicates whether or not the action was successful.
We should be able to.
@wbreza I assume this is relevant to your work to remove the az dependency + as you think about auth on the azd side. Does this make sense to assign to you?
@rajeshkamal5050 Let's make sure that this is considered as we work through auth
We now have azd logout - it was added with our auth support