question

OctavievanHaaften-3056 avatar image
0 Votes"
OctavievanHaaften-3056 asked OctavievanHaaften-3056 commented

Internal Server Error when Set-AzureADApplicationLogo or Get-AzureADApplicationLogo

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?

azure-active-directory
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Just tested this in our tenant and I can confirm I get the same errors.

1 Vote 1 ·
soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered OctavievanHaaften-3056 edited

@OctavievanHaaften-3056, 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.



· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Thank you for taking the time for this issue. I also tried the AzureADPreview version, but no luck either. I also tried different tenants, such as my Microsoft demo tenant. 8530-azureadpreview-logoissue.jpg


0 Votes 0 ·
soumi-MSFT avatar image
0 Votes"
soumi-MSFT answered OctavievanHaaften-3056 commented

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.



· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@OctavievanHaaften-3056, I wanted to followup and wanted to understand if the above response helped in answering your query. If it did, 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.

0 Votes 0 ·

@OctavievanHaaften-3056, I wanted to followup and wanted to understand if the above response helped in answering your query. If it did, 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.

0 Votes 0 ·

Hi,
To be honest, that behavior has changed. I provided a 215x215 PNG file using the Azure Portal and when I tried to do the Get-AzureADApplicationLogo again, it still gave me the exception. Although, we could discuss whether or not an exception should be returned or a NULL value, the Set-AzureADApplicationLogo still gives me an Internal Server Error.

Set-AzureADApplicationLogo -ObjectId $app.ObjectId -FilePath C:\Pictures\AppLogo_Make.png

So, both the cmdlet's regarding ApplicationLogo throw exceptions. And it is not just me, when I browse the internet.

https://github.com/Azure/azure-powershell/issues/12004

0 Votes 0 ·