I created a test application in the Azure portal (https://portal.azure.com). In Visual Studio 2015 I have PowerShell and can execute:
Get-AzureRmADApplication
I am getting the following output:
DisplayName : test
ObjectId : ...
IdentifierUris : ...
HomePage : ...
Type : Application
ApplicationId : ...
AvailableToOtherTenants : False
AppPermissions :
ReplyUrls : ...
The list of "AppPermissions" is empty, though in Azure Portal I have given "test" all permissions that were available.
I am using PowerShell 3.0.399.0. At least this is what Get-Host reports:
Name : PowerShell Tools for Visual Studio Host
Version : 3.0.399.0
InstanceId : d7bb788e-e342-41fb-a78b-cad36f940aae
If I am using: Get-AzureADApplication -Filter "DisplayName eq 'test'" I am getting:
[ERROR] Get-AzureADApplication : Error occurred while executing GetApplications
[ERROR] Code: Authentication_Unauthorized
[ERROR] Message: User was not found
[ERROR] HttpStatusCode: Forbidden
[ERROR] HttpStatusDescription: Forbidden
[ERROR] HttpResponseStatus: Completed
Any ideas? How to get the permissions for application "test" in PowerShell? Why is this not working for me?
BR, Rene