How can I display SharePoint images on my Azure static website?

0
0
Asked By CuriousCoder42 On

I'm working on my first Azure website and it's coming together nicely! The goal is to allow users to search through a collection of images currently stored in SharePoint. Since users won't be logging in, they won't have direct access to these images except through my site. The method I've found involves granting my Azure site access to read the SharePoint file bytes and then displaying them like this: . It works, but it feels pretty clunky. Is there a more efficient way to display SharePoint images on an Azure website? Would migrating these files to OneDrive make a difference? I'm also open to other Microsoft solutions that would keep the files secure but allow for better access through the web.

3 Answers

Answered By StorageGuru88 On

For some cases, I upload web resources to a storage account's container and then use the built-in static website service to host them. Those links can be pretty handy for various purposes!

CuriousCoder42 -

I'm a bit of a newbie with Microsoft stuff. Can you explain what a storage account container is?

Answered By SecuritySavvy99 On

Just a heads up, creating a public static website to bypass standard authentication and access controls in SharePoint might pose some security risks. It may not be a concern for your use case, but I think it would raise flags during an audit in a larger organization.

CuriousCoder42 -

That's a valid point! The images are meant for public access, and they ended up in SharePoint just because it's a small nonprofit's choice. Unfortunately, there are thousands of them, and I can't find a user-friendly way for non-logged-in users to access these images directly in SharePoint.

Answered By TechTrends2023 On

There are various ways to handle this, but I would recommend not using a static web app. Instead, consider an Azure Container App with a volume mount for file storage and a way to transfer content from SharePoint to that storage. You could set up a webhook or use polling for the content transfer.

CuriousCoder42 -

That sounds interesting! I’ll have to look into Azure Container Apps and see how those work.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.