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

--nic-delete-option Not Working #19599

Closed
gamullen opened this issue Sep 17, 2021 · 1 comment · Fixed by #19861
Closed

--nic-delete-option Not Working #19599

gamullen opened this issue Sep 17, 2021 · 1 comment · Fixed by #19861
Assignees
Labels
Compute az vm/vmss/image/disk/snapshot Ignite-2021-Nov

Comments

@gamullen
Copy link
Member

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

Describe the bug
We can’t get the option “—nic-delete-option” to work. Have tried several things:
• --nic-delete-option Delete
• --nic-delete-option 0=Delete
• etc.

To Reproduce
The command I’m running from a cloud shell is: $ az vm create --nic-delete-option 0=Delete --resource-group DeleteMe --name vmNicDelete --image UbuntuLTS

The error is always: {"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"InvalidJson","message":"Unexpected token StartArray when parsing enum. Path 'properties.deleteOption', line 1, position 424."}]}

Expected behavior

Environment summary

Additional context

@ghost ghost added the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Sep 17, 2021
@yonzhan yonzhan added the Compute az vm/vmss/image/disk/snapshot label Sep 17, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Sep 17, 2021
@yonzhan yonzhan added this to the Oct 2021 (2021-11-02) milestone Sep 17, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Sep 17, 2021

Compute

@yonzhan yonzhan assigned calvinhzy and unassigned zhoxing-ms Oct 11, 2021
zhoxing-ms pushed a commit that referenced this issue Oct 18, 2021
…e-option` not working when no `--nics` is provided. (#19861)

* nic-delete-option is a list by default, also add InvalidArgumentValueError when specifying individual delete option and nics are not provided

* move validator to separate function, fix lint

* lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compute az vm/vmss/image/disk/snapshot Ignite-2021-Nov
Projects
None yet
5 participants