Azure / Azure/azure-cli

az vm repair create needs option to deploy repair VM without public IP silently

Open
#29,442 4 comments 0 reactions 2 assignees Claimed by @zhoxing-ms View on GitHub
act-observability-squad Auto-Assign Compute customer-reported feature-request Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
az vm repair create

**Is your feature request related to a problem? Please describe.**
When trying to create a repair Virtual Machine using az vm repair create, the user is prompted with "Does repair vm requires public ip? (y/n)". This manual intervention makes scripting this difficult. The two parameters "--associate-public-ip" and "--yes" appear to do the same thing, bypass the prompt and deploy a VM with a Public IP. There should be a parameter that would create the repair VM without a public IP so that the user doesn't get prompted for manual input, allowing for more functionality when scripting the command. Without the manual intervention, the output of the command could be stored in a variable.

**Describe the solution you'd like**
A good solution would be if you could run something like this:

az vm repair create -g MyResourceGroup -n MyVMName --associate-public-ip false

Currently that command would throw the following error: "unrecognized arguments: false"

**Describe alternatives you've considered**
After looking through documentation it doesn't look like there is an equivalent command in the AZ PowerShell Module.

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.