Organize and archive known repair scripts to enable anyone to easily fix their machines. The scripts are made primarily to repair VMs on the cloud.
Перейти к файлу
malachma e6d02f2473 fix nolvm case 2020-09-14 11:42:09 +02:00
doc Add new_script doc 2019-08-26 14:54:48 -07:00
src fix nolvm case 2020-09-14 11:42:09 +02:00
tests Add skeleton file structure 2019-07-01 17:41:45 -07:00
.gitignore added back gitignore 2020-06-26 18:15:34 +02:00
LICENSE Initial commit 2019-06-04 15:45:03 -07:00
README.md Fix issue in README.md 2020-08-03 09:52:40 -07:00
map.json extended the docu for linux-alar-fki with a link to the documentation 2020-06-26 18:41:52 +02:00

README.md

Repair Script Library

The Repair Script Library organizes and archives known Windows and Linux repair scripts to automate frequent fix scenarios. Each repair script has a unique ID mapped on map.json

Run Scripts on Azure VM via Azure CLI

  1. Open Azure Cloud Shell (Or install Azure CLI manually)

  1. Install the vm-repair extension
az extension add -n vm-repair
  1. Run a script using its unique ID mapped on map.json
az vm repair run -g MyResourceGroup -n MyVM --run-id win-hello-world --verbose

When the VM is not bootable

  1. Create a repair VM to host the fix for a source VM's OS disk
az vm repair create -g MyResourceGroup -n MySourceVM --verbose
  1. Run a script on the repair VM to fix the attached source VM's OS disk (Don't forget the --run-on-repair parameter)
az vm repair run -g MyResourceGroup -n MyVM --run-id win-hello-world --run-on-repair --verbose
  1. Restore the fixed OS disk onto the source VM
az vm repair restore -g MyResourceGroup -n MySourceVM --verbose

Documentations

az vm repair -h
az vm repair <command> -h

Contributing

Adding new scripts: https://github.com/Azure/repair-script-library/blob/master/doc/adding_new_scripts.md

Contact: caiddev@microsoft.com

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.