-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az vm create gives warning about default size changing even when a size is specified #31765
Copy link
Copy link
Open
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-AssignAuto assign by botAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamComputeaz vm/vmss/image/disk/snapshotaz vm/vmss/image/disk/snapshotact-observability-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
When creating a VM, you always receive a warning that the default size is going to change, even when you specified a value for
--size. Since that change will only affect VMs created with the default size, that warning in this case is just noise.Related command
az vm create [...] --size Standard_E2as_v5Errors
The default value of '--size' will be changed to 'Standard_D2s_v5' from 'Standard_DS1_v2' in a future release.Issue script & Debug output
N/A
Expected behavior
I expect the warning to only be shown when running
az vm createwithout specifying a value for--size.Environment Summary
Cloud Shell bash
Additional context
Although this happens to be from a
vmcommand this time, it looks like this should actually be fixed in core: https://github.com/Azure/azure-cli/blob/bb2b31a832033e1b6e1343cc49b8ec023cd537fb/src/azure-cli-core/azure/cli/core/breaking_change.py