Skip to content

Instantly share code, notes, and snippets.

@craig-martin
Created January 29, 2016 18:57
Show Gist options
  • Save craig-martin/9e2d83275c9be037b248 to your computer and use it in GitHub Desktop.
Save craig-martin/9e2d83275c9be037b248 to your computer and use it in GitHub Desktop.
### Authenticate to AAD
Login-AzureRmAccount
### There are two commands for this, from two sources
Get-Command Get-AzureADApplication #module: AzureAD 1.1.23.0
Get-Command Get-AzureRmADApplication #module: AzureRM.Resources 1.0.3
Get-AzureRmADApplication -DisplayNameStartWith fooApp
<#
DisplayName : fooApp
Type : Application
ApplicationId : aaaaaaaa-2424-2424-2424-aaaaaaaaaaaa
ApplicationObjectId : bbbbbbbb-2626-2626-2626-bbbbbbbbbbbb
AvailableToOtherTenants : False
AppPermissions : {{
"claimValue": "user_impersonation",
"description": "Allow the application to access fooApp on behalf of the signed-in user.",
"directAccessGrantTypes": [],
"displayName": "Access fooApp",
"impersonationAccessGrantTypes": [
{
"impersonated": "User",
"impersonator": "Application"
}
],
"isDisabled": false,
"origin": "Application",
"permissionId": "cccccccc-2626-2626-2626-cccccccccccc",
"resourceScopeType": "Personal",
"userConsentDescription": "Allow the application to access fooApp on your behalf.",
"userConsentDisplayName": "Access fooApp",
"lang": null
}}
IdentifierUris : {http://fooApp}
ReplyUrls : {}
#>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment