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

235 Коммитов

Автор SHA1 Сообщение Дата
Travis Prescott 2f0cb9daf5 [Network] Convert Load Balancer and App Gateway Create to Dynamic Templates (#2668)
* Group params.

* Import VMSS implementation of template builder.

* Update template builders.

* Add custom command logic.

* Update LB params.

* Update load balancer create.

* AppGateway progress

* App gateway progress.

* Re-record tests.

* Code review feedback.
2017-03-30 11:00:40 -07:00
begoldsm a60c395448 Refactor of DataLake module into dls and dla modules (#2604)
* Set official version for ADL

* Renaming feedback for data lake, first iteration.

This renames all of the data lake commands to dla and dls
It breaks them into separate modules
It updates our params to more nicely follow the '-' standard.
Updates tests to use new naming.
Updates help to use new naming.

* Add ACL and expiry support to DLS and tests

* Add all the information to history for dla and dls

* Fix pylint errors.

Ran an older version of check_style which didn't catch these.

* Address PR feedback

remove "optional" strings in help text
update history
update versions
update dependencies.

* fixed the access test and put it in the right test

* Sync to latest and re-record test

This test was failing due to a change in the test recording processor
that I hadn't sync. After sync and re-record, test passes.

* Address one last PR comment

Turns out, after additional testing, that I do not even need to do any
quoting at all, since it is handled during URI crafting by the
underlying client. Removing it and using isoformat.
2017-03-27 11:09:56 -07:00
Jared Moore 5b003900db Removed duplicate sql utils code (#2629)
* Remove duplicate sql utils & validator code

Fixes #2628

* Fixed bad merge
2017-03-27 11:09:00 -07:00
Nathan afee409b33 Import/Export CLI changes for SAS key (#2584)
* Add examples, custom code handling, and testing for Import/Export using SAS key

* Fix help section

* Change test to be Python 2 compatible, re-do recording

* Addressed comments, fix linter issues

* Update dependency to azure-mgmt-sql==0.4.0

* Fixed Import/Export examples

* Fixed auth_type param in db export
2017-03-25 08:36:46 -07:00
Travis Prescott 43d788cd4a [Compute] Add AppGateway support to VMSS create (#2570)
* Add application gateway to VMSS create.

* Add mutual exclusion validation to network balancer arguments.

* Permit app-gateway or load-balancer frontend when instance count <= 100

* Code review fixes.

* Code review feedback.
2017-03-24 13:45:27 -07:00
annatisch 29d8a30bfb [Batch] Added output table formatting (#2602)
* Added special output transformers

* Fixed names with hyphens

* Add the table format for commands.

* added mgmt table transforms

* Some fixes to table formatting

* style fixes

* Some test fixes

* Removed duplicate formatting
2017-03-24 13:00:11 -07:00
Yugang Wang 96fd150a68 core: support login using service principal with a cert (#2457) 2017-03-15 13:57:14 -07:00
Travis Prescott 4a496384c3 [KeyVault] Enable creation of KeyVault using service principal. (#2447)
* Enable creation of KeyVault using service principal.
2017-03-10 10:57:34 -08:00
Jared Moore ad9c974cae Design changes and tests for SQL DB replication commands (#2379)
* Replica command redesign. Implemented failover command.

* Initial db replica test which creates multiple resource groups

* replica cmd work

* Fixed failover test error

* Failover test succeeded

* Dont use exceptions for control flow. Fixed style

* Rename --secondary-* params to --partner-* for consistency

* Fixed indentation warning

* Fixed style errors in vcr base

* Rename failover to set-primary-replica.

This makes it clearer that the operation is performed on the secondary. Also makes replica-related commands more visually distinct.

* Move replica commands into sql db replica subgroup

* Removed --partner prefix from replica create properties where possible

* Converting tests to ScenarioTest

* All tests except server mgmt are recorded

* server mgmt is now recorded

* Revert change to vcr test base

* Updated sql tests path in pyproj

* Another pyproj change

* Fully revert vcr test base

* Refactor sql tests. Stop being so selfish.

* Reverted line break change in preparers
2017-03-09 20:22:47 -08:00
begoldsm 19ede86b78 Initial ADLS and ADLA commands (#2257)
* Initial ADLS and ADLA commands

This just gets initial structure in place based on redis commands. This
has not yet been replaced to have functional ADL commands yet.

initial functional ADL commands in python

Update versions and add initial custom functions

Add customizations and flesh out commands.

Add full help and fix up custom logic for ADL

Add filesystem commands.

explicitly convert to ints.

* Update to fix my one test and get all the help in

* Remove my debug logic.

* Address PR feedback.

add dashes into some command names
commonize parameters
fix help
add the ability to determine location based on resource group

* remove common params that are globally defined.

* Add more tests, address some comments

Address comments about help
Still todo:
Tests for job, catalog and file
Add validators.

* Add tests and fixes for filesystem.

* pylint and test fixes for ADL

There is one test remaining that needs to be fixed, and validators are
required, but this covers pretty much all necessary changes.

* Add validators and fix pylint and tests

Add resource group validator
Fix tests for scrubbing Job IDs
Re-record job test
Address remaining pylint issues.

* fix help, address 2.7 pylint.

* Address PR comments

* add help and functionality for the generic @file

* Fix pylint error.

* Address final PR comments

Move mock.patch to my test file
move mock_get_uuid_str() to my test file
move all tests to the root of azure-cli-datalake
fix single params to work properly (missing empty second param)

* Fixing tests.

* Missing comma breaking tests

* fix incorrect param in help.
2017-03-09 17:08:17 -08:00
Yugang Wang 5794d2c00f appservice: misc bug fixes(locations, trace when browse, polish error) (#2407)
* appservice: misc bug fixes(locations, trace when browse, polish error)

* rename --start-trace to --logs

* address review feedback
2017-03-09 20:40:27 +01:00
Travis Prescott 7bb18e08ee [Network] Convert network creates to use SDK (#2371)
* Fix RouteTable create failure.

* Workaround for RouteTable delete service bug.

* Convert express route circuit create.

* Convert traffic manager profile.

* Convert NIC create progress.

* Convert NSG create to SDK method.

* Local and VNet Gateway create converted to SDK calls.

* Re-record test.
2017-03-03 15:06:05 -08:00
Travis Prescott be7374b73d Initial fix. (#2345) 2017-03-02 11:01:52 -08:00
Travis Prescott 8fb6b56d5b [VM] Allow VM creation with specialized VHD (#2256)
* Enable specialized VHD. Refactor logic.

* Re-re-record ACS test...

* Troubleshoot CI.

* Address code review feedback.

* Code review feedback.
2017-03-01 09:59:52 -08:00
Travis Prescott 7e9cc47e04 [Network] Convert VNet Create to use SDK (#2269)
* Inital work.

* Finish conversion to template deployment.

* Switch to SDK backed custom command. Remove FC.

* Fix code review comment.
2017-03-01 09:43:49 -08:00
Travis Prescott 799fa1281d [VM/VMSS] Fix broken name or ids logic in VM/VMSS Create (#2091)
* Fix broken name or ids logic.

* Code review feedback.
2017-02-15 12:30:40 -08:00
Travis Prescott 129e2e457e [Network] Fix issue with VPN connection create (#2066)
* Convert vpn-connection from FC to SDK call.

* Progress.

* Convert to template deployment.

* Rerecord test.

* Remove fat client from setup.py

* Code review fixes.
2017-02-14 12:39:46 -08:00
Travis Prescott 7bfcd06eb4 [Network] DNS Zone Import/Export (#2040)
Breaking change: Remove `--filename` from `dns zone export`.
2017-02-13 13:20:39 -08:00
annatisch 8b22ba4a02 Batch enum bug fix + more tests (#2015)
* Added job tests

* Enum bug fix

* Added enum test

* fixed force revert

* Style fixes

* Reformat test exceptions
2017-02-08 15:40:47 -08:00
Travis Prescott 317efd856a Add SQL and DocumentDB to VS proj file. (#2008) 2017-02-08 11:15:03 -08:00
Xing Wu ba47219ce1 Add Batch data plane commands (#1875)
* Add batch data plane commands:

-- Add custom commands
-- Add auto execution data plane codes
-- Import mgmt commands experience

* Added file stream support

* bug fixes

* Fixed regex raw strings

* Added support for JSON input

* Custom and type validation (#4)

* Additional validation and parsing

* Some cleanups

* Minor code refinements

* Fix pylint errors and get rid unused codes.

* List and type validation (#5)

* list and type validation

* Remove auth kwargs

* Fixed typo

* clean pylint error and add data plane command test.

* Bug fixes (#6)

* Remove auth kwargs

* Bug fixes

* Fixed kwargs

* Move the update pool command to custom command.

* Add custom commands test cases

* Tests and delete confirmation (#7)

* Added some tests

* Bug fixes

* Added tests to sln

* Delete confirmation

* Some pylint cleanup

* More tests and fixes (#8)

* Fix pylint and test errors.

* Following PEP8 complaint.

* Use this decroator on doc transfer

* Deferred imports for performance (#9)

* streamlined imports

* pylint fixes

* Renamed AzureDataPlaneCommand

* PyLint and PEP8 clean up.

* Use single parameter for storage account id and name.

* Review feedback + help fixes (#10)

* node-user -> node user

* Review feedback

* More feedback fixes

* pep fixes

* fixed underscore

* More touch ups

* Review fixes (#11)

* Command refinements

* More command feedback

* Test fixes

* More tests

* Add enum list for vmsize and thumbprint algorithm.

* Streamlined commands (#13)

* streamlined commands

* Updated tests

* Fixed arg loading test

* Further command refinements (#14)

* support silent args

* Fixed pool error message

* Further command editing

* last fixes

* Fixed tests (#15)

* Change the coding style.
2017-02-07 15:30:31 -08:00
Travis Prescott f2819e212d Make resource delete return the server response. (#1986) 2017-02-06 15:27:14 -08:00
Travis Prescott 40a45c0623 [Compute] VM Create Fixes (#1962)
* Fix issue when storage account is in different resource group

* Fix #1943.

* Restore and update VM/VMSS create test plans.

* Code review fixes.
2017-02-02 16:28:50 -08:00
Travis Prescott 4934395580 [VM/VMSS] New VM/VMSS Create (#1849)
* Rework VM create and re-recordBreaking Changes
--subnet-name renamed to --subnet which accepts a name or ID as with the networking commands.
--vnet renamed to --vnet-name which only accepts a name as with the networking commands.
--{subnet|vnet}-ip-address-prefix shortened to --{subnet|vnet}-address-prefix as with the networking commands.
--storage-type renamed to --storage-sku for consistency with the storage module.
--custom-os-disk-type renamed to --os-type for clarity.
--load-balancer-backend-pool-name renamed to --backend-pool-name since it is in the Load Balancer argument group and thus clear what it refers to.
--load-balancer-nat-pool-name renamed to --nat-pool-name since it is in the Load Balancer argument group and thus clear what it refers to.
--nat-backend-port renamed to --backend-port.
2017-01-26 12:07:26 -08:00
Travis Prescott 5de4bff1c2 Add path expansion to file type parameters (#1827)
* Add file_type to file parameter registrations.

* Add FilesCompleter references.
2017-01-24 10:17:34 -08:00
Travis Prescott 18025718b3 [Network] RouteTable/Route command updates (#1693)
* Update route-table/route create and update commands.

* Add resource SDK dependency and remove references to fat client.
2017-01-10 08:27:54 -08:00
Xing Wu 412f531daa Add batch mgmt commands (#1670)
* Add batch mgmt commands

* Update with wording change.

* Add more test cases

* Fix pylint errors.

* Update failed test cases and code style.
2017-01-09 10:38:57 -08:00
Travis Prescott 664a417213 [KeyVault] Remove embedded KeyVault client and use SDK (#1671)
* Remove embedded KeyVault client and use SDK version.

* Specify SDK version.
2017-01-09 10:33:51 -08:00
Travis Prescott 0e2f45e2a5 [Network] Application Gateway Commands and Fixes (#1606)
[BC] --sku-name and --sku-tier combined to --sku for app-gateway commands.
[BC] for app-gateway subresource list commands, renames --name to --gateway-name
2017-01-04 16:17:14 -08:00
Travis Prescott 866603031a [Network] DNS Fixes Round 2 (#1592)
* Add metadata to `record-set update` and add logic to remove trailing dot from zone_name.

* Remove null record fields from output.
2016-12-19 09:29:12 -08:00
Travis Prescott 2305a51a7f Workaround for blob upload. (#1580) 2016-12-15 11:12:56 -08:00
Travis Prescott 5d5f0bc53d Update test framework. (#1505) 2016-12-08 11:39:42 -08:00
Travis Prescott 3e4d2600fa [Network] Add BGP Peering to local-network create and update (#1456)
* Add BGP peering to local-network create and update.

* Fix #1435.

* Update command help text.

* Code review fix.
2016-11-28 16:59:48 -08:00
Travis Prescott a1130a823c [Storage] Fix storage table outputs and help text. (#1402)
* Fix #1266.

* Fix #1002.

* Fix #1003

* Fix #1066.
2016-11-22 09:52:45 -08:00
Travis Prescott 90fee00a45 Add EndpointSuffix to storage connection string command. (#1378) 2016-11-18 16:22:31 -08:00
☆Kevin b294bde4e9 rename to --admin-enabled on update/create for acr operations (#1276)
* Rename to --admin-enabled on update/create for acr operations

* clean up and clarify command descriptions
2016-11-11 10:10:23 -08:00
Travis Prescott d8ef78b468 [Network] Fix Network Bugs 1239, 1240 (#1274)
* Fix #1239

* Fix #1239

* Fix VS project file. Post rebase fixes.
2016-11-09 15:41:22 -08:00
Yugang Wang 5d72655000 webapp: rename component from webapp to appservice (#1260) 2016-11-07 15:09:03 -08:00
Travis Prescott 81372d0c3f [KeyVault] KeyVault Round 3 Commands (#1215)
* Key backup/restore/import. Certificate import. Pending certificate
operations.

* Fix build errors and help text.

* Code review fix.
2016-11-04 09:56:37 -07:00
☆Kevin 7e4fd18a88 Refactor "acr update" to use generic update commands (#1211)
* update acr update to use generic update function

* remove doubly defined validator

* update README.rst to have same content as --help for acr update

* update helptext for `az ad sp` for `az acr create`

* Fixing list releases to run as long running operation. (#1207)

* Fixing list releases to be a long running operation

* Fixing space

* Update VS Code debugging setting and instructions (#1208)

* Update VS Code debugging setting and instructions

* Update debug_in_vs_code.md

Fix typo in doc

* make generic update for acr more idiomatic

* webapp: add shortcut for docker related arguments (#1212)

* update acr update to use generic update function

* remove doubly defined validator

* update README.rst to have same content as --help for acr update

* update helptext for `az ad sp` for `az acr create`

* make generic update for acr more idiomatic

* fix linter errors and remove unnecessary parameter
2016-11-03 16:15:46 -07:00
Travis Prescott ec61c50255 Change generated.py files to commands.py (#1226)
* Change generated references to commands.

* Update help docs.
2016-11-03 16:11:35 -07:00
Travis Prescott b4431dbd34 [ExpressRoute] Express Route fixes (#1194) *breaking changes*
BC: express-route service-providers list changed to express-route list-service-providers
BC: express-route circuit commands moved up to simply express-route
BC: express-route circuit-auth and express-route circuit-peering subgroups renamed to auth and peering respectively
BC: express-route peering create no longer creates a circuit (must be created with express-route create) 
BC: various parameter name aliases have been changed
BC: removes authentication_key from express-route auth create because this API call generates a random key regardless of the value passed in
BC: removes the express-route auth update command as the service call fails when calling create_or_update on an existing authentication entry rather than generating a new auth key, rendering this command worthless.
2016-11-01 16:57:46 -07:00
Travis Prescott 79ea99cb33 [KeyVault] Round 2: Certificate Baseline Commands (#1164)
* KeyVault certificate commands.

* Code review comments.

* Remove "newAdmin" key and force Python 2 to behave.
2016-10-27 14:12:50 -07:00
Travis Prescott d72cfaa7f2 [KeyVault] Onboard KeyVault Round 1 (#1037)
* Initial KeyVault data plane commands and management plane revisions.

* Code review comments.

* Bump to wake up CI.

* Bump to wake up CI.

* Fix imports.

* Updates to setup.py

* Updates to setup.py

* Update vault_base_url
2016-10-10 13:18:52 -07:00
Yugang Wang a4f5c357fe webapp: polish LRO failures (#1032)
* webapp: polish LRO failures

* fix pylint error

* fix test failure

* rerecord test
2016-10-06 09:51:10 -07:00
Travis Prescott f4c3223801 Fix VNET and storage account defaulting logic. (#1012)
* Fix VNET and storage account defaulting logic.

* Address code review comments.

* Re-record another test.
2016-09-29 10:03:13 -07:00
Yugang Wang 131d36a96e fix diagnostics commands (#915)
* fix diagnostics commands

* remove out of date tests

* remove useless parameter
2016-09-22 20:06:11 -07:00
Yugang Wang e1ecdd1f5c webapp: basic support for plan, webapp, git, diagnostics (#871) 2016-09-14 16:37:19 -07:00
Burt Bielicki 53844cc40d telemetry infrastructure and initial instrumentation (#865) 2016-09-14 08:43:08 -07:00
Travis Prescott 70e7f0242b Fix startup file. (#861) 2016-09-12 09:03:24 -07:00