There is a command group 'az_image_builder'. This group of commands could 'manage and build image builder templates'. 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_image_builder_create'.The syntax is: az image builder create --name
                        --resource-group
                        [--build-timeout]
                        [--build-vm-identities]
                        [--checksum]
                        [--defer]
                        [--identity]
                        [--image-source]
                        [--image-template]
                        [--location]
                        [--managed-image-destinations]
                        [--no-wait]
                        [--os-disk-size]
                        [--proxy-vm-size]
                        [--scripts]
                        [--shared-image-destinations]
                        [--subnet]
                        [--tags]
                        [--vm-size]
                        [--vnet]. The 1th example of the child command would be to use it to 'create an image builder template from an ubuntu2204 image  distribute it as a managed image and a shared image gallery image version  specify the staging resource group id as the image template that will be used to build the image', the syntax is: scripts="https://my-script-url.net/customize_script.sh"
imagesource="Canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2:latest"

az image builder create --image-source $imagesource -n myTemplate -g myGroup \
    --scripts $scripts --managed-image-destinations image_1=westus \
    --shared-image-destinations my_shared_gallery/linux_image_def=westus,brazilsouth \
    --identity myIdentity --staging-resource-group myStagingResourceGroup. The 2th example of the child command would be to use it to 'create an image builder template using an image template file', the syntax is: az image builder create -g my-group -n myTemplate --image-template filename. The 3th example of the child command would be to use it to 'advanced  create an image template with multiple customizers and distributors using the cli s object cache via   defer  supports features such as  customizer and output names  powershell exit codes  inline scripts  windows restart  file customizers  artifact tags and vhd output distributors', the syntax is: script="https://my-script-url.com/customize_script.ps1"
imagesource="MicrosoftWindowsServer:WindowsServer:2019-Datacenter:2019.0.20190214"

# create and update template object in local cli cache. Defers put request to ARM
# Cache object ttl set via az configure.
az image builder create --image-source $imagesource -n myTemplate \
    -g myGroup --scripts $script --identity myIdentity --defer

# add customizers
az image builder customizer add -n myTemplate -g myGroup  \
    --customizer-name myPwshScript --exit-codes 0 1 --inline-script \
    "mkdir c:\buildActions" "echo Azure-Image-Builder-Was-Here \
     > c:\buildActions\Output.txt" --type powershell --defer

az image builder customizer add -n myTemplate -g myGroup \
    --customizer-name myFileCustomizer --type file \
    --file-source "https://my-file-source.net/file.txt"  \
    --dest-path "c:\buildArtifacts\file.txt" --defer

# add distributors
az image builder output add -n myTemplate -g myGroup --is-vhd \
    --output-name myWinImageVhd --artifact-tags "is_vhd=True" --defer

az image builder output add -n myTemplate -g myGroup \
    --output-name myWinImageManaged --managed-image winImage \
    --managed-image-location eastus \
    --artifact-tags "is_vhd=False" --defer

# Stop deferring put request to ARM. Create the template from the object cache.
# Cache object will be deleted.
az image builder update -n myTemplate -g myGroup. The parameter '--name -n' is required. It is used to the name of the image template.. 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 '--build-timeout' is optional. the maximum duration to wait while building the image template, in minutes. default is 60.. The parameter '--build-vm-identities' is optional. optional configuration of the virtual network to use to deploy the build virtual machine in. omit if no specific virtual network needs to be used.. The parameter '--checksum' is optional. the sha256 checksum of the red hat iso image.. The parameter '--defer' is optional. temporarily store the object in the local cache instead of sending to azure. use `az cache` commands to view/clear.. The parameter '--identity' is optional. list of user assigned identities (name or id, space delimited) of the image template.. The parameter '--image-source -i' is optional. the base image to customize. must be a valid platform image urn, platform image alias, red hat iso image uri, managed image name/id, or shared image version id.. The parameter '--image-template' is optional. local path or url to an image template file. when using --image-template, all other parameters are ignored except -g and -n. reference: https://docs.microsoft.com/azure/virtual-machines/linux/image-builder-json.. 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-destinations' is optional. managed image output distributor information. space-separated list of key-value pairs. e.g "image_1=westus2 image_2=westus". each key is the name or resource id of the managed image to be created. each value is the location of the image.. The parameter '--no-wait' is optional. do not wait for the long-running operation to finish.. The parameter '--os-disk-size' is optional. size of the os disk in gb. omit or specify 0 to use azure's default os disk size.. The parameter '--proxy-vm-size' is optional. size of the virtual machine used to build, customize and capture images (standard_d1_v2 for gen1 images and standard_d2ds_v4 for gen2 images).. The parameter '--scripts' is optional. space-separated list of shell or powershell scripts to customize the image with. each script must be a publicly accessible url. infers type of script from file extension ('.sh' or'.ps1') or from source type. more more customizer options and flexibility, see: 'az image template customizer add'.. The parameter '--shared-image-destinations' is optional. shared image gallery (sig) output distributor information. space-separated list of key-value pairs. e.g "my_gallery_1/image_def_1=eastus,westus  my_gallery_2/image_def_2=uksouth,canadaeast,francesouth." each key is the sig image definition id or sig gallery name and sig image definition delimited by a "/". each value is a comma-delimited list of replica locations.. The parameter '--subnet' is optional. name or id of subnet to deploy the build virtual machine.. The parameter '--tags' is optional. space-separated tags: key[=value] [key[=value] ...]. use "" to clear existing tags.. The parameter '--vm-size' is optional. size of the virtual machine used to build, customize and capture images. omit or specify empty string to use the default (standard_d1_v2).. The parameter '--vnet' is optional. name of vnet to deploy the build virtual machine. you should only specify it when subnet is a name.. 