-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Azure SSH: clear current identity before logging in again (#149)
This PR adds runs the `az logout` before logging in so that we wipe any currently connected identities. This resolves a handful of issues we're seeing for example: 1. granting a user access, relinquishing access, and then granting again will use an old cached identity which will have a temporary block on access. 2. granting sudo access, and regular user access and relinquishing one temporarily blocks access to the account. 3. if someone runs `az login` and uses a different identity that has the same subscription id.
- Loading branch information
Showing
2 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters