From cc5e20c758996670ae91fa7d8588db4b42e628b8 Mon Sep 17 00:00:00 2001 From: Sai Saravanan Jawahar Date: Tue, 23 Dec 2025 17:23:46 -0800 Subject: [PATCH] [Compute] az create vm: Remove preview flag for CapacityReservationGroup parameters Related commands vm create; vm update; vmss create; vmss update Description The capacity reservation group has been a GA-ed feature for a while. A customer noticed the preview feature warning when using the CLI and reported it. The flag must have been missed from being cleaned up during the GA preparation for Capacity reservation feature. --- src/azure-cli/azure/cli/command_modules/vm/_params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/azure-cli/azure/cli/command_modules/vm/_params.py b/src/azure-cli/azure/cli/command_modules/vm/_params.py index 7215333c649..4bb2d093a25 100644 --- a/src/azure-cli/azure/cli/command_modules/vm/_params.py +++ b/src/azure-cli/azure/cli/command_modules/vm/_params.py @@ -1259,7 +1259,7 @@ def load_arguments(self, _): help='The maximum price (in US Dollars) you are willing to pay for a Spot VM/VMSS. -1 indicates that the Spot VM/VMSS should not be evicted for price reasons') c.argument('capacity_reservation_group', options_list=['--capacity-reservation-group', '--crg'], help='The ID or name of the capacity reservation group that is used to allocate. Pass in "None" to disassociate the capacity reservation group. Please note that if you want to delete a VM/VMSS that has been associated with capacity reservation group, you need to disassociate the capacity reservation group first.', - min_api='2021-04-01', is_preview=True) + min_api='2021-04-01') c.argument('v_cpus_available', type=int, min_api='2021-11-01', help='Specify the number of vCPUs available') c.argument('v_cpus_per_core', type=int, min_api='2021-11-01', help='Specify the ratio of vCPU to physical core. Setting this property to 1 also means that hyper-threading is disabled.') c.argument('disk_controller_type', disk_controller_type)