Reputation: 1398
I am analyzing the process to change Kentico Media Libraries to use Azure Storage instead of local file system. The process itself is described in good detail in this post. But, now the question is, what about the existing media? Do i need to execute any procedure to manually upload it, and update all references of each media in the database? Or does Kentico provides any option to migrate the media and update references?
Thanks
Upvotes: 0
Views: 358
Reputation: 6117
This is a large undertaking if you have a lot of images on different page types. Also if you're using a simple URL selector as the form control this image paths will need to be updated to use the CDN storage domain and prefix. Assuming you're using workflow, you'll want to write code to check these documents in and out and publish them when you update the URL values.
I just went through this with a client with over 1500 products and each product has between 4 and 9 images each. Plus news articles and resources like PDF and other product images.
My suggestion is to clone the whole environment, perform your configuration changes, update data as needed, then perform your testing. You will find out what will work and what won't very quickly. One "gotcha" is to ensure your CDN is fully configured and replicated before doing your testing. I suggest setting that up in the morning and updating your website configuration in the after or the next day so it has time to replicate.
Upvotes: 1
Reputation: 998
File path to an image is relative (see media_file table), but you need to copy images files yourself. You can do it with azCopy. Just follow the documentation on configuring media library storage in azure and you will be Ok
Upvotes: 0