Why am I getting a 'we don't support this file format' error for publicly accessible images on SharePoint Online in Intune, while the same images work fine from Azure storage?

SUMIT KUMAR MISHRA 80 Reputation points
2024-10-29T10:48:44.42+00:00

I want to set a wallpaper and lock screen on a device using a PowerShell script through Intune. To store the images, I used an Azure storage container and successfully deployed them to devices. However, when I made the images publicly accessible using SharePoint Online, added the image link in the script, and deployed it to the device through Intune, I received an error saying, 'we don't support this file format' for the same image, even though it works with Azure storage. I used only PNG, JPG, or JPEG file formats. Could you help explain why this might be happening?

Microsoft Security | Intune | Other
0 comments No comments
{count} votes

Accepted answer
  1. ZhoumingDuan-MSFT 17,165 Reputation points Microsoft External Staff
    2024-10-30T05:30:47.2866667+00:00

    @SUMIT KUMAR MISHRA, Tapas, Thanks for posting in Q&A.

    From your description, I know you are getting error for publicly accessible images on SharePoint Online in Intune.

    To clarify this issue, please check the following.

    1.Please check the permissions. Files stored on the SharePoint all have permissions and they are private. It is necessary to verify whether the account has permissions for files SharePoint Online often requires authentication to access files, even if they are set to be publicly accessible. This can cause issues when trying to use these images in Intune, which might not be able to authenticate properly.

    2.Check whether the image link is correct in the script and can be accessed by anyone.

    3.Check whether the image file format is correct and try to re-upload them.

    If there is any update, feel free to let me know.

    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.