Skip to content

Instantly share code, notes, and snippets.

@pmatthews05
Last active February 13, 2020 13:01
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 pmatthews05/270dd349da5f3e184a38e770d94fb6ee to your computer and use it in GitHub Desktop.
Save pmatthews05/270dd349da5f3e184a38e770d94fb6ee to your computer and use it in GitHub Desktop.
$serviceprincipal = Get-AzureADServicePrincipal -All:$true -Filter "DisplayName eq 'Demo App'"
#OR If using APP ID.
$serviceprincipalByID = Get-AzureADServicePrincipal -All:$true -Filter "AppId eq 'ab739749-827d-4437-90e5-bf181c5407e0'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment