Skip to content

Commit ff7d0fd

Browse files
authored
{Compute} az sig image-definition: Migrate commands using Code Gen V2 (#30576)
1 parent 67ac6bc commit ff7d0fd

File tree

20 files changed

+5224
-2049
lines changed

20 files changed

+5224
-2049
lines changed

src/azure-cli/azure/cli/command_modules/vm/_help.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -843,24 +843,6 @@
843843
--location myLocation --shared-to tenant
844844
"""
845845

846-
helps['sig image-definition update'] = """
847-
type: command
848-
short-summary: Update a VM Image definition.
849-
examples:
850-
- name: Change the shared image definition's recommended configuration
851-
text: |-
852-
az sig image-definition update --resource-group MyResourceGroup \\
853-
--gallery-name MyGallery --gallery-image-definition MyImage \\
854-
--resource-group MyResourceGroup --set recommended.vCpUs.min=myNewvCpUsMin \\
855-
recommended.vCpUs.max=myNewvCpUsMax recommended.memory.min=myNewMemoryMin \\
856-
recommended.memory.max=myNewMemoryMax description="newDescription"
857-
- name: Remove a shared image definition's configuration property
858-
text: |-
859-
az sig image-definition update --resource-group MyResourceGroup \\
860-
--gallery-name MyGallery --gallery-image-definition MyImage \\
861-
--resource-group MyResourceGroup --remove recommended.vCpUs.min
862-
"""
863-
864846
helps['sig image-definition list-community'] = """
865847
type: command
866848
short-summary: List VM Image definitions in a gallery community

src/azure-cli/azure/cli/command_modules/vm/aaz/latest/sig/image_definition/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
# flake8: noqa
1010

1111
from .__cmd_group import *
12+
from ._create import *
1213
from ._delete import *
1314
from ._list import *
1415
from ._show import *
16+
from ._show_community import *
1517
from ._show_shared import *
18+
from ._update import *
1619
from ._wait import *

0 commit comments

Comments
 (0)