Skip to content

Instantly share code, notes, and snippets.

@tillig
Created July 15, 2021 21:16
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 tillig/0737d01d688db7f37016b77bd2ab7480 to your computer and use it in GitHub Desktop.
Save tillig/0737d01d688db7f37016b77bd2ab7480 to your computer and use it in GitHub Desktop.
Helpful snippets for working with the az CLI

Service Principals

Get the service principal for an application by app ID:

az ad sp list --filter "appId eq 'APP-GUID-HERE'" --query "[].objectId" -o tsv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment