Skip to content

Commit

Permalink
migrate commands
Browse files Browse the repository at this point in the history
  • Loading branch information
yanzhudd committed Dec 25, 2024
1 parent 658d77b commit eaca3d5
Show file tree
Hide file tree
Showing 20 changed files with 5,251 additions and 2,058 deletions.
54 changes: 27 additions & 27 deletions src/azure-cli/azure/cli/command_modules/vm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,23 +843,23 @@
--location myLocation --shared-to tenant
"""

helps['sig image-definition update'] = """
type: command
short-summary: Update a VM Image definition.
examples:
- name: Change the shared image definition's recommended configuration
text: |-
az sig image-definition update --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--resource-group MyResourceGroup --set recommended.vCpUs.min=myNewvCpUsMin \\
recommended.vCpUs.max=myNewvCpUsMax recommended.memory.min=myNewMemoryMin \\
recommended.memory.max=myNewMemoryMax description="newDescription"
- name: Remove a shared image definition's configuration property
text: |-
az sig image-definition update --resource-group MyResourceGroup \\
--gallery-name MyGallery --gallery-image-definition MyImage \\
--resource-group MyResourceGroup --remove recommended.vCpUs.min
"""
# helps['sig image-definition update'] = """
# type: command
# short-summary: Update a VM Image definition.
# examples:
# - name: Change the shared image definition's recommended configuration
# text: |-
# az sig image-definition update --resource-group MyResourceGroup \\
# --gallery-name MyGallery --gallery-image-definition MyImage \\
# --resource-group MyResourceGroup --set recommended.vCpUs.min=myNewvCpUsMin \\
# recommended.vCpUs.max=myNewvCpUsMax recommended.memory.min=myNewMemoryMin \\
# recommended.memory.max=myNewMemoryMax description="newDescription"
# - name: Remove a shared image definition's configuration property
# text: |-
# az sig image-definition update --resource-group MyResourceGroup \\
# --gallery-name MyGallery --gallery-image-definition MyImage \\
# --resource-group MyResourceGroup --remove recommended.vCpUs.min
# """

helps['sig image-definition list-community'] = """
type: command
Expand Down Expand Up @@ -1079,16 +1079,16 @@
--gallery-image-version 1.1.1
"""

helps['sig image-version list-community'] = """
type: command
short-summary: List VM Image Versions in a gallery community
long-summary: List VM Image Versions in a gallery community
examples:
- name: List an image versions in a gallery community.
text: |
az sig image-version list-community --public-gallery-name publicGalleryName \\
--gallery-image-definition MyImage --location myLocation
"""
# helps['sig image-version list-community'] = """
# type: command
# short-summary: List VM Image Versions in a gallery community
# long-summary: List VM Image Versions in a gallery community
# examples:
# - name: List an image versions in a gallery community.
# text: |
# az sig image-version list-community --public-gallery-name publicGalleryName \\
# --gallery-image-definition MyImage --location myLocation
# """

helps['sig image-version wait'] = """
type: command
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
# flake8: noqa

from .__cmd_group import *
from ._create import *
from ._delete import *
from ._list import *
from ._show import *
from ._show_community import *
from ._show_shared import *
from ._update import *
from ._wait import *
Loading

0 comments on commit eaca3d5

Please sign in to comment.