Help connecting to Azure CDN endpoint using storage account

Gopi chand Narra 5 Reputation points
2024-09-17T10:42:42.42+00:00

I encountered an error while trying to access the CDN endpoint using the endpoint name, but was able to access the website using the origin name. The error message displayed is:

This XML file does not appear to have any style information associated with it. The document tree is shown below.


I used the following command and got the following results:

curl -i https://testcdnaccount.azureedge.net
https://testcdnaccount.azureedge.net/website/html.txt

HTTP/1.1 404 The specified blob does not exist.
Date: Tue, 17 Sep 2024 10:39:57 GMT
Content-Type: application/xml
Content-Length: 215
Connection: keep-alive
x-ms-request-id: 66b05f8e-a01e-0018-0fed-080e64000000
x-ms-version: 2009-09-19
x-azure-ref: 20240917T103957Z-1748dbb68c5n96q8r2xupnwke400000000yg0000000099s8
x-fd-int-roxy-purgeid: 76133558
X-Cache: TCP_MISS



Can anyone help me solve this issue? Thank you.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,114 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Vinodh247 18,906 Reputation points
    2024-09-17T12:03:22.87+00:00

    Hi Gopi chand Narra,

    Thanks for reaching out to Microsoft Q&A.

    • Ensure that the blob you're trying to access exists in the correct container and that the path in the CDN URL matches the blob's actual location. For example, if the URL is https://<cdn-endpoint>/<container>/<blob>. Verify that, the blob exists in the specified container. The blob name (including file extension) is correct and case sensitive.
    • Ensure that the blob is either public or that the CDN endpoint has the correct permissions to access it. If the blob is set to private, you need to generate a SAS token or configure CDN to use private access with auth.
    • Ensure the CDN is correctly configured to point to the storage endpoint and that the origin URL is correctly mapped to the Azure Storage account. In the Azure Portal, check your CDN profile under CDN profiles > Endpoints > Origin, and verify that it is correctly set to your storage account.
    • If the blob appears to exist and permissions seem correct, you can look at the Storage Analytics Logs to see if the blob access requests are hitting the storage account and what response codes are being returned.

    Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.

    0 comments No comments

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.