Azure / Azure/azure-cli

az vm repair create requires command line option to disable/skip public IP

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

Description

### Describe the bug

The `az vm repair create` command isn't suited for large-scale automation in organizations prohibited from using public IPs. As most enterprises don’t permit the use of public IPs on VMs, running this command automatically is a challenge since it defaults to creating a public IP. The option to turn off the public IP is available only through an interactive prompt, which hampers automation as it pauses the process awaiting manual input. There is no option to pass a parameter to disable/skip public IP.

https://learn.microsoft.com/en-us/cli/azure/vm/repair?view=azure-cli-latest#az-vm-repair-create

### Related command

az vm repair create -g MyResourceGroup -n myVM

### Errors

There is no option to pass a parameter to disable/skip public IP

### Issue script & Debug output

There is no option to pass a parameter to disable/skip public IP

### Expected behavior

Introduce better option. Maybe instead --yes should be like --skipPublicIp = yes | no

### Environment Summary

azure-cli 2.62.0

core 2.62.0
telemetry 1.1.0

Extensions:
ai-examples 0.2.5
ml 2.28.0
ssh 2.0.4
vm-repair 1.0.7

Dependencies:
msal 1.28.1
azure-mgmt-resource 23.1.1

Python location '/usr/bin/python3.9'
Extensions directory '/home/system/.azure/cliextensions'
Extensions system directory '/usr/lib/python3.9/site-packages/azure-cli-extensions'

Python (Linux) 3.9.19 (main, Mar 28 2024, 18:56:59)
[GCC 11.2.0]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

### Additional context

_No response_

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.