locked
Unable to get a CDN working with my Storage RRS feed

  • Question

  • I am new to Azure and am experimenting in a Free account that I created. If successful, I will use transfer this to our company's Azure account.

    What I am trying to do is move some of our Javascript and other static web assets to an Azure Storage, and then make it more readily available by hooking it up to Azure CDN. 

    I was able to successfully set up the Storage, move our web assets there as Blobs, and set up a static web site using the Dashboard. These URLs work:

    https://imodeljsmodules.blob.core.windows.net/$web/appicon.ico

    https://imodeljsmodules.z13.web.core.windows.net/appicon.ico

    As expected. But my CDN does not work. I attempted to set it up so that this URL should deliver the same file through the CDN:

    https://bjbimodeljs.azureedge.net/appicon.ico

    but if you try that URL, you will see that it fails with an OutOfRangeInput error. I have the Origin Type of my Azure CDN set to Storage, the Origin hostname set to  imodeljsmodules.blob.core.windows.net, the Origin host header set to the same thing, and the Origin path left blank (I have also tried /web, but that didn't work any differently, and it won't allow /$web).

    Back in the Storage settings, I have tried setting the $web blob's PUBLIC ACCESS LEVEL to Container and Blob with no difference.

    I must have something set wrong, but I have run out of ideas of what to try.

    I have been in a chat with support, but the analyst, Ewelina S, sugested that I try this forum. 

    Thanks,

    Barry

    Wednesday, March 6, 2019 1:25 PM

Answers

  • Hi Barry, 



    In order to make it work, please follow the below steps:

     - Navigate to your Static webSite blade in your Storage account,where you can see endpoint, in you case it is "https://imodeljsmodules.z13.web.core.windows.net/appicon.ico" 

     - Use this FQDN as the endpoint in your Azure CDN as Origin hostname and use the same in origin Host header and leave the origin path empty.

    This should work. If you face any issue, let me know. 

    Regards, 

    Msrini 


    Wednesday, March 6, 2019 2:46 PM

All replies

  • Hi Barry, 



    In order to make it work, please follow the below steps:

     - Navigate to your Static webSite blade in your Storage account,where you can see endpoint, in you case it is "https://imodeljsmodules.z13.web.core.windows.net/appicon.ico" 

     - Use this FQDN as the endpoint in your Azure CDN as Origin hostname and use the same in origin Host header and leave the origin path empty.

    This should work. If you face any issue, let me know. 

    Regards, 

    Msrini 


    Wednesday, March 6, 2019 2:46 PM
  • Msrini,

    Yes, that worked (I had to change my "Origin Type" from "Storage" to "Custom Origin" to be able to type in imodeljsmodules.z13.web.core.windows.net as the origin. Then after waiting a few minutes, this URL worked:

    https://bjbimodeljs.azureedge.net/appicon.ico

    Thanks! I think the tutorial needs to be updated.

    Barry

    Wednesday, March 6, 2019 5:36 PM
  • Hi Barry, 

    We are working on it to update the Doc. 

     

    Please 'Mark as answer' if any of the replies helped, so that others in the community who are looking for similar question, can benefit from it.

    Regards, 

    Msrini

    Wednesday, March 6, 2019 5:59 PM