Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
Sungwoo Bae c906263ddf
vm-repair: Fix Encrypted Ubuntu Bug, add LVM support (#2339)
* 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>
2020-09-14 10:38:57 +08:00
Sungwoo Bae 6b8197069f
vm-repair: Add support for encrypted VMs (#1798)
* 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>
2020-06-06 08:03:15 +08:00
Ashraf Hamad 2d9abba326
EventGrid: 2020-04-01-preview CLI Extension refresh (#1714)
* 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>
2020-05-18 22:59:31 +08:00
Zihong cf586cc976
spring cloud - custom domain - cli (#1419) 2020-05-08 15:11:52 +08:00
aramesh-msft 0acaec92c0
Azure Front Door Rules Engine commands preview (#1432)
* 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>
2020-03-30 10:28:16 +08:00
Jianhui Harold 3f78c4f99f
[CI] add license checker (#1448) 2020-03-26 10:51:22 +08:00
Jianhui Harold ea2c98d09d
[CI] Run linter on Pull Request only and remove unnecessary files (#1387) 2020-03-13 23:39:13 +08:00
gautamd-ms 997755c044
Updated Maintenance RP extension for GA (#1235)
* Updated maintenance extension for GA - fixed style and help bugs
2020-03-03 10:36:51 +08:00
pichandwork 2096ec95ed Update Azure CLI to support new version of frontdoor (2019-05-01) (#963) 2019-10-08 15:22:37 +08:00
Sungwoo Bae b0717debe1 Repair Command: Add 'repair run' command (#913)
* 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
2019-08-30 07:01:48 +08:00
Bobby Martin 745fe1517d Waf policy ga (#799)
* 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!!
2019-07-12 10:55:59 -07:00
Sungwoo Bae dd01335fac Fix premium IO disk bug (#840) 2019-07-09 09:38:28 -07:00
Limin Gu 034fece79c
[rdbms-vnet] Remove the code of rdbms-vnet extension (#759) 2019-06-10 13:53:18 -07:00
Limin Gu 41acdab535
[signalr] Remove the code of signalr extension (#758) 2019-06-10 13:09:46 -07:00
Limin Gu eb5f6ae222
[botservice] Remove the code of botservice (#731) 2019-05-30 10:31:28 -07:00
Sungwoo Bae 69010be3a2 VM Repair Extension (#683)
* 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
2019-05-29 15:36:53 -07:00
amsoedal 7b6ae4f88b Remove 'preview' from Dev Spaces (#638) 2019-04-16 21:10:41 -07:00
pichandwork a9806ebcbd Add ability to add redirect route and backend pools setting (#611)
* Add ability to add redirect route and backend pools setting

* Incorporated review comments
2019-04-02 12:18:47 -07:00
pichandwork d25a3464be Update python SDK for front-door (#565)
* Update python SDK for front-door

* Rename WebApplicationFirewallPolicy to WebApplicationFirewallPolicy1.
2019-03-12 12:32:53 -07:00
Travis Prescott 704752ae26
Create startup file to permit debugging from extensions repo in Visual Studio. (#541) 2019-02-27 08:35:45 -08:00
dijyotir 8ff58de4f5 PrivateDns CLI Commands for GA (#506)
* init

* added privatedns sdk

* zone cli

* link partially done

* link docs

* recordset

* readme

* tests init

* zone tests done

* zone tests rerun

* vnet link tests

* record set tests

* style fixes

* enable vnet creation

* small fix

* test recordings

* added index.json

* linter errors

* change to private-dns

* zone tests final

* fixed small comments

* recordset tests

* add metadata

* link tests
2019-02-20 12:23:25 -08:00
Steven Gum 294cef45f8 azext_botservice 0.4.2 release (#435)
* botservice: specify maxCliCoreVersion 2.0.51

* botservice: add fix for az bot publish, remove unused code

* botservice: fix StaticCheck issues

* botservice: fix flake8 error
2018-12-03 23:57:44 -08:00
vchske 2354ce5dc5 Implemented MongoDB to Cosmos DB commands (#422)
* 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
2018-11-30 10:45:25 -08:00
Travis Prescott 5bc1beeeaa
Front Door and Express Route extensions. (#330)
* Copy code.

* Add VisualStudio proj and sln files. Update help.

* Port latest commits.

* Remove unnecessary files.
2018-10-08 08:47:12 -07:00