In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzureADApplication PowerShell command with examples.
Get-AzureADApplication
This is a very good PowerShell command to get the applications from the Azure Active Directory.
Syntax
Below is the syntax of the Get-AzureADApplication command.
Get-AzureADApplication
Get-AzureADApplication -ObjectId <String>
Get-AzureADApplication
[-SearchString <String>]
Let’s discuss a few examples of how to use the Get-AzureADApplication PowerShell command.
Example-1:
You can execute the below PowerShell command to get the applications from the Azure Active Directory.
Get-AzureADApplication
After executing the above command I got the below output
Account Environment TenantId TenantDomai
n
------- ----------- -------- -----------
fewlines4biju@hotmail.com AzureCloud 5d9d690a-0310-474d-ae8b-42df2d549228 fewlines...
DeletionTimestamp :
ObjectId : 085b7a57-e110-45b8-ace3-c143404d9b5b
ObjectType : Application
AddIns : {}
AllowGuestsSignIn :
AllowPassthroughUsers :
AppId : e085d6f6-a38c-4632-a399-333da86ba03a
AppLogoUrl :
AppRoles : {}
AvailableToOtherTenants : False
DisplayName : mynewadapp
ErrorUrl :
GroupMembershipClaims :
Homepage :
IdentifierUris : {}
InformationalUrls : class InformationalUrl {
TermsOfService:
Marketing:
Privacy:
Support:
}
IsDeviceOnlyAuthSupported :
IsDisabled :
KeyCredentials : {}
KnownClientApplications : {}
LogoutUrl :
Oauth2AllowImplicitFlow : False
Oauth2AllowUrlPathMatching : False
Oauth2Permissions : {}
Oauth2RequirePostResponse : False
OrgRestrictions : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors:
System.Collections.Generic.List`1[System.String]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PreAuthorizedApplications :
PublicClient :
PublisherDomain : fewlines4bijuhotmail.onmicrosoft.com
RecordConsentConditions :
ReplyUrls : {https://spfxfunctionapp.azurewebsites.net/.auth/login/aa
d/callback}
RequiredResourceAccess : {class RequiredResourceAccess {
ResourceAppId: 00000003-0000-0000-c000-000000000000
ResourceAccess: System.Collections.Generic.List`1[Micro
soft.Open.AzureAD.Model.ResourceAccess]
}
}
SamlMetadataUrl :
SignInAudience : AzureADMyOrg
WwwHomepage :
DeletionTimestamp :
ObjectId : 11906a6b-b898-417e-89a9-b268989b6212
ObjectType : Application
AddIns : {}
AllowGuestsSignIn :
AllowPassthroughUsers :
AppId : 564f6f65-7132-49f2-84b9-41c4256d03f8
AppLogoUrl :
AppRoles : {}
AvailableToOtherTenants : False
DisplayName : AzureFunctionSQLTest
ErrorUrl :
GroupMembershipClaims :
Homepage : https://azurefunctionsqltest.azurewebsites.net
IdentifierUris : {https://azurefunctionsqltest.azurewebsites.net}
InformationalUrls : class InformationalUrl {
TermsOfService:
Marketing:
Privacy:
Support:
}
IsDeviceOnlyAuthSupported :
IsDisabled :
KeyCredentials : {}
KnownClientApplications : {}
LogoutUrl :
Oauth2AllowImplicitFlow : False
Oauth2AllowUrlPathMatching : False
Oauth2Permissions : {class OAuth2Permission {
AdminConsentDescription: Allow the application to
access AzureFunctionSQLTest on behalf of the signed-in
user.
AdminConsentDisplayName: Access AzureFunctionSQLTest
Id: 2149c271-107c-42a1-b4dd-a24b45b45271
IsEnabled: True
Type: User
UserConsentDescription: Allow the application to
access AzureFunctionSQLTest on your behalf.
UserConsentDisplayName: Access AzureFunctionSQLTest
Value: user_impersonation
}
}
Oauth2RequirePostResponse : False
OrgRestrictions : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors:
System.Collections.Generic.List`1[System.String]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {class PasswordCredential {
CustomKeyIdentifier:
EndDate: 9/25/2030 10:56:37 AM
KeyId: 78a55983-ee8b-46db-9601-e7ed8e151c77
StartDate: 9/25/2020 10:56:37 AM
Value:
}
}
PreAuthorizedApplications :
PublicClient :
PublisherDomain : fewlines4bijuhotmail.onmicrosoft.com
RecordConsentConditions :
ReplyUrls : {https://azurefunctionsqltest.azurewebsites.net/.auth/log
in/aad/callback}
RequiredResourceAccess : {class RequiredResourceAccess {
ResourceAppId: 00000002-0000-0000-c000-000000000000
ResourceAccess: System.Collections.Generic.List`1[Micro
soft.Open.AzureAD.Model.ResourceAccess]
}
}
SamlMetadataUrl :
SignInAudience : AzureADMyOrg
WwwHomepage :
DeletionTimestamp :
ObjectId : ef68982c-5978-4b9b-8589-ba174f5b8f08
ObjectType : Application
AddIns : {}
AllowGuestsSignIn :
AllowPassthroughUsers :
AppId : 07a20682-d07e-4419-857f-f9943a9ea7bf
AppLogoUrl :
AppRoles : {}
AvailableToOtherTenants : False
DisplayName : mynewwbapp
ErrorUrl :
GroupMembershipClaims :
Homepage :
IdentifierUris : {}
InformationalUrls : class InformationalUrl {
TermsOfService:
Marketing:
Privacy:
Support:
}
IsDeviceOnlyAuthSupported :
IsDisabled :
KeyCredentials : {}
KnownClientApplications : {}
LogoutUrl :
Oauth2AllowImplicitFlow : False
Oauth2AllowUrlPathMatching : False
Oauth2Permissions : {}
Oauth2RequirePostResponse : False
OrgRestrictions : {}
OptionalClaims :
ParentalControlSettings : class ParentalControlSettings {
CountriesBlockedForMinors:
System.Collections.Generic.List`1[System.String]
LegalAgeGroupRule: Allow
}
PasswordCredentials : {}
PreAuthorizedApplications :
PublicClient :
PublisherDomain : fewlines4bijuhotmail.onmicrosoft.com
RecordConsentConditions :
ReplyUrls : {}
RequiredResourceAccess : {class RequiredResourceAccess {
ResourceAppId: 00000003-0000-0000-c000-000000000000
ResourceAccess: System.Collections.Generic.List`1[Micro
soft.Open.AzureAD.Model.ResourceAccess]
}
}
SamlMetadataUrl :
SignInAudience : AzureADMyOrg
WwwHomepage :
You can check out the same output below

Example-2:
You can execute the below PowerShell command to get the application details based on the specified object ID.
Connect-AzureAD -TenantId 5d9d690a-0310-474d-ae8b-42df2d549228
Get-AzureADApplication -ObjectId ef68982c-5978-4b9b-8589-ba174f5b8f08
After executing the above command, I got the below-expected output.

Example-3:
You can use the below PowerShell command to get the application details based on the specified display name.
Connect-AzureAD -TenantId 5d9d690a-0310-474d-ae8b-42df2d549228
Get-AzureADApplication -Filter "DisplayName eq 'mynewwbapp'"
After executing the above command, I got the below output as expected.

You can always use the Set-AzureADApplication PowerShell command to update your Azure Active Directory application.
If you wish to remove or delete any unwanted Azure AD application, you can use the Remove-AzureADApplication PowerShell command.
You can also check out a video tutorial on the Get-AzureADApplication PowerShell command.
Final Thoughts
In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzureADApplication PowerShell command. Thanks for reading this article !!!