Skip to content

Instantly share code, notes, and snippets.

@JanneMattila
Last active August 25, 2016 13:12
Show Gist options
  • Save JanneMattila/06c96cb9660df6a1b85185b90932fee7 to your computer and use it in GitHub Desktop.
Save JanneMattila/06c96cb9660df6a1b85185b90932fee7 to your computer and use it in GitHub Desktop.
Find service principal (SPN)
$spn = (Get-AzureRmADServicePrincipal -SearchString "yourspnname")[0]
$spn.ApplicationId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment