Azure / Azure/azure-cli

Add a confirm option to CLI vm create commands which cause downtime

Open
#10,704 4 comments 2 reactions 1 assignee Claimed by @qwordy View on GitHub
act-observability-squad Compute - VM feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Reference: Feature 4947992: [Linux E2E] Add a confirm option to CLI vm create commands which cause downtime

**Description:**
"If you az vm create with a size, say DS1_v3, and then repeat that same command with DS2_v3 or another size, it changes the VM size. (I was trying to create many instances and forgot to change the -n parameter)

It might be by design, but I wonder if we should warn customers and ask them to add a --yes or something, since it implies downtime. We get that info notice in the portal, not sure if CLI should emit some form of warning.

The RP probably can't do anything unless the "create or update" functionality is split in destructive vs. non-destructive updates. In EC2, there's a "modify instance attribute" method and the VM size can only be changed with a stopped VM."

We already have “az vm resize” so adding some kind of update parameter to destructive creates would make sense.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.