Skip to content

Commit be53f20

Browse files
committed
migrate
1 parent 9de7b98 commit be53f20

File tree

13 files changed

+1471
-610
lines changed

13 files changed

+1471
-610
lines changed

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

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -2960,11 +2960,6 @@
29602960
crafted: true
29612961
"""
29622962

2963-
helps['capacity reservation'] = """
2964-
type: group
2965-
short-summary: Manage capacity.
2966-
"""
2967-
29682963
helps['capacity reservation group create'] = """
29692964
type: command
29702965
short-summary: Create capacity reservation group.
@@ -2995,56 +2990,6 @@
29952990
text: az capacity reservation group show -n ReservationGroupName -g MyResourceGroup --instance-view
29962991
"""
29972992

2998-
2999-
helps['capacity reservation create'] = """
3000-
type: command
3001-
short-summary: Create capacity reservation.
3002-
examples:
3003-
- name: Create a capacity reservation.
3004-
text: |
3005-
az capacity reservation create -c ReservationGroupName -n ReservationName \\
3006-
-g MyResourceGroup --sku Standard_A0
3007-
- name: Create a capacity reservation with specific capacity and zones.
3008-
text: |
3009-
az capacity reservation create -c ReservationGroupName -n ReservationName -l centraluseuap \\
3010-
-g MyResourceGroup --sku Standard_A1_v2 --capacity 5 \\
3011-
--zone 1 --tags key=val
3012-
"""
3013-
3014-
helps['capacity reservation update'] = """
3015-
type: command
3016-
short-summary: Update capacity reservation.
3017-
examples:
3018-
- name: Update a capacity reservation.
3019-
text: |
3020-
az capacity reservation update -c ReservationGroupName -n ReservationName \\
3021-
-g MyResourceGroup --capacity 5 --tags key=val
3022-
"""
3023-
3024-
helps['capacity reservation show'] = """
3025-
type: command
3026-
short-summary: Show capacity reservation.
3027-
examples:
3028-
- name: Get a capacity reservation.
3029-
text: az capacity reservation show -c ReservationGroupName -n ReservationName -g MyResourceGroup
3030-
- name: Get a capacity reservation containing the instance views.
3031-
text: |
3032-
az capacity reservation show -c ReservationGroupName -n ReservationName \\
3033-
-g MyResourceGroup --instance-view
3034-
"""
3035-
3036-
helps['capacity reservation show'] = """
3037-
type: command
3038-
short-summary: Show capacity reservation.
3039-
examples:
3040-
- name: Get a capacity reservation.
3041-
text: az capacity reservation show -c ReservationGroupName -n ReservationName -g MyResourceGroup
3042-
- name: Get a capacity reservation containing the instance views.
3043-
text: |
3044-
az capacity reservation show -c ReservationGroupName -n ReservationName \\
3045-
-g MyResourceGroup --instance-view
3046-
"""
3047-
30482993
helps['restore-point'] = """
30492994
type: group
30502995
short-summary: Manage restore point with res

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

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,21 +1477,21 @@ def load_arguments(self, _):
14771477
with self.argument_context('capacity reservation group show') as c:
14781478
c.argument('instance_view', action='store_true', options_list=['--instance-view', '-i'], help='Retrieve the list of instance views of the capacity reservations under the capacity reservation group which is a snapshot of the runtime properties of a capacity reservation that is managed by the platform and can change outside of control plane operations.')
14791479

1480-
with self.argument_context('capacity reservation') as c:
1481-
c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group)
1482-
c.argument('capacity_reservation_group_name', options_list=['--capacity-reservation-group', '-c'],
1483-
help='The name of the capacity reservation group.')
1484-
c.argument('capacity_reservation_name', options_list=['--capacity-reservation-name', '-n'],
1485-
help='The name of the capacity reservation.')
1486-
c.argument('capacity', type=int, help='Specify the number of virtual machines in the scale set.')
1487-
c.argument('tags', tags_type)
1488-
1489-
with self.argument_context('capacity reservation create') as c:
1490-
c.argument('zone', zone_type, help='Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone.')
1491-
c.argument('sku_name', options_list=['--sku', '-s'], required=True, help='The SKU of the resource for which capacity needs be reserved. Currently VM Skus with the capability called "CapacityReservationSupported" set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://learn.microsoft.com/rest/api/compute/resourceskus/list) for supported values.')
1492-
1493-
with self.argument_context('capacity reservation show') as c:
1494-
c.argument('instance_view', action='store_true', options_list=['--instance-view', '-i'], help='Retrieve a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.')
1480+
# with self.argument_context('capacity reservation') as c:
1481+
# c.argument('location', arg_type=get_location_type(self.cli_ctx), validator=get_default_location_from_resource_group)
1482+
# c.argument('capacity_reservation_group_name', options_list=['--capacity-reservation-group', '-c'],
1483+
# help='The name of the capacity reservation group.')
1484+
# c.argument('capacity_reservation_name', options_list=['--capacity-reservation-name', '-n'],
1485+
# help='The name of the capacity reservation.')
1486+
# c.argument('capacity', type=int, help='Specify the number of virtual machines in the scale set.')
1487+
# c.argument('tags', tags_type)
1488+
#
1489+
# with self.argument_context('capacity reservation create') as c:
1490+
# c.argument('zone', zone_type, help='Availability Zone to use for this capacity reservation. The zone has to be single value and also should be part for the list of zones specified during the capacity reservation group creation. If not provided, the reservation supports only non-zonal deployments. If provided, enforces VM/VMSS using this capacity reservation to be in same zone.')
1491+
# c.argument('sku_name', options_list=['--sku', '-s'], required=True, help='The SKU of the resource for which capacity needs be reserved. Currently VM Skus with the capability called "CapacityReservationSupported" set to true are supported. Refer to List Microsoft.Compute SKUs in a region (https://learn.microsoft.com/rest/api/compute/resourceskus/list) for supported values.')
1492+
#
1493+
# with self.argument_context('capacity reservation show') as c:
1494+
# c.argument('instance_view', action='store_true', options_list=['--instance-view', '-i'], help='Retrieve a snapshot of the runtime properties of the capacity reservation that is managed by the platform and can change outside of control plane operations.')
14951495
# endRegion
14961496

14971497
# region Restore point

src/azure-cli/azure/cli/command_modules/vm/aaz/latest/capacity/reservation/__init__.py

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

1111
from .__cmd_group import *
12+
from ._create import *
1213
from ._delete import *
1314
from ._list import *
15+
from ._show import *
16+
from ._update import *
17+
from ._wait import *

0 commit comments

Comments
 (0)