I have a (sysprepped/generalized) server template in an Azure Image in an Azure region (Canada Central). I would like to use it to create an Azure VM in a different Azure region (Central US). It doesn't work.
So, I need that Azure Image to also reside in Central US. How can I copy my Azure image from one Azure region to another?
You can use azure cli extension to copy images between region
az extension add --name image-copy-extension
az image copy --source-resource-group mySources-rg --source-object-name myImage --target-location uksouth northeurope --target-resource-group "images-repo-rg" --cleanup
**EDIT: There is a new way to share images between regions, Shared Image Gallery.
You can decide which regions will have access to the image with the --target-regions
option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With