* Adding code for unlock and added encryptformatall
* removing temp files
* Changes to logging and logic
* Fixing code for data disk detection on RedHat
* Create function for _invoke_run_command
* add NF for finding the data disk with awk
* Adding error traps to allow stderr to be printed
* Added function for validating tag if secret is changed
* Tidy code
Co-authored-by: Ubuntu <ceschi@ubuntudevrepair.mygpwaslj2re3c1zv23vyhla2c.bx.internal.cloudapp.net>
Co-authored-by: Francisco Franceschi <jofrance@microsoft.com>
Co-authored-by: root <root@ubuntu18dev1.vdtdwq5rkvyuhaj2iq0ntqetub.syx.internal.cloudapp.net>
* changes for encrypted VMs
* scripts/script.sh
* changes to repair.util on encryption function and added option for without KEK as well
* Did code changes to detect dual,single(with KEK and without KEK)
* code style changes
* code style changes
* pushing to the newly created branch
* changes to printing message while interacting with user
* changes to unlock script
* pushed validated part to _validators.py file and pushed few login from custom to utils file
* cleaned up the code by removing commented lines
* Made changes to _validators file and added unlock-encryption parameter
* modified exception block to ignore failed to encrypt data volume error
* reduced the line of code for installing encryption extension and unocking ecnrypted disk, used propmt_y_n function for validating user input, Made changes with --unlock-encrypted-vm argument, added enum function
* created seperate file for enum, modified encryption_type, key_vault, kekurl = _fetch_encryption_settings(source_vm) in _validators.py, renamed the script.sh, Made changes to install_extension and unlock_encrypted_disk in repair_utils.py file, used enum class to check encryption settings
* function name changes and removed print statement from code
* Added comments in encryption_types.py file
* modified _unlock_singlepass_encrypted_disk function in repair_utils.py file because encryption on data disk fails for both xfs and ext filesystems, changed the device mapper name from investigateosencrypt to osencrypt in mount_encrypted_disk.sh file
* Added doc string to the functions, coverter unlock_encrypted_vm argument to flag and corrected spacing in comments
* Logging and naming changes. Refactor some parts.
* worked on code style changes and enhanced mount_encrypted_disk.shmount_encrypted_disk.sh bash script to unlock the correct disk even though disk order is changed while attaching to repair VM
* Added encryption commands to test_repair_commands.py file
* made styling changes to test_repair_commands.py file
* Remove unneeded env files
* Edit tests and fix bugs
* Add tests for nokek encryption
* Fix typo, up version
Co-authored-by: Ubuntu <dibaskar@ubuntu18dev.qhaikempv3lehamphb0oflcsdg.bx.internal.cloudapp.net>
* reapply new python sdk + bug fixes in help and private endpoint update)
* Add support for destination and deadletter with identity and recored the tests
* update version
* commment test case due to weird recording error
* fix condition
* address CR comments'
* fix linter error in help
* fix test and re-record the tests and fix help
* initial parameters support and test
* Add support for customer service parameters and add check and remaining properties
* Add publisher filter
* Rerecord tests
* fix example
* fix test
* comment on test
Co-authored-by: Ashraf Hamad <ahamad@ntdev.microsoft.com>
* Azure Front Door Rules Engine commands preview
* add rules-engine commands
* upgrade SDK (swagger) version to 2020-01-01 for front-door
* Remove unintentional 'location' from update front-door
* Upgrade ext version to 1.0.4
* update azure-cli-extensions.pyproj for front-door
* clean-up unused models in vendored_sdks
* add test files
* Address review comments
* refine py versions 3.7, 3.8
* Address review comments
* made deepest name param rule-name as --name
* add two more rule show/list test cases
* additional detail for query parameter help text
* add rules_engine link param for create routing rule
Co-authored-by: aramesh <aramesh@MININT-T8GHHLB>
Co-authored-by: MyronFanQiu <49134743+MyronFanQiu@users.noreply.github.com>
* Add Windows Mitigation run file
* Make the 'fetch map.json and get path' into a separate function
* Add run-linux shell script
* Rename command to mitigate
* Add help texts and implement absolute path fetching for driver scripts
* Implement linux mitigation driver script
* Add local mitigation testing and mitigate list
* Add mitigation-id and custom script validator, improve error handling
* Add parameter passing for mitigation scripts
* Add logging for ps scripts
* Add error handling for mitigation scripts
* Add versioning checks
* Rename mitigate command to run, fix logging bug for custom script files
* Add more validators and tidy up return dict
* Add --run-on-repair flag and fix python 3.5 split bug
* Format command return json with status and error messages
* Add app insights telemetry
* Rename return parameters
* Style fixes
* Change to prod keys and update file hash
* Fix applicationinsight dependency bug
* Rename run-list to list-scripts
* Fix custom file error bug
* move waf-policy under front-door and start migrating syntax to the GA requirements; add scenario test
* minor cleanup
* update version of front-door sdk from azure-sdk-for-python restapi_auto_frontdoor/resource-manager branch
* basic match regex rule works with new waf api
* support GA syntax for waf-policy create & update
* complete support for managed rule sets
* update project file
* tests complete & passing except in-depth custom rules test
* fix last of tests
* remove testing code
* fix remaining pylint issues
* remove unused import
* require cli with model_path support
* move frontdoor to GA. Hooray!!
* Repair Commands BIG BANG
* Add more structure
* Add basic parameters for swap-disk
* Implement core features of swap-disk
* Add password and username prompts in validator
* Create core functionalities for restore_swap.
* Implement swap-disk and restore-swap for managed disks
* Add unmanaged support for swap-disk
* Update unmanaged disk workflow and add tests
* Fix disk collision error
* Fixed styling
* Small fixes
* Create new resource group when disk-swap, add fallback for SKU not found
* Add functionality to find vm's rescue VM when restoring
* Move internal functions to repair_utils file
* Small help message changes, and rescue_vm_id param for restore
* Remove disk_uri from restore parameter
* Fix help texts and edit scenario tests
* Update scenario testing and fix detach typos
* Secure param fixes and logging changes
* Styling fixes
* Add VM existing and RDFE checks. Polish clean up error messages.
* Add encrypted checks, and resource delete confirmation checks
* Add custom exceptions
* Add long running message
* Minor fixes
* Update index.json
* Minor fixes from PR feedback. Change version, param names, files from
proj file.
* Add target VM validation for restore command
* Fix tag naming bug
* Style fixes
* Replace 'rescue' term with 'repair'
* Change command names to 'repair create' and 'repair restore'
* Add more return messages for undeleted resources
* Add custom parameters for repair_vm_name, repair_group_name,
copy_disk_name
* Fix 'faulty' term into 'source'
* Change target_vm term to source_vm
* Add window images fetching logic
* Styling fixes and edit tests
* Change location of long running message. Pylint fixes.
* Flake8 fixes
* Add all catching exception and relocate OS fetching function within try
block
* Change timestamp to UTC time, make API_VERSION global
* Style fixes
* Build fixes, unicode char fixes
* Update index.json
* Fixes on oudated examples in _help
* Edit linux tests for them to run without input from travis
* Fix typos and add tests
* Fetch api_version more reliably
* Add prod,test env variables
* Style fixes
* Capitialization typo fix
* Update hash
* Initial dev to implement mongo to cosmos migrations
* Implemented MongoDB to Cosmos DB commands
* Fix pylint and flake8 issues
* Addressing comments from PR
* Addressing more comments from PR
* Updating help to reflect that source and target platforms were removed parameters from task creation.
* Further refinements
* Attempting to fix flake8 complaint