Setting up an Azure blob storage container for hosting uploaded images
Azure blob storage provides a platform for storing large amounts of unstructured data. Think of your traditional FTP space, except that with Azure blob storage, you get added platform benefits such as geo replication, HTTP/HTTS access, automated backup and disaster recovery and access statistics.
This part of the tutorial assumes that you have a valid Windows Azure account.
Creating a blob Storage
- Sign-on to the portal at http://manage.windowsazure.com
- Select the Storage option on the left hand pane
- Select the “new” option at the bottom of the portal
- Select Quick create
- You will need to specify a unique url for your container, I have opted for “phonetoweb”
- Select the appropriate location/affinity group near you.
- You may leave the “Enable Geo-Replication” option ticked
- Select Create account
When you have completed this process, your blob storage account name should now be listed within the list of storage items on the portal.
Creating a blob container
The previous steps created a blob storage account. We now need to create a container within it, this is akin to creating a folder on a Hard Drive. A blob container access can be currently configured to have the following read access
- Select the storage account within the list, and select the “Containers” tab
- Select the “Create a container option”
- Provide a container name, such as “photos”
- Select a “Public container” option for the access type.
Container access keys
An access key is required to upload images to an azure blob storage container. Let’s take a note of the access key which would be required on the phone client when we get to part 4 of this tutorial.
Select “configure” on the Blob storage account and then “Manage Access Keys.” Take a note of the primary access key.
We should now have a publicly available azure blob container where we can upload images.