Open jbinko opened 1 month ago
Thank you for opening this issue, we will look into it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT, @ramankumarlive, @ushnaarshadkhan.
@jbinko Identical to #29422. We are currently looking at adding this feature to the request.
Great, it appears that the PR has been created meanwhile. Looking forward for release.
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