az image

Manage custom virtual machine images.

Commands

az image copy Copy a managed image (or vm) to other regions.

az image copy

Copy a managed image (or vm) to other regions.

az image copy --source-object-name
--source-resource-group-name
--target-location
--target-resource-group-name
[--cleanup]
[--parallel-degree]
[--source-type]
[--tags]
[--target-name]
[--target-subscription]
[--timeout]

Examples

Copy an image to several regions and cleanup at the end.

az image copy --source-resource-group mySources-rg --source-object-name myImage \
                            --target-location uksouth northeurope --target-resource-group "images-repo-rg" --cleanup

Use an already generalized vm to create images in other regions.

az image copy --source-resource-group mySources-rg --source-object-name myVm \
                            --source-type vm --target-location uksouth northeurope --target-resource-group "images-repo-rg"

Required Parameters

--source-object-name
--source-resource-group-name
--target-location
--target-resource-group-name

Optional Parameters

--cleanup
default value: false
--parallel-degree
default value: -1
--source-type
default value: image
--tags
--target-name
--target-subscription
--timeout
default value: 3600