Set up multiple /media containers within same Azure Storage account?
Hi all,
We have multiple Umbraco sites that we need to migrate from an on-premise to Azure web apps.
Each site has its own /media folder and as all the images require a big storage space (~2gb) and many read/write operations, we thought of using an Azure Storage Account via Blob containers solution for this.
Is it correct to say that using a single Azure Storage Account to serve all the sites' /media folders via Blob containers will cut costs rather than using separate storage accounts for every site?
We've found the UmbracoFileSystemProviders.Azure package which is great, but can't find any details on how to achieve what's stated in the title of this topic.
How to set up multiple /media containers within the same Azure Storage account?
in imageprocessor/security.config :the container value
<setting key="Container" value="site1-media"/>
So for each site everything else stays the same (e.g it still points to the /media folder of the site, and the connectionStings to azure are the same) just the name of the container/blob changes through out the config files.
How can I upload all folder Ids with images (1000, 1001, 1002.... 88889) in one go from a media folder into e.g. site1-media blob container and not separately as there are a lot of them and will take a lot of time?
Using MS Storage Explorer desktop app, but I can only upload one folder at a time?
How can I upload all folder Ids with images (1000, 1001, 1002.... 88889) in one go from a media folder into e.g. site1-media blob container and not separately as there are a lot of them and will take a lot of time?
Using MS Azure Storage Explorer desktop app, but I can only upload one folder at a time?
yeah - the interface is a bit of a pain, but you can drag and drop folders from Explorer on your pc in the blob folder in Storage Explorer, and this will do the multiple folders.
Set up multiple /media containers within same Azure Storage account?
Hi all,
We have multiple Umbraco sites that we need to migrate from an on-premise to Azure web apps.
Each site has its own /media folder and as all the images require a big storage space (~2gb) and many read/write operations, we thought of using an Azure Storage Account via Blob containers solution for this.
Is it correct to say that using a single Azure Storage Account to serve all the sites' /media folders via Blob containers will cut costs rather than using separate storage accounts for every site?
We've found the UmbracoFileSystemProviders.Azure package which is great, but can't find any details on how to achieve what's stated in the title of this topic.
Thank you.
HI Ivan,
you can have multiple media folders on the same storage account, what matters in the container name
So when creating the blob storage in azure this is the name of the blob/container (eg. site1-media)
In the
FileSystemProviders.config
file, everything is the same for all sites except the container name e.gif you are also pointing image processor at the blob storage, you will need a cache blob/container too (e.g. site1-cache).
in imageprocessor/cache.config : You will need to update the CachedBlobContainer and SourceBlobContainer values
in imageprocessor/security.config :the container value
So for each site everything else stays the same (e.g it still points to the /media folder of the site, and the connectionStings to azure are the same) just the name of the container/blob changes through out the config files.
See : https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Media/ for more detail of the whole setup
Ok, Thanks! Will give it a try and get back.
Hi Kevin,
How can I upload all folder Ids with images (1000, 1001, 1002.... 88889) in one go from a media folder into e.g. site1-media blob container and not separately as there are a lot of them and will take a lot of time?
Using MS Storage Explorer desktop app, but I can only upload one folder at a time?
Thank you.
Hi Kevin,
How can I upload all folder Ids with images (1000, 1001, 1002.... 88889) in one go from a media folder into e.g. site1-media blob container and not separately as there are a lot of them and will take a lot of time?
Using MS Azure Storage Explorer desktop app, but I can only upload one folder at a time?
Thank you.
Hi Ivan,
yeah - the interface is a bit of a pain, but you can drag and drop folders from Explorer on your pc in the blob folder in Storage Explorer, and this will do the multiple folders.
is working on a reply...