Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nathan 67 posts 146 karma points
    Nov 07, 2018 @ 12:57
    Nathan
    0

    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?

    Thank you.

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 07, 2018 @ 13:44
    Kevin Jump
    3

    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.g

    <add key="containerName" value="site1-media"/>
    

    if 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

        <setting key="CachedBlobContainer" value="site1-cache"/>
        <setting key="SourceBlobContainer" value="site1-media" />
    

    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.

    See : https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Media/ for more detail of the whole setup

  • Nathan 67 posts 146 karma points
    Nov 07, 2018 @ 13:54
    Nathan
    0

    Ok, Thanks! Will give it a try and get back.

  • Nathan 67 posts 146 karma points
    Nov 07, 2018 @ 14:09
    Nathan
    0

    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.

  • Nathan 67 posts 146 karma points
    Nov 07, 2018 @ 14:09
    Nathan
    0

    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.

  • Kevin Jump 2343 posts 14890 karma points MVP 8x c-trib
    Nov 07, 2018 @ 14:19
    Kevin Jump
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft