If you want to make the files in the container public, you can set the container's permissions.
You can just modify the create_container() call
to pass the :public_access_level option:
container = azure_blob_service.create_container("test-container",
:public_access_level => "<public access level>")
Valid values for the :public_access_level option
are:
-
blob: Specifies full public read access for container and blob data. Clients can enumerate
blobs within the container via anonymous request, but cannot enumerate containers within the storage account.
-
container: Specifies public read access for blobs. Blob data within this container
can be read via anonymous request, but container data is not available. Clients cannot enumerate blobs within the container via anonymous request.
Alternatively, you can modify the public access level of a container by using set_container_acl() method
to specify the public access level.
The following example changes the public access level to container:
azure_blob_service.set_container_acl('test-container', "container")
For more details: How to use Blob storage from Ruby