Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az vm create gives warning about default public IP SKU changing even when no public IP is being created #26516

Closed
josephcsible opened this issue May 24, 2023 · 1 comment · Fixed by #26517
Assignees
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

Comments

@josephcsible
Copy link

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Related command
az vm create

Describe the bug
When creating a VM without a public IP address, you get this irrelevant warning:

It is recommended to use parameter "--public-ip-sku Standard" to create new VM with Standard public IP. Please note that the default public IP used for VM creation will be changed from Basic to Standard in the future.

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:

# In the latest profile, the default public IP will be expected to be changed from Basic to Standard.
# In order to avoid breaking change which has a big impact to users,
# we use the hint to guide users to use Standard public IP to create VM in the first stage.
if public_ip_sku is None and cmd.cli_ctx.cloud.profile == 'latest':
logger.warning(
'It is recommended to use parameter "--public-ip-sku Standard" to create new VM with Standard public IP. '
'Please note that the default public IP used for VM creation will be changed from Basic to Standard '
'in the future.')

@ghost ghost added customer-reported Issues that are reported by GitHub users external to the Azure organization. Compute az vm/vmss/image/disk/snapshot labels May 24, 2023
@ghost ghost added this to the Backlog milestone May 24, 2023
@ghost ghost assigned zhoxing-ms May 24, 2023
@yonzhan
Copy link
Collaborator

yonzhan commented May 24, 2023

Thank you for opening this issue, we will look into it.

@ghost ghost added Auto-Assign Auto assign by bot Azure CLI Team The command of the issue is owned by Azure CLI team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels May 24, 2023
@yonzhan yonzhan added feature-request and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Jun 19, 2023
zhoxing-ms added a commit that referenced this issue Jun 27, 2023
…ven when no public IP is being created (#26517)
avgale pushed a commit to avgale/azure-cli that referenced this issue Aug 24, 2023
… IP even when no public IP is being created (Azure#26517)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
4 participants