forked from Azure/azure-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_help.py
3363 lines (3036 loc) · 155 KB
/
_help.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
#
# Generation mode: Incremental
# --------------------------------------------------------------------------
from knack.help_files import helps # pylint: disable=unused-import
from .generated._help import helps
try:
from .manual._help import helps # pylint: disable=reimported
except ImportError:
pass
# pylint: disable=line-too-long, too-many-lines
helps['disk create'] = """
type: command
short-summary: Create a managed disk.
examples:
- name: Create a managed disk by importing from a blob uri.
text: >
az disk create -g MyResourceGroup -n MyDisk --source https://vhd1234.blob.core.windows.net/vhds/osdisk1234.vhd
- name: Create an empty managed disk.
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 10
- name: Create an empty managed disk with bursting enabled.
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 1024 --location centraluseuap --enable-bursting
- name: Create a managed disk by copying an existing disk or snapshot.
text: >
az disk create -g MyResourceGroup -n MyDisk2 --source MyDisk
- name: Create a disk in an availability zone in the region of "East US 2"
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --location eastus2 --zone 1
- name: Create a disk from image.
text: >
az disk create -g MyResourceGroup -n MyDisk --image-reference Canonical:0001-com-ubuntu-server-jammy:22_04-lts-gen2:latest
- name: Create a disk from the OS Disk of a compute gallery image version
text: >
az disk create -g MyResourceGroup -n MyDisk --gallery-image-reference /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Compute/galleries/myGallery/images/myImage/versions/1.0.0
- name: Create a disk from the OS Disk of the latest version in a compute gallery image
text: >
az disk create -g MyResourceGroup -n MyDisk --gallery-image-reference /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Compute/galleries/myGallery/images/myImage
- name: Create a disk from the OS Disk of a shared gallery image version
text: >
az disk create -g MyResourceGroup -n MyDisk --gallery-image-reference /SharedGalleries/sharedGalleryUniqueName/Images/imageName/Versions/1.0.0
- name: Create a disk from the OS Disk of a community gallery image version
text: >
az disk create -g MyResourceGroup -n MyDisk --gallery-image-reference /CommunityGalleries/communityGalleryPublicGalleryName/Images/imageName/Versions/1.0.0
- name: Create a disk from the Data Disk of a gallery image
text: >
az disk create -g MyResourceGroup -n MyDisk --gallery-image-reference /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.Compute/galleries/myGallery/images/myImage/versions/1.0.0 --gallery-image-reference-lun 0
- name: Create a disk with total number of IOPS and total throughput (MBps) limitation.
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --sku UltraSSD_LRS --disk-iops-read-only 200 --disk-mbps-read-only 30
- name: Create a disk and specify maximum number of VMs that can attach to the disk at the same time.
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 256 --max-shares 2 -l centraluseuap
- name: Create a disk and associate it with a disk access resource.
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --network-access-policy AllowPrivate --disk-access MyDiskAccessID
- name: Create a disk from the blob URI for VM guest state VHD.
text: >
az disk create -g MyResourceGroup -n MyDisk --size-gb 10 --security-data-uri GuestStateDiskVhdUri --security-type TrustedLaunch --hyper-v-generation V2
- name: Create a standard disk for uploading blobs.
text: >
az disk create -g MyResourceGroup -n MyDisk --upload-size-bytes 20972032 --upload-type Upload
- name: Create an OS disk for uploading along with VM guest state.
text: >
az disk create -g MyResourceGroup -n MyDisk --upload-size-bytes 20972032 --upload-type UploadWithSecurityData --security-type TrustedLaunch --hyper-v-generation V2
"""
helps['disk wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of a managed disk is met.
examples:
- name: Place the CLI in a waiting state until a condition of a managed disk is met. (autogenerated)
text: |
az disk wait --created --name MyManagedDisk --resource-group MyResourceGroup
crafted: true
- name: Place the CLI in a waiting state until a condition of a managed disk is met. (autogenerated)
text: |
az disk wait --deleted --name MyManagedDisk --resource-group MyResourceGroup --subscription mysubscription
crafted: true
"""
helps['disk-access create'] = """
type: command
short-summary: Create a disk access resource.
examples:
- name: Create a disk access resource.
text: >
az disk-access create -g MyResourceGroup -l centraluseuap -n MyDiskAccess
"""
helps['disk-access update'] = """
type: command
short-summary: Update a disk access resource.
examples:
- name: Update a disk access resource.
text: >
az disk-access update -g MyResourceGroup -n MyDiskAccess --tags tag1=val1 tag2=val2
"""
helps['disk-access wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of a disk access is met.
examples:
- name: Place the CLI in a waiting state until the disk access is created with 'provisioningState' at 'Succeeded'.
text: |
az disk-access wait --created -g MyResourceGroup -n MyDiskAccess
"""
helps['disk-encryption-set create'] = """
type: command
short-summary: Create a disk encryption set.
examples:
- name: Create a disk encryption set.
text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault
- name: Create a disk encryption set with a system assigned identity.
text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-system-assigned
- name: Create a disk encryption set with a user assigned identity.
text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-user-assigned myAssignedId
- name: Create a disk encryption set with system assigned identity and a user assigned identity.
text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --mi-system-assigned --mi-user-assigned myAssignedId
- name: Create a disk encryption set with multi-tenant application client id to access key vault in a different tenant.
text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --federated-client-id myFederatedClientId
- name: Create a disk encryption set that supports double encryption.
text: az disk-encryption-set create --resource-group MyResourceGroup --name MyDiskEncryptionSet --key-url MyKey --source-vault MyVault --encryption-type EncryptionAtRestWithPlatformAndCustomerKeys
"""
helps['disk-encryption-set update'] = """
type: command
short-summary: Update a disk encryption set.
examples:
- name: Update a disk encryption set. (autogenerated)
text: |
az disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault
crafted: true
- name: Update multi-tenant application client id of a disk encryption set.
text: |
az disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault --federated-client-id myFederatedClientId
- name: Clear multi-tenant application client id of a disk encryption set.
text: |
az disk-encryption-set update --name MyDiskEncryptionSet --resource-group MyResourceGroup --key-url MyKey --source-vault MyVault --federated-client-id None
"""
helps['disk-encryption-set identity'] = """
type: group
short-summary: Manage identities of a disk encryption set.
"""
helps['disk-encryption-set identity assign'] = """
type: command
short-summary: Add managed identities to an existing disk encryption set.
examples:
- name: Add a system assigned managed identity to an existing disk encryption set.
text: >
az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned
- name: Add a user assigned managed identity to an existing disk encryption set.
text: >
az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned MyAssignedId
- name: Add system assigned identity and a user assigned managed identity to an existing disk encryption set.
text: >
az disk-encryption-set identity assign --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned --user-assigned MyAssignedId
"""
helps['disk-encryption-set identity remove'] = """
type: command
short-summary: Remove managed identities from an existing disk encryption set.
examples:
- name: Remove a system assigned managed identity from an existing disk encryption set.
text: >
az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --system-assigned
- name: Remove a user assigned managed identity from an existing disk encryption set.
text: >
az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned MyAssignedId
- name: Remove all user assigned managed identities from an existing disk encryption set.
text: >
az disk-encryption-set identity remove --name MyDiskEncryptionSet --resource-group MyResourceGroup --user-assigned
"""
helps['disk-encryption-set identity show'] = """
type: command
short-summary: Display managed identities of a disk encryption set.
examples:
- name: Display managed identities of a disk encryption set.
text: |
az disk-encryption-set identity show --name MyDiskEncryptionSet --resource-group MyResourceGroup
"""
helps['image create'] = """
type: command
short-summary: Create a custom Virtual Machine Image from managed disks or snapshots.
examples:
- name: Create an image from an existing disk.
text: |
az image create -g MyResourceGroup -n image1 --os-type Linux \\
--source /subscriptions/db5eb68e-73e2-4fa8-b18a-0123456789999/resourceGroups/rg1/providers/Microsoft.Compute/snapshots/s1
- name: Create an image by capturing an existing generalized virtual machine in the same resource group.
text: az image create -g MyResourceGroup -n image1 --source MyVm1
"""
helps['image builder'] = """
type: group
short-summary: Manage and build image builder templates.
"""
helps['image builder create'] = """
type: command
short-summary: Create an image builder template.
parameters:
- name: --image-source -i
populator-commands:
- az vm image list
- az vm image show
examples:
- name: 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.
text: |
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
- name: Create an image builder template using an image template file.
text: |
az image builder create -g my-group -n myTemplate --image-template filename
- name: >
[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.
text: |
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
"""
helps['image builder customizer'] = """
type: group
short-summary: Manage image builder template customizers.
"""
helps['image builder customizer add'] = """
type: command
short-summary: Add an image builder customizer to an image builder template.
long-summary: Must be used with --defer
examples:
- name: Add an inline shell customizer to an image template in the cli object cache
text: |
az image builder customizer add -n myTemplate -g myGroup \\
--inline-script "sudo mkdir /buildArtifacts" \\
"sudo cp /tmp/index.html /buildArtifacts/index.html" \\
--customizer-name shellScriptInline --type shell --defer
- name: Add a file customizer to an image template in the cli object cache
text: |
az image builder customizer add -n myTemplate -g myGroup \\
--customizer-name myFile --type file \\
--file-source "https://my-remote-file.html" --dest-path "/tmp/index.html" --defer
- name: Add a windows restart customizer to an image template in the cli object cache
text: |
az image builder customizer add -n myTemplate -g myGroup \\
--customizer-name shellScriptUrl \\
--restart-check-command "echo Azure-Image-Builder-Restarted-the-VM > \\
c:\\buildArtifacts\\restart.txt" \\
--type windows-restart --restart-timeout 10m --defer
- name: Add a windows update customizer to an image template in the cli object cache.
text: |
az image builder customizer add -n myTemplate -g myGroup --customizer-name winUpdate --type windows-update --search-criteria IsInstalled=0 --filters "exclude:\\$_.Title -like \\'*Preview*\\'" "include:\\$true" --update-limit 20 --defer
"""
helps['image builder customizer clear'] = """
type: command
short-summary: Remove all image builder customizers from an image builder template.
long-summary: Must be used with --defer
"""
helps['image builder customizer remove'] = """
type: command
short-summary: Remove an image builder customizer from an image builder template.
long-summary: Must be used with --defer
"""
helps['image builder validator'] = """
type: group
short-summary: Manage image builder template validate.
"""
helps['image builder validator add'] = """
type: command
short-summary: Add validate to an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Add validate with continue distribute on failure set to true. If not specified, the default value of continue distribute on failure is false.
If validation fails and this field is set to false, output image(s) will not be distributed.
text: |
az image builder validator add -n myTemplate -g myGroup --continue-distribute-on-failure true --defer
- name: Add validate with source validation only set to true. If not specified, the default value of source validation only is false.
If this field is set to true, the image specified in the source section will directly be validated.
text: |
az image builder validator add -n myTemplate -g myGroup --source-validation-only true --defer
- name: Add validate with source validation only and continue distribute on failure set to false.
text: |
az image builder validator add -n myTemplate -g myGroup --defer
"""
helps['image builder validator remove'] = """
type: command
short-summary: Remove validate from an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Remove validate from an existing image builder template.
text: |
az image builder validator remove -n myTemplate -g myGroup --defer
"""
helps['image builder validator show'] = """
type: command
short-summary: Show validate of an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Show validate of an existing image builder template.
text: |
az image builder validator show -n myTemplate -g myGroup --defer
"""
helps['image builder optimizer'] = """
type: group
short-summary: Manage image builder template optimizer.
"""
helps['image builder optimizer add'] = """
type: command
short-summary: Add optimizer to an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Add optimizer for improving VM boot time by optimizing the final customized image output.
text: |
az image builder optimizer add -n myTemplate -g myGroup --enable-vm-boot true --defer
"""
helps['image builder optimizer update'] = """
type: command
short-summary: Update an optimizer from an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Update an optimizer from an existing image builder template.
text: |
az image builder optimizer update -n myTemplate -g myGroup --enable-vm-boot true --defer
"""
helps['image builder optimizer remove'] = """
type: command
short-summary: Remove optimizer from an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Remove optimizer from an existing image builder template.
text: |
az image builder optimizer remove -n myTemplate -g myGroup --defer
"""
helps['image builder optimizer show'] = """
type: command
short-summary: Show optimizer of an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Show optimizer of an existing image builder template.
text: |
az image builder optimizer show -n myTemplate -g myGroup --defer
"""
helps['image builder error-handler'] = """
type: group
short-summary: Manage image builder template error handler.
"""
helps['image builder error-handler add'] = """
type: command
short-summary: Add error handler to an existing image builder template.
long-summary: Must be used with --defer
"""
helps['image builder error-handler remove'] = """
type: command
short-summary: Remove error handler from an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Remove error handler from an existing image builder template.
text: |
az image builder error-handler remove -n myTemplate -g myGroup --defer
"""
helps['image builder error-handler show'] = """
type: command
short-summary: Show error handler of an existing image builder template.
long-summary: Must be used with --defer
examples:
- name: Show error handler of an existing image builder template.
text: |
az image builder error-handler show -n myTemplate -g myGroup --defer
"""
helps['image builder identity'] = """
type: group
short-summary: Manage identities of an image builder template.
"""
helps['image builder identity assign'] = """
type: command
short-summary: Add managed identities to an existing image builder template. Currently, only one user identity is supported.
examples:
- name: Add a user assigned managed identity to an existing image builder template.
text: >
az image builder identity assign --name MyImageBuilderTemplate --resource-group MyResourceGroup --user-assigned MyAssignedId
"""
helps['image builder identity remove'] = """
type: command
short-summary: Remove managed identities from an existing image builder template.
examples:
- name: Remove a user assigned managed identity from an existing image builder template.
text: >
az image builder identity remove --name MyImageBuilderTemplate --resource-group MyResourceGroup --user-assigned MyAssignedId
- name: Remove all user assigned managed identities from an existing image builder.
text: >
az image builder identity remove --name MyImageBuilderTemplate --resource-group MyResourceGroup --user-assigned
"""
helps['image builder identity show'] = """
type: command
short-summary: Display managed identities of a image builder template.
examples:
- name: Display managed identities of a image builder template.
text: |
az image builder identity show --name MyImageBuilderTemplate --resource-group MyResourceGroup
"""
helps['image builder delete'] = """
type: command
short-summary: Delete image builder template.
examples:
- name: Delete image builder template. (autogenerated)
text: |
az image builder delete --name MyImageTemplate --resource-group MyResourceGroup
crafted: true
"""
helps['image builder list'] = """
type: command
short-summary: List image builder templates.
"""
helps['image builder output'] = """
type: group
short-summary: Manage image builder template output distributors.
long-summary: >
A customized image can be distributed as a managed image,
a shared image in a shared image gallery (SIG), or as a VHD blob.
"""
helps['image builder output add'] = """
type: command
short-summary: Add an image builder output distributor to an image builder template.
long-summary: Must be used with --defer. The output distributor can be a managed image, a gallery image, or as a VHD blob.
examples:
- name: Add a managed image distributor to an image template in the cli object cache. Specify a run output name.
text: |
az image builder output add -n mytemplate -g my-group \\
--managed-image my_desired_image_name --output-name managed_image_run_01 --defer
- name: Add a shared image gallery distributor to an image template in the cli object cache. Specify its replication regions.
text: |
az image builder output add -n mytemplate -g my-group --gallery-name my_shared_gallery \\
--gallery-replication-regions westus brazilsouth \\
--gallery-image-definition linux_image_def --defer
- name: Add a VHD distributor to an image template in the cli object cache.
text: |
az image builder output add -n mytemplate -g my-group \\
--output-name my_vhd_image --is-vhd --defer
- name: Add a VHD distributor with specifying storage uri to an image template in the cli object cache.
text: |
az image builder output add -n mytemplate -g my-group \\
--output-name my_vhd_image --is-vhd --vhd-uri https://mystorageaccount.blob.core.windows.net/container/path_to_vhd_file --defer
"""
helps['image builder output clear'] = """
type: command
short-summary: Remove all image builder output distributors from an image builder template.
long-summary: Must be used with --defer
"""
helps['image builder output remove'] = """
type: command
short-summary: Remove an image builder output distributor from an image builder template.
long-summary: Must be used with --defer
"""
helps['image builder output versioning'] = """
type: group
short-summary: Manage image builder template output versioner.
long-summary: >
Describe how to generate new x.y.z version number for distribution.
"""
helps['image builder output versioning set'] = """
type: command
short-summary: Set the image builder output versioner of an image builder template.
long-summary: Must be used with --defer.
examples:
- name: Set the image builder output versioner generating version number that will be latest based on existing version numbers.
text: |
az image builder output versioning set -n MyTemplate -g MyResourceGroup --output-name MyVhdImage --scheme Latest --defer
- name: Set the image builder output versioner generating version number that will be latest based on specified major version.
text: |
az image builder output versioning set -n MyTemplate -g MyResourceGroup --output-name MyVhdImage --scheme Latest --major 1 --defer
- name: Set the image builder output versioner generating version number based on version number of source image.
text: |
az image builder output versioning set -n MyTemplate -g MyResourceGroup --output-name MyVhdImage --scheme Source --defer
"""
helps['image builder output versioning remove'] = """
type: command
short-summary: Remove all versioning options on specified outputs.
long-summary: Must be used with --defer
examples:
- name: Remove the image builder output versioner of specified outputs.
text: |
az image builder output versioning remove -n MyTemplate -g MyResourceGroup --output-name MyVhdImage --defer
"""
helps['image builder output versioning show'] = """
type: command
short-summary: Show versioning options on specified outputs.
long-summary: Must be used with --defer
examples:
- name: Show the image builder output versioner of specified outputs.
text: |
az image builder output versioning show -n MyTemplate -g MyResourceGroup --output-name MyVhdImage --defer
"""
helps['image builder run'] = """
type: command
short-summary: Build an image builder template.
examples:
- name: Start a template build run and then wait for it to finish.
text: |
az image builder run -n mytemplate -g my-group --no-wait
az image builder wait -n mytemplate -g aibmdi \\
--custom "lastRunStatus.runState!='Running'"
az image builder show -n mytemplate -g my-group
"""
helps['image builder cancel'] = """
type: command
short-summary: Cancel the long running image build based on the image template.
examples:
- name: Cancel an image build.
text: |
az image builder cancel -n mytemplate -g my-group
"""
helps['image builder show'] = """
type: command
short-summary: Show an image builder template.
examples:
- name: Show an image builder template (autogenerated)
text: |
az image builder show --name mytemplate --resource-group my-group
crafted: true
"""
helps['image builder show-runs'] = """
type: command
short-summary: Show an image builder template's run outputs.
examples:
- name: Run a template build run and then view its run outputs.
text: |
az image builder run -n mytemplate -g my-group --no-wait
az image builder wait -n mytemplate -g aibmdi \\
--custom "lastRunStatus.runState!='Running'"
az image builder show-runs -n mytemplate -g my-group
"""
helps['image builder update'] = """
type: command
short-summary: Update an image builder template.
long-summary: >
Updating an image builder templates is currently unsupported. This command can be used in conjunction with --defer
to update an image template object within the CLI cache. Without --defer it retrieves the specified image template
from the cache and sends a request to Azure to create the image template.
examples:
- name: |
Create a template resource from a template object in the cli cache.
See "az image builder create / output add / customizer add --help" and "az cache -h" for more information
text: |
# create and write template object to local cli cache
az image builder create --image-source {image_source} -n mytemplate -g my-group \\
--scripts {script} --managed-image-destinations image_1=westus --identity myidentity --defer
# add customizers and outputs to local cache template object via az image template output / customizer add
# one can also update cache object properties through generic update options, such as: --set
az image builder output add -n mytemplate -g my-group --output-name my-win-image-managed \\
--artifact-tags "is_vhd=False" --managed-image winImage --managed-image-location eastus --defer
# send template create request to azure to create template resource
az image builder update -n mytemplate -g my-group
"""
helps['image builder wait'] = """
type: command
short-summary: Place the CLI in a waiting state until a condition of the template is met.
examples:
- name: Start a template build run and then wait for it to finish.
text: |
az image builder run -n mytemplate -g my-group --no-wait
az image builder wait -n mytemplate -g aibmdi \\
--custom "lastRunStatus.runState!='Running'"
az image builder show -n mytemplate -g my-group
"""
helps['sig image-definition create'] = """
type: command
short-summary: create a gallery image definition
examples:
- name: Create an image definition for specialized linux images
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized
- name: Create an image definition for generalized linux images
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Generalized
- name: Create an image definition for specialized windows images
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type windows --os-state Specialized
- name: Create an image definition for generalized windows images
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type windows --os-state Generalized
- name: Create an image definition with plan information
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized --plan-name PlanName \\
--plan-product PlanProduct --plan-publisher PlanPublisher
- name: Create an image definition for images that support hibernate feature
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features IsHibernateSupported=true
- name: Create an image definition for images that support accelerated networking
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features IsAcceleratedNetworkSupported=true
- name: Create an image definition for images that can only be used to create Trusted VMs. Only Trusted VMs can be created from this image.
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features SecurityType=TrustedLaunch
- name: Create an image definition for images that can be used to create Confidential VMs.
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features SecurityType=ConfidentialVmSupported
- name: Create an image definition for images that can only be used to create Confidential VMs. Only Confidential VMs can be created from this image.
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features SecurityType=ConfidentialVM
- name: Create an image definition for images that can be used to create Gen2 or TrustedLaunchSupported VMs.
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features SecurityType=TrustedLaunchSupported
- name: Create an image definition for images that can be used to create Gen2, TrustedLaunch, or Confidential VMs.
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--features SecurityType=TrustedLaunchAndConfidentialVmSupported
- name: Create an image definition and indicate end of life date
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--end-of-life-date YYYY-MM-DDTHH:MM:SS+00:00
- name: Create an image definition and recommend minimum and maximum CPU and memory (GB)
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--minimum-cpu-core myMinCPU --maximum-cpu-core myMaxCPU \\
--minimum-memory myMinMemory --maximum-memory myMaxMemory
- name: Create an image definition and indicate which OS disk types are not recommended for the image
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--disallowed-disk-types Standard_LRS
- name: Create an image definition and provide the EULA, privacy statement URI, and release notes URI
text: |
az sig image-definition create --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--publisher GreatPublisher --offer GreatOffer --sku GreatSku \\
--os-type linux --os-state Specialized \\
--eula path_to_eula --privacy-statement-uri path_to_statement \\
--release-note-uri path_to_release_notes
"""
helps['sig image-definition list-shared'] = """
type: command
short-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant
long-summary: List VM Image definitions in a gallery shared directly to your subscription or tenant
examples:
- name: List an image definition in a gallery shared directly to your subscription in the given location.
text: |
az sig image-definition list-shared --gallery-unique-name galleryUniqueName \\
--location myLocation
- name: List an image definition in a gallery shared directly to your tenant in the given location.
text: |
az sig image-definition list-shared --gallery-unique-name galleryUniqueName \\
--location myLocation --shared-to tenant
"""
helps['sig image-definition list-community'] = """
type: command
short-summary: List VM Image definitions in a gallery community
long-summary: List VM Image definitions in a gallery community
examples:
- name: List an image definition in a gallery community.
text: |
az sig image-definition list-community --public-gallery-name publicGalleryName \\
--location myLocation
"""
helps['sig image-version create'] = """
type: command
short-summary: create a new image version
long-summary: this operation might take a long time depending on the replicate region number. Use "--no-wait" is advised.
examples:
- name: Add a new image version from a virtual machine
text: |
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
- name: Add a new image version from a managed image
text: |
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
- name: Add a new image version from another image version
text: |
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
- name: Add a new image version from a managed disk
text: |
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
- name: Add a new image version from a managed disk and add additional data disks
text: |
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
- name: Add a new image version from a snapshot of an OS disk.
text: |
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
- name: Add a new image version from a snapshot of an OS disk and add additional snapshots as data disks
text: |
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
- name: Add a new image version from a VHD of an OS disk.
text: |
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
- name: Add a new image version from a VHD of an OS disk and add additional VHDs as data disks
text: |
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
- name: 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.
text: |
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
- name: 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.
text: |
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
- name: 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.
text: |
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
- name: Add a new image version and copy it to extended locations.
text: |
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
- name: Add a new image version and copy it to extended locations with encryption using a disk encryption set.
text: |
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
- name: 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
text: |
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
- name: Add a new image version but remove it from consideration as latest version in its image definition
text: |
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
- name: 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.
text: |
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
"""
helps['sig image-version list-shared'] = """
type: command
short-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant
long-summary: List VM Image Versions in a gallery shared directly to your subscription or tenant
examples:
- name: List image versions in a gallery shared directly to your subscription in the given location and image definition.
text: |
az sig image-version list-shared --gallery-unique-name galleryUniqueName \\
--gallery-image-definition MyImage --location myLocation
- name: List image versions in a gallery shared directly to your tenant in the given location and image definition.
text: |
az sig image-version list-shared --gallery-unique-name galleryUniqueName \\
--gallery-image-definition MyImage --location myLocation --shared-to tenant
"""
helps['sig image-version update'] = """
type: command
short-summary: update a share image version
examples:
- name: Change the replication regions and replica count
text: |
az sig image-version update --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--gallery-image-version 1.0.0 \\
--target-regions westcentralus=2 eastus2
- name: Change the replication extended locations
text: |
az sig image-version update --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--gallery-image-version 1.0.0 \\
--target-edge-zones westus=microsoftlosangeles1 eastus=microsoftlosangeles2=1
- name: Clear the replication extended locations
text: |
az sig image-version update --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--gallery-image-version 1.0.0 \\
--target-edge-zones None
- name: Replicate to an additional region. Optional, you can set the replica count for the region and exclude this image when using the latest version of the image definition.
text: |
az sig image-version update --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--gallery-image-version 1.0.0 \\
--add publishingProfile.targetRegions name=westcentralus \\
regionalReplicaCount=3 excludeFromLatest=true
- name: Change whether an image should be included in consideration for latest version in the image definition. Setting this value to true excludes the image from consideration and setting this value to false includes the image for consideration.
text: |
az sig image-version update -g MyResourceGroup --gallery-name MyGallery \\
--gallery-image-definition MyImage --gallery-image-version 1.0.0 \\
--set publishingProfile.excludeFromLatest=true
- name: Change the end of life date for an image version. The image can still be used to create virtual machines after the end of life date.
text: |
az sig image-version update -g MyResourceGroup --gallery-name MyGallery \\
--gallery-image-definition MyImage --gallery-image-version 1.0.0 \\