az vm create gives warning about default public IP SKU changing even when no public IP is being created #26516
Labels
Auto-Assign
Auto assign by bot
Azure CLI Team
The command of the issue is owned by Azure CLI team
Compute
az vm/vmss/image/disk/snapshot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
feature-request
Milestone
Related command
az vm create
Describe the bug
When creating a VM without a public IP address, you get this irrelevant warning:
Since that change won't affect VMs created with no public IP address, that warning in this case is just noise.
To Reproduce
az vm create [...] --public-ip-address ""
Expected behavior
Since no public IP address is being created, there should be no message saying the type of public IP address that is being created is going to change.
Environment summary
Cloud Shell bash
Additional context
This warning comes from here:
azure-cli/src/azure-cli/azure/cli/command_modules/vm/custom.py
Lines 913 to 920 in 5352ca8
The text was updated successfully, but these errors were encountered: