Skip to content

Commit b0d36d2

Browse files
authored
[Batch] upgrade azure batch API version to 2024-02-01 (#28784)
1 parent 9f769d0 commit b0d36d2

26 files changed

+2849
-2290
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,14 @@ def load_arguments(self, _):
281281
arg_type=get_enum_type(NodeCommunicationMode))
282282
c.extra('enable_accelerated_networking', arg_type=get_three_state_flag(), options_list=['--accelerated-networking'], arg_group="Pool: Network Configuration",
283283
help='Whether this pool should enable accelerated networking. Accelerated networking enables single root I/O virtualization (SR-IOV) to a VM, which may lead to improved networking performance. For more details, see: https://learn.microsoft.com/azure/virtual- network/accelerated-networking-overview. Set true to enable.')
284+
c.argument('mode', options_list=['--upgrade-policy-mode'], help='The mode of the pool OS upgrade.')
285+
c.argument('disable_automatic_rollback', options_list=['--disable-auto-rollback'], arg_type=get_three_state_flag())
286+
c.argument('enable_automatic_os_upgrade', options_list=['--enable-auto-os-upgrade'], arg_type=get_three_state_flag())
287+
c.argument('os_rolling_upgrade_deferral', options_list=['--defer-os-rolling-upgrade'], arg_type=get_three_state_flag())
288+
c.argument('use_rolling_upgrade_policy', arg_type=get_three_state_flag())
289+
c.argument('enable_cross_zone_upgrade', arg_type=get_three_state_flag())
290+
c.argument('prioritize_unhealthy_instances', arg_type=get_three_state_flag())
291+
c.argument('rollback_failed_instances_on_policy_breach', arg_type=get_three_state_flag())
284292

285293
with self.argument_context('batch pool set') as c:
286294
c.argument('target_node_communication_mode', options_list=['--target-communication'],
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
# exclusions for the batch module
3+
4+
batch pool create:
5+
parameters:
6+
enable_cross_zone_upgrade:
7+
rule_exclusions:
8+
- option_length_too_long
9+
max_batch_instance_percent:
10+
rule_exclusions:
11+
- option_length_too_long
12+
max_unhealthy_instance_percent:
13+
rule_exclusions:
14+
- option_length_too_long
15+
max_unhealthy_upgraded_instance_percent:
16+
rule_exclusions:
17+
- option_length_too_long
18+
os_rolling_upgrade_deferral:
19+
rule_exclusions:
20+
- option_length_too_long
21+
pause_time_between_batches:
22+
rule_exclusions:
23+
- option_length_too_long
24+
prioritize_unhealthy_instances:
25+
rule_exclusions:
26+
- option_length_too_long
27+
rollback_failed_instances_on_policy_breach:
28+
rule_exclusions:
29+
- option_length_too_long
30+
use_rolling_upgrade_policy:
31+
rule_exclusions:
32+
- option_length_too_long

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_application_cmd.yaml

Lines changed: 201 additions & 201 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_byos_account_cmd.yaml

Lines changed: 127 additions & 259 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_certificate_cmd.yaml

Lines changed: 64 additions & 64 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_general_arm_cmd.yaml

Lines changed: 325 additions & 148 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_job_list_cmd.yaml

Lines changed: 92 additions & 80 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_jobs_and_tasks.yaml

Lines changed: 120 additions & 104 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_managed_identity_cmd.yaml

Lines changed: 139 additions & 139 deletions
Large diffs are not rendered by default.

src/azure-cli/azure/cli/command_modules/batch/tests/latest/recordings/test_batch_network_profile_cmd.yaml

Lines changed: 51 additions & 51 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)