There is a command group 'az_sig_image version'. This group of commands could 'manage shared gallery image version with vm'. The group of commands has global parameter '--debug' which means 'Increase logging verbosity to show all debug logs.'. The group of commands has global parameter '--help -h' which means 'Show this help message and exit.'. The group of commands has global parameter '--only-show-errors' which means 'Only show errors, suppressing warnings.'. The group of commands has global parameter '--output -o' which means 'Output format.'. The group of commands has global parameter '--query' which means 'JMESPath query string. See <a href="http://jmespath.org/">http://jmespath.org/</a> for more information and examples.'. The group of commands has global parameter '--subscription' which means 'Name or ID of subscription. You can configure the default subscription using `az account set -s NAME_OR_ID`.'. The group of commands has global parameter '--verbose' which means 'Increase logging verbosity. Use --debug for full debug logs.'. This group contains a child command 'az_sig_image version_create'.The syntax is: az sig image-version create --gallery-image-definition
                            --gallery-image-version
                            --gallery-name
                            --resource-group
                            [--data-snapshot-luns]
                            [--data-snapshots]
                            [--data-vhds-luns]
                            [--data-vhds-sa]
                            [--data-vhds-uris]
                            [--end-of-life-date]
                            [--exclude-from-latest {false, true}]
                            [--image-version]
                            [--location]
                            [--managed-image]
                            [--no-wait]
                            [--os-snapshot]
                            [--os-vhd-storage-account]
                            [--os-vhd-uri]
                            [--replica-count]
                            [--storage-account-type {premium_lrs, standard_lrs, standard_zrs}]
                            [--tags]
                            [--target-region-encryption]
                            [--target-regions]
                            [--virtual-machine]. The 1th example of the child command would be to use it to 'add a new image version from a virtual machine', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM. The 2th example of the child command would be to use it to 'add a new image version from a managed image', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--managed-image /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/images/MyManagedImage. The 3th example of the child command would be to use it to 'add a new image version from another image version', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--image-version /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/galleries/MyGallery/images/MyImageDefinition/versions/1.0.0. The 4th example of the child command would be to use it to 'add a new image version from a managed disk', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-snapshot /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/disks/MyOSDisk. The 5th example of the child command would be to use it to 'add a new image version from a managed disk and add additional data disks', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-snapshot /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/disks/MyOSDisk \
--data-snapshots /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/disks/MyDataDisk \
--data-snapshot-luns 0. The 6th example of the child command would be to use it to 'add a new image version from a snapshot of an os disk', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-snapshot /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/snapshots/MyOsDiskSnapshot. The 7th example of the child command would be to use it to 'add a new image version from a snapshot of an os disk and add additional snapshots as data disks', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-snapshot /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/snapshots/MyOsDiskSnapshot \
--data-snapshots /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/snapshots/MyDiskSnapshot \
--data-snapshot-luns 0. The 8th example of the child command would be to use it to 'add a new image version from a vhd of an os disk', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-vhd-storage-account /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Storage/storageAccounts/mystorageaccount \
--os-vhd-uri https://mystorageaccount.blob.core.windows.net/container/path_to_vhd_file. The 9th example of the child command would be to use it to 'add a new image version from a vhd of an os disk and add additional vhds as data disks', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-vhd-storage-account /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Storage/storageAccounts/mystorageaccount \
--os-vhd-uri https://mystorageaccount.blob.core.windows.net/container/path_to_vhd_file \
--data-vhds-sa /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Storage/storageAccounts/myotherstorageaccount \
--data-vhds-uris https://myotherstorageaccount.blob.core.windows.net/container/path_to_vhd_file \
--data-vhds-luns 0. The 10th example of the child command would be to use it to 'you can combine snapshots  managed disks  and vhds to create a new image version  add a new image version using a vhd as the os disk and a managed disk and a snapshot as data disks', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--os-vhd-storage-account /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Storage/storageAccounts/mystorageaccount \
--os-vhd-uri https://mystorageaccount.blob.core.windows.net/container/path_to_vhd_file \
--data-snapshots /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/disks/MyDataDisk subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/snapshots/MyDiskSnapshot \
--data-snapshot-luns 0 1. The 11th example of the child command would be to use it to 'add a new image version and copy it to additional regions  the home location for the source of the image version must be included in the list of target regions  for each additional region  you can specify a different replica count and storage account type  otherwise  the region will inherit from the global  the default replica count is 1 and the default storage account type is standard lrs  in this example  eastus2 will have one replica stored on standard zrs storage  ukwest will have 3 replicas stored on standard zrs storage  southindia will have one replica stored on standard lrs storage  and brazilsouth will have 2 replicas stored on standard lrs storage', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 --replica-count 1 \
--storage-account-type Standard_ZRS --managed-image image-name \
--target-regions eastus2 ukwest=3 southindia=standard_lrs \
brazilsouth=2=standard_lrs. The 12th example of the child command would be to use it to 'add a new image version with encryption using a disk encryption set  encryption is applied to each disk that is a part of the image version', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM \
--target-regions westus=2=standard eastus \
--target-region-encryption WestUSDiskEncryptionSet1,0,WestUSDiskEncryptionSet2 \
EastUSDiskEncryptionSet1,0,EastUSDiskEncryptionSet2. The 13th example of the child command would be to use it to 'add a new image version and copy it to extended locations', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 --replica-count 1 \
--storage-account-type Standard_ZRS --managed-image image-name \
--target-edge-zones westus=microsoftlosangeles1 eastus=microsoftlosangeles2=1 \
brazilsouth=2=standard_lrs. The 14th example of the child command would be to use it to 'add a new image version and copy it to extended locations with encryption using a disk encryption set', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM \
--target-edge-zones westus=microsoftlosangeles1 \
--target-edge-zone-encryption microsoftlosangeles1,WestUSDiskEncryptionSet1,0,WestUSDiskEncryptionSet2. The 15th example of the child command would be to use it to 'add a new image version and don t wait on it  later you can invoke  az sig image version wait  command when ready to create a vm from the gallery image version', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM \
--no-wait. The 16th example of the child command would be to use it to 'add a new image version but remove it from consideration as latest version in its image definition', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM \
--exclude-from-latest true. The 17th example of the child command would be to use it to 'add a new image version and set its end of life date  the image version can still be used to create a virtual machine after its end of life date', the syntax is: az sig image-version create --resource-group MyResourceGroup \
--gallery-name MyGallery --gallery-image-definition MyImage \
--gallery-image-version 1.0.0 \
--virtual-machine /subscriptions/00000000-0000-0000-0000-00000000xxxx/resourceGroups/imageGroups/providers/Microsoft.Compute/virtualMachines/MyVM \
--end-of-life-date 2024-08-02T00:00:00+00:00. The parameter '--gallery-image-definition -i' is required. It is used to gallery image definition.. The parameter '--gallery-image-version -e' is required. It is used to gallery image version in semantic version pattern. the allowed characters are digit and period. digits must be within the range of a 32-bit integer, e.g. `<majorversion>.<minorversion>.<patch>`.. The parameter '--gallery-name -r' is required. It is used to gallery name.. The parameter '--resource-group -g' is required. It is used to name of resource group. you can configure the default group using `az configure --defaults group=<name>`.. The parameter '--data-snapshot-luns' is optional. logical unit numbers (space-delimited) of data disk snapshots.. The parameter '--data-snapshots' is optional. names or ids (space-delimited) of data disk snapshots.. The parameter '--data-vhds-luns' is optional. logical unit numbers (space-delimited) of source vhd uris of data disks.. The parameter '--data-vhds-sa --data-vhds-storage-accounts' is optional. names or ids (space-delimited) of storage accounts of source vhd uris of data disks.. The parameter '--data-vhds-uris' is optional. source vhd uris (space-delimited) of data disks.. The parameter '--end-of-life-date' is optional. the end of life date, e.g. '2020-12-31'.. The parameter '--exclude-from-latest' is optional. the flag means that if it is set to true, people deploying vms with version omitted will not use this version.. The parameter '--image-version' is optional. resource id of gallery image version source.. The parameter '--location -l' is optional. location. values from: `az account list-locations`. you can configure the default location using `az configure --defaults location=<location>`.. The parameter '--managed-image' is optional. image name(if in the same resource group) or resource id.. The parameter '--no-wait' is optional. do not wait for the long-running operation to finish.. The parameter '--os-snapshot' is optional. name or id of os disk snapshot.. The parameter '--os-vhd-storage-account' is optional. name or id of storage account of source vhd uri of os disk.. The parameter '--os-vhd-uri' is optional. source vhd uri of os disk.. The parameter '--replica-count' is optional. the default number of replicas to be created per region. to set regional replication counts, use --target-regions.. The parameter '--storage-account-type' is optional. the default storage account type to be used per region. to set regional storage account types, use --target-regions.. The parameter '--tags' is optional. space-separated tags: key[=value] [key[=value] ...]. use "" to clear existing tags.. The parameter '--target-region-encryption' is optional. space-separated list of customer managed keys for encrypting the os and data disks in the gallery artifact for each region. format for each region: `<os_des>,<lun1>,<lun1_des>,<lun2>,<lun2_des>`. use "null" as a placeholder.. The parameter '--target-regions' is optional. space-separated list of regions and their replica counts. use `<region>[=<replica count>][=<storage account type>]` to optionally set the replica count and/or storage account type for each region. if a replica count is not specified, the default replica count will be used. if a storage account type is not specified, the default storage account type will be used.. The parameter '--virtual-machine' is optional. resource id of vm source.. 