Skip to content

[ARO] az aro create: Fix default worker-vm-size if not provided#33508

Open
komidore64 wants to merge 1 commit into
Azure:devfrom
komidore64:aro-26138-worker-vm-size
Open

[ARO] az aro create: Fix default worker-vm-size if not provided#33508
komidore64 wants to merge 1 commit into
Azure:devfrom
komidore64:aro-26138-worker-vm-size

Conversation

@komidore64

Copy link
Copy Markdown

Related command

az aro create \
    -n <name> -g <group> \
    --vnet <vnet> --master-subnet <master-subnet> --worker-subnet <worker-subnet>

Description

If --worker-vm-size is not provided to az aro create a default value should be set.

Testing Guide

Create an ARO cluster without passing --worker-vm-size flag. It should create the cluster without returning an error for empty worker VM size.

History Notes

Worker VM size is intended to provide a fallback default.


This checklist is used to make sure that common guidelines for a pull request are followed.

Copilot AI review requested due to automatic review settings June 8, 2026 18:11
@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Azure CLI Full Test Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd

Copy link
Copy Markdown
Validation for Breaking Change Starting...

Thanks for your contribution!

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Updates the default worker VM size behavior for ARO create and adjusts the CLI parameter help text accordingly.

Changes:

  • Sets a default value for worker_vm_size in aro_create.
  • Removes the explicit default mention from the --worker-vm-size help text.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/azure-cli/azure/cli/command_modules/aro/custom.py Changes aro_create default for worker_vm_size to Standard_D4s_v5.
src/azure-cli/azure/cli/command_modules/aro/_params.py Updates CLI help text for worker_vm_size by removing the default note.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

master_vm_size=None,
worker_encryption_at_host=False,
worker_vm_size=None,
worker_vm_size="Standard_D4s_v5",
help='Encryption at host flag for worker VMs. [Default: false]')
c.argument('worker_vm_size',
help='Size of worker VMs. [Default: Standard_D4s_v5]')
help='Size of worker VMs.')

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CLI help detects the keyword argument default and displays it as part of the flag's help text.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Jun 8, 2026
@microsoft-github-policy-service

Copy link
Copy Markdown
Contributor

Thank you for your contribution @komidore64! We will review the pull request and get back to you soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

act-codegen-extensibility-squad ARO az aro (Azure Redhat OpenShift) Auto-Assign Auto assign by bot customer-reported Issues that are reported by GitHub users external to the Azure organization.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants