Skip to content

Commit

Permalink
{Compute} az sig image-definition: Migrate commands using Code Gen …
Browse files Browse the repository at this point in the history
…V2 (#30576)
  • Loading branch information
yanzhudd authored Dec 26, 2024
1 parent 67ac6bc commit ff7d0fd
Show file tree
Hide file tree
Showing 20 changed files with 5,224 additions and 2,049 deletions.
18 changes: 0 additions & 18 deletions src/azure-cli/azure/cli/command_modules/vm/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,24 +843,6 @@
--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 list-community'] = """
type: command
short-summary: List VM Image definitions in a gallery community
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 ff7d0fd

Please sign in to comment.