BunnyCDN provides an easy way to speed up your Microsoft Azure Blob Storage, as well as save thousands of dollars on bandwidth costs. This article will guide you on how to set up BunnyCDN in three easy steps.
1. Configure your Microsoft Azure Storage Container and upload some Blobs
In order to be able to use BunnyCDN to speed up your Azure Blobs, you need to have configured your container and uploaded some data to it. Microsoft have a guide on how to do this here.
2. Obtain your container URL and configure the Pull Zone
Once you've uploaded a file, we need to obtain its URL so that we can configure our Pull Zone. Click on the 3 dots to the right of your file (1), and then click on "Blob Properties" (2):
Once you get to the Blob Properties, you will see a page like this:
We're interested in the bit in the circle, which contains the basis for the URL we will use for the Pull Zone, and it will look a bit like this:
https://harrytest1.blob.core.windows.net/cdn01/bunnycdn.png
in order to set up our Pull Zone, we are interested in the hostname, and just the container path, so we can remove the file path. This leaves us with:
https://harrytest1.blob.core.windows.net/cdn01/
We are now ready to go into BunnyCDN and configure a Pull Zone. First, select a name for your zone, this will also double as the hostname for your zone and then paste the copied URL part from above into the Origin URL field, for example:
Finally, select the pricing tiers and click on the Add Pull Zone button which will add a new Pull Zone configured with your Microsoft Azure Storage Blob Container.
For more detailed instructions, you can have a look at our article on creating your first pull zone.
4. Test your new Pull Zone
You're all done. BunnyCDN will automatically pull and cache files from your Container and deliver them from your newly created hostname. After the server configuration finishes syncing, you can now test if BunnyCDN is correctly integrated with your Container.
Visit your newly created pull zone hostname and append one of the uploaded files as the URL, for example in our case (with our bunnycdn.png file):
https://azuretest.b-cdn.net/bunnycdn.png
You will now be able to reap the rewards of much faster image serving, as well as much cheaper bandwidth costs with BunnyCDN. Replace your existing container URLs with your new CDN URLs and reap the benefits of BunnyCDN.