Internal Server Error when Set-AzureADApplicationLogo or Get-AzureADApplicationLogo

Octavie van Haaften 1 Reputation point
2020-05-22T12:44:09.637+00:00

Hi,
For some unknown reason I get an error when using the cmdlets Get and Set-AzureADApplicationLogo.

I have the module AzureAD installed (v2.0.0.76)
Steps:
Connect-AzureAD (I log in with my Global Admin account)
$app = Get-AzureADApplication -SearchString "MyAppName"
Get-AzureADApplicationLogo -ObjectId $app.ObjectId

=> Error
I does not matter which app registration I use in my tenant. All result in an error
The same goes for the Set cmdlet.

See also my tweet:
https://twitter.com/eivatco/status/1263751285746085888?s=20

Retrieving other info of an App Registration such as Owner, does work. So, the cmdlet Get-AzureADApplicationOwner does work without an error.

I cannot resolve this. Any clues?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,383 questions
{count} votes

2 answers

Sort by: Most helpful
  1. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-05-22T14:19:57.797+00:00

    @Octavie van Haaften , I just tested that PS Cmdlet and it worked for me. Please check the screenshot below:

    8574-azureadapplogo-output.png

    I used the following set of cmdlets:

    Connect-AzureAD  
    $app = Get-AzureADApplication -SearchString {app-name}  
    Get-AzureADApplicationLogo -ObjectId $app.ObjectId  
    

    Also, would like to state that I am currently using the following PS Module for Azure AD:
    8597-aadpreviewmodule.png

    Hope this helps. Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as "Answer" if the above response helped in answering your query.


  2. soumi-MSFT 11,716 Reputation points Microsoft Employee
    2020-05-25T12:19:29.66+00:00

    OctavievanHaaften-3056, Thank you for sharing the details. Looking at the error it looks like the application "Make - DEV" doesnt have a logo set for it in the AAD app registration. hence the PS cmdlet is failing to get that value.

    I tried the same in my lab for an app, that didnt have any logo set for itself and I got the same error. please refer to the screenshot below:

    8599-azureadapplogo-output.png

    It would be great if you can check if the application that you are trying to fetch the logo for even has a logo uploaded for it or not in AAD.

    Hope this helps. Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as "Answer" if the above response helped in answering your query.