Skip to content

Instantly share code, notes, and snippets.

@alexjamesbrown
Created October 6, 2023 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexjamesbrown/6d4aa28865c392c00844795030e93a71 to your computer and use it in GitHub Desktop.
Save alexjamesbrown/6d4aa28865c392c00844795030e93a71 to your computer and use it in GitHub Desktop.
Sometimes, you just need to get the currently logged in users Azure AD Principal ID. This command does just that, and pipes it straight to the clipboard
az ad signed-in-user show --query id -o tsv | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment