Azure CDN returning 404 not found for Storage Container Blob endpoints

azurecdncloud-storage

My Azure CDN does not appear to be correctly mapped to my Storage Container Blob data.

Storage

I've created a Storage, which is online:

storage

Inside is a Storage Container:

storage-container

My Storage Container has blobs defined, which are functional:

storage-container-blobs

From Visual Studio, I've connected to my Azure via Server Explorer and set the Public Read Access to Container:

container-properties

So, everything seems okay from a Storage perspective.

CDN

Creating a new CDN, it maps from my Storage Origin Domain:

cdn

However, when I try to access blobs via the CDN name or DNS record I have created I simply receive a 404.

cdn-404

One thing I find strange is that the CDN endpoint only gives a 404; whereas the Storage will return json errors. For example, resource not found errors:

Storage endpoint resource not found:

storage-not-found

From the CDN, this will only show 404

cdn-404

It's been a few hours, which should have allowed the CDN to propagate.

Why do my CDN endpoints fail to load Storage?

Best Answer

Make sure you've made your container public. In your Azure portal go to Storage, select your store and then select your 'Containers' tab. From here select the container you want and click 'Edit' from the menu at the bottom. This triggers a popup where you can set your access to public.

Related Topic