-
Notifications
You must be signed in to change notification settings - Fork 3.5k
[Compute] az image builder: Add subgroups and parameters to manage trigger, output versioning options
#26261
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 7 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
af1f16a
'image builder optimizer' group
yanzhudd 641e31e
recording tests
yanzhudd 776b833
add 'az image builder output versioning' group and --vhd-uri paramete…
yanzhudd 87f9878
Merge branch 'dev' of https://github.com/Azure/azure-cli into image_b…
yanzhudd 3be6459
add trigger group, tmp
yanzhudd 1bbf1d8
recording test for 'az image builder trigger' group
yanzhudd 3ca4586
fix style check
yanzhudd dfe358a
update some details
yanzhudd fea886a
update details
yanzhudd 530fac0
remove 'az image builder optimizer' group from PR
yanzhudd File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -474,6 +474,51 @@ | |||||||||||||||||
| 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 --type vmBoot --state Enabled --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 --type vmBoot --defer | ||||||||||||||||||
| """ | ||||||||||||||||||
|
|
||||||||||||||||||
| helps['image builder optimizer clear'] = """ | ||||||||||||||||||
| type: command | ||||||||||||||||||
| short-summary: Remove all optimizers from an existing image builder template. | ||||||||||||||||||
| long-summary: Must be used with --defer | ||||||||||||||||||
| examples: | ||||||||||||||||||
| - name: Remove all optimizers from an existing image builder template. | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Just a small suggestion. The help message of |
||||||||||||||||||
| text: | | ||||||||||||||||||
| az image builder optimizer clear -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 identity'] = """ | ||||||||||||||||||
| type: group | ||||||||||||||||||
| short-summary: Manage identities of an image builder template. | ||||||||||||||||||
|
|
@@ -553,6 +598,10 @@ | |||||||||||||||||
| 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'] = """ | ||||||||||||||||||
|
|
@@ -567,6 +616,51 @@ | |||||||||||||||||
| 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. | ||||||||||||||||||
|
|
||||||||||||||||||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.