Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
384 stars 1.25k forks source link

Feature request for az vm repair: Optionally Specify OS of Rescue VM #2975

Open rjmccallumbigl opened 3 years ago

rjmccallumbigl commented 3 years ago

Extension name (the extension in question)

Repair

Description of issue (in as much detail as possible)

I recently helped someone use az vm repair to help create a rescue vm for their source VM, an appliance running custom Linux. Since it was detected as a Linux VM, the repair VM was an Ubuntu box, which is specified per the documentation. However, the user needed the Rescue VM to be a Windows Server 2016+ with Hyper-V functionality in order to correct his particular issue, so we had to delete this rescue VM and manually create a WS2016 rescue VM. Thus, I propose an optional switch that gives the option for your Repair VM to be either Windows or Linux. By default it could be how it is currently (Windows Server repair VM for Windows source VMs, Ubuntu repair VMs for Linux source VMs), but if the switch is enabled, we can either

  1. Specify if we want "Windows" or "Linux"
  2. Maybe specify the exact Marketplace image we'd like our Rescue VM to be (I can imagine this being more of a headache to implement)

Thank you for your consideration!


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

yungezz commented 3 years ago

route to appropriate team.