Copied to clipboard

Flag this post as spam?

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


  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Sep 22, 2021 @ 16:11
    Alex Skrypnyk
    0

    Migrating Azure Blob media from v8 to v9

    Hi,

    I migrated the site from v8 to v9, and all work pretty well. The only thing that is not working - media items that are in Azure Blob storage.

    All new media items that were uploaded to the site after the migration work as expected. Is there a fix for media items created in v8?

    Thanks,

    Alex

  • Rolle 5 posts 96 karma points
    Dec 01, 2021 @ 16:36
    Rolle
    0

    Hi Alex,

    Did you find a solution for this?

    Best regards Roland

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Dec 02, 2021 @ 23:26
    Alex Skrypnyk
    0

    Hi Rolle,

    No, we didn't fix it, do you have any idea?

    Alex

  • Warren Harding 132 posts 275 karma points
    Dec 01, 2021 @ 21:56
    Warren Harding
    0

    Did you find a good solution for this? I've just stumbled across https://github.com/umbraco/Umbraco.StorageProviders

  • Warren Harding 132 posts 275 karma points
    Dec 01, 2021 @ 23:04
    Warren Harding
    0

    Well I went ahead and tried the steps provided and all seems to work well, however it looks like you can't define an empty ContainerName

    Currently the container name is "media" but this means the it's make two media folders - https://testsiteblob.blob.core.windows.net/media/media/testfile.jpg

    Does anyone know of a what to have a single media folder in the root? Thank you

  • Rolle 5 posts 96 karma points
    Dec 03, 2021 @ 10:49
    Rolle
    103

    Hi

    The problem was the structure in the Azure Storage.

    The old structure is like this:

    /Blob Containers
        /media
        /cache
    

    The new structure is like this:

    /Blob Containers
        /[ContainerName]
            /media
            /cache
    

    Here is what I did:

    1. Cloned my (old) media container with a new name: storage
    2. Created media and cache folder inside storage container.
    3. Moved all the folders to the media folder.

    My appsettings.json

      "Umbraco": {
        "Storage": {
          "AzureBlob": {
            "Media": {
              "ConnectionString": "DefaultEndpointsProtocol=https;AccountName=<media account name>;AccountKey=<media account key>;EndpointSuffix=core.windows.net",
              "ContainerName": "storage"
            }
          }
        }
    

    That's it!

    I hope this helps you too :)

    Best regards Roland


    Umbraco documentation page: https://our.umbraco.com/Documentation/Extending/FileSystemProviders/Azure-Blob-Storage/

    Manage your Azure cloud storage with Azure Storage Explorer https://azure.microsoft.com/en-us/features/storage-explorer/

  • Dhanushka Kodituwakku 3 posts 73 karma points
    Jun 12, 2023 @ 10:48
    Dhanushka Kodituwakku
    0

    This worked!

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Dec 03, 2021 @ 15:59
    Alex Skrypnyk
    0

    Thanks for sharing this, Rolle! Have a great weekend.

  • Gerty Engrie 130 posts 490 karma points c-trib
    Jun 22, 2022 @ 14:03
  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies