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

7540 Коммитов

Автор SHA1 Сообщение Дата
Novin 3de639689d
{Packaging} fix removal of networking package 2018-08-01 (#15451) 2020-10-09 14:59:32 +08:00
xaliciayang 607f9c934f
[SQL] add support for backup storage redundancy param to create/restore/update db commands (#15341)
* add support for backup storage redundancy param to create db

* add force, warnings, tests

* update location check for backup redundancy warnings

* correct get location function usage

* verified behavior

* Update src/azure-cli/azure/cli/command_modules/sql/_help.py

Co-authored-by: Zunli Hu <zuh@microsoft.com>

* consolidate backup storage redundancy ars

* test fixes

* some updated records

* add allowed values for backup storage redundancy back in

* updated recordings and ltr restore param

* added recordings

* update recording

* sensitivity recording

* add updated sensitivity recording

* fixed style

* replace sub

Co-authored-by: Zunli Hu <zuh@microsoft.com>
2020-10-09 14:55:24 +08:00
Zunli Hu cd36f328fd
fix dns in azure stack (#15456) 2020-10-09 14:39:12 +08:00
Feng Zhou 9576d25134
{Upgrade} Fix option typo (#15455)
* run powershell cmd with noprofile

* fix typo
2020-10-09 14:34:56 +08:00
savaradh 764cf9ba0c
[ACR] Add logtemplate and systemtask changes for ACR Tasks (#15254) 2020-10-09 14:34:28 +08:00
Houk fba6d432a0
{Storage} Remove retired error type in error handling (#15453)
* remove old error type definition in Storage

* fix test
2020-10-09 14:00:21 +08:00
Jiashuo Li b5ceffd156
{Core} Extract error message from AdalError (#15322) 2020-10-09 13:37:42 +08:00
Feng Zhou 79a2b833c9
run powershell cmd with noprofile (#15361) 2020-10-09 11:42:36 +08:00
arde0708 47b197df3d
[RDBMS] Bugfix: az postgres flexible-server create Remove hardcoded API version from network client. (#15392)
* [RDBMS] Hotfix: `az postgres flexible-server create` : Update VnetName to exclude servername and update default region for MySQL (#15295)

* hotfix chnages

* Remove - from password if thats the first character

* Style check fix and Mysql sku

* Remove MySQL SKU validator

* Remove MySQL SKu and tier validators

* Trigger checks

* Trigger checks with change in PR title

* Remove specific API version

* Trigger check for PR Title

* Trigger check for PR Title

* Trigger CI checks

* validate with list-skus info

* style fixed

* move validators to command body to speed up

* test code for validator and restored mgmt testcode

* minor fix

* flexible mgmt mysql test

* new test recording files

* style fixed, location changed, linter fixed

* linter pass

Co-authored-by: Daeun Yim <daeunyim@microsoft.com>
2020-10-09 11:39:33 +08:00
Jianhui Harold ef462656d4
update help to make private-link-resource list argument more plain (#15304) 2020-10-09 10:26:27 +08:00
Houk 749ab70a91
{Core} Add recommended command to Telemetry (#15339)
* add recommended command to Telemetry

* add Aladdin service response time
2020-10-09 10:22:21 +08:00
Yuwei Zhou bade99898a
{Cloud} Add Azure Portal Uri (#15299) 2020-10-09 10:20:24 +08:00
Feng Zhou 7cca61c0b3
fix note extraction in description (#15331) 2020-10-09 10:17:47 +08:00
Houk 0a90d44093
[Compute] Add new command to support upgrading extensions for VMSS (#15238)
* provide command to upgrade vmss extension

* add an example in help file
2020-10-09 09:31:21 +08:00
Houk d22ec69a9a
catch psutil import error on cygwin (#15328) 2020-10-09 09:30:54 +08:00
Houk d7d3681858
{Core} Define new error types (#15319)
* define new error types

* wrap the raw exceptions by new defined error types

* refine error type definition

* refine extracting status code from HttpOperationError
2020-10-09 09:28:12 +08:00
Frank Gao 3c9b5651c2
[AKS] Support add Spot node pool (#15311) 2020-10-06 20:27:35 +08:00
Feng Zhou 29daaccb4d
fix aks tests (#15347) 2020-09-30 16:15:08 +08:00
Yishi Wang f658ad8ec4
[Storage] az storage container-rm: Add a new command group to use the Microsoft.Storage resource provider for container management operations. (#15283)
* add container-rm create

* add container-rm delete\exists\list\show\update

* add tests

* fix CI

* fix api version

* fix style check

* resolve comments

* modify help examples

* update help examples

* fix examples
2020-09-30 15:27:57 +08:00
Calvin 3c6a5f607a
[AppService] BREAKING CHANGE: az webapp create, az webapp up - Update available webapp runtimes (#15356)
* Update stacks to match the ones shown on Portal when creating webapp

* Test updates

* Update node versions
2020-09-30 13:11:22 +08:00
Zunli Hu 92404f2da4
{Core} Merge Release to dev for 2.12.1 (#15360)
* [RDBMS] Hotfix: `az postgres flexible-server create` : Update VnetName to exclude servername and update default region for MySQL (#15295)

* hotfix chnages

* Remove - from password if thats the first character

* Style check fix and Mysql sku

* Remove MySQL SKU validator

* Remove MySQL SKu and tier validators

* {KeyVault} Hotfix: Fix CloudSuffixNotSetException while using `az keyvault` in Azure Stack and Air-Gaped Cloud (#15321)

* {Release} Hotfix: Upgrade version to 2.12.1 (#15324)

* upgrade version

* upgrade version

Co-authored-by: arde0708 <63367896+arde0708@users.noreply.github.com>
Co-authored-by: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com>
2020-09-30 12:51:24 +08:00
petrajkogit 867384f615
[SQL] Ignore character casing for backup storage redundancy param value for managed instance (#15208)
* Adding optional backup storage redundancy parameter to MI create

* Adding new optional parameter BackupStorageRedundancy for MI create

* Fix merge issues, and add changes for lowercase support

* spacing issue

Co-authored-by: Perica Trajkov <petrajko@microsoft.com>
2020-09-30 09:58:15 +08:00
Graham Zuber d8f63caf1a
Remove preview flag from Java 11. (#15351) 2020-09-30 09:34:57 +08:00
Xiaojian Xu 6b544ffb1b
{Config} Change local context on/off error to warning (#15345) 2020-09-30 09:04:33 +08:00
Jiashuo Li 6dd3bc9472
[Role] Fix #15278: az role assignment list/delete: Forbid empty string arguments (#15282)
* Forbid empty string

* remove extra scope check

* rename test

* rename
2020-09-30 09:04:14 +08:00
hivyas e015d5bcba
[AMS] Fix #14687: Mixed resource group and account name in command "az ams streaming-endpoint show" #14687 (#15251)
* reverting changes for ASK key

* reverting changes

* updated ams module to dec 2019 swagger

* added test cases

* added ability to update offlinerental

* fixed audio language bug

* fixing requirements*.txt files

* Fixed transforms test case and national bug

* updated content key policy tests

* fixed style and lint errors

* made az ams sp create idempotent

* fixed typo and updated help text

* switched resource group with account name

* updated test cases
2020-09-30 08:44:39 +08:00
Feiyue Yu e5d48764db
{Sql} Fix test_sql_db_import_export_mgmt, test_sql_firewall_mgmt, tes… (#15342)
* {Sql} Fix test_sql_db_import_export_mgmt, test_sql_firewall_mgmt, test_sql_mi_operation_mgmt, test_sql_server_connection_policy, test_sql_server_dns_alias_mgmt, test_sql_server_minimal_tls_version, test_sql_tde, test_sql_tdebyok, test_sql_zone_resilient_database, test_sql_zone_resilient_pool

* test_sql_mi_operation_mgmt
2020-09-29 19:10:03 +08:00
Zunli Hu 49ce3a8f36
GA (#15344) 2020-09-29 15:41:03 +08:00
Milan Brkic fb7d72c90e
[SQL] az sql midb log-replay: Support for log replay service on managed database (#15168)
* {Docs} Remove stale reference in README to closed issue about extensions (#12771)

* midb log-replay commands

* fixed tests and styles

* Fixing alias for some params

* making things right

* Typos and wait command

* add wait command in help file

* reverting changes that are not part of my change

* setup file changed by mistake

* removed group create

* fix key vault issues

* Added examples for log-replay wait command and fixed typos

Co-authored-by: Daniel Miller <daniel.keegan.miller@gmail.com>
Co-authored-by: Azure CLI Team <AzPyCLI@microsoft.com>
Co-authored-by: Milan Brkic <mibrkic@microsoft.com>
2020-09-29 15:37:18 +08:00
aim-for-better 9ee8122885
[HDInsight] Add parameter `--idbroker` to support customer to create ESP cluster with HDInsight Id Broker (#15309)
* {Docs} Remove stale reference in README to closed issue about extensions (#12771)

* Add parameter --idbroker to support esp with HIB

* change broker to Broker in parameter help.

Co-authored-by: Daniel Miller <daniel.keegan.miller@gmail.com>
Co-authored-by: Azure CLI Team <AzPyCLI@microsoft.com>
Co-authored-by: Zhenyu Zhou <zhezhou@microsoft.com>
2020-09-28 19:12:02 +08:00
Feiyue Yu 3d89040f4f
[Compute] Fix host group creation FD count limitation (#15316) 2020-09-28 13:44:11 +08:00
Zunli Hu 3d4643447d
add codeowner (#15325) 2020-09-28 13:29:15 +08:00
Zunli Hu 66b9767bfc
add oauth_cmd in test (#15317) 2020-09-27 15:11:42 +08:00
Zunli Hu 2ce9d718ce
{codeowner} update codeowner (#15315)
* update

* update codeowner
2020-09-27 11:19:08 +08:00
Shuai Wang ccd34c086f
Fix test bug (#15310) 2020-09-27 10:55:20 +08:00
wbradmoore 2907525fbc
[Lab] Fix for issue #14127 __init__() takes 1 positional argument but 2 were given (#14827)
* wip. laptop is borked

* Update custom.py

Co-authored-by: W Brad Moore <wimoore@microsoft.com>
2020-09-27 10:31:01 +08:00
Feiyue Yu 2067936fd5
{Test} Pipeline update (#15307)
* fix a pipe bug

* fix a db bug

* history

* log

* history

* Update pipeline run title

* Generate index.html of HTML files of testing results. Design a unique representation of a pipeline run.

* Make storage account container public

* style

* fix a minor bug

* upload index.html

* pip install requests

* index.html

* index.html

* index.html

* resolve comment
2020-09-27 10:02:36 +08:00
Chou Hu fb36b75011
[AKS] az aks create/update: Add LicenseType support for Windows (#15257) 2020-09-27 09:34:12 +08:00
Kaiqi Zhang b3600986f1
Expect kube-dashboard addon be disabled by default (#15267)
Co-authored-by: Kaiqi Zhang <kaiqzhan@microsoft.com>
2020-09-27 09:32:59 +08:00
Feng Zhou 0d4487455e
{Test} Fix some live tests for acr, appservice, backup, netappfiles, batch (#15245) 2020-09-25 17:12:32 +08:00
Bin Ma d410295cd8
{KeyVault} Add examples for `az keyvault set-policy` (#15219) 2020-09-25 17:09:43 +08:00
Bin Ma 112cc57ea3
[KeyVault] Support `--hsm-name` for `az keyvault key encrypt/decrypt` (#15218) 2020-09-25 17:09:08 +08:00
Bin Ma a1dc54dd01
{KeyVault} Use absolute references instead of relative references (#15191) 2020-09-25 17:08:45 +08:00
Bin Ma 2cd62de349
{KeyVault} Fix CloudSuffixNotSetException while using `az keyvault` in Azure Stack and Air-Gaped Cloud (#15298) 2020-09-25 13:22:59 +08:00
Sajay Antony 2ec644d84e
[ACR] Fix helm url with non-regional aka.ms link (#15293) 2020-09-25 10:44:34 +08:00
Rachel Kim fa9e98d5e9
[SQL VM] `az sql vm show`: Add configuration options to --expand flag (#15156)
* {Docs} Remove stale reference in README to closed issue about extensions (#12771)

* Added more sqlvm configuration options to --expand flag

* style changes to comply with pylint and pep8 format

* removed commments in HISTORY.rst

* refactored expand params to use nargs=+ design pattern

Co-authored-by: Daniel Miller <daniel.keegan.miller@gmail.com>
Co-authored-by: Azure CLI Team <AzPyCLI@microsoft.com>
2020-09-25 09:47:52 +08:00
Frank Gao 9bc39ba299
[AKS] Add node image only option for CLI (#15250)
* Add node image only option for CLI

* line to long

* not too many

* move down

* add some tests
2020-09-25 08:55:00 +08:00
Jianhui Harold 6a0e60abaa
{Network} Update help message for vrouter (#15284) 2020-09-24 18:40:04 +08:00
Dania Etienne b232ed96b0
[ARM] az ts: Add new commands for template specs ; [ARM] az deployment : Add support for --template-spec -s (#14448)
* {Docs} Remove stale reference in README to closed issue about extensions (#12771)

* Preliminary changes made to add support for template-specs

* Reconfiguration

* validate function error rectified

* validate command works for template-uri

* Template-specs deployment works at resource-group level

* Group deployment updated to function with 2020 SDK

* validate with template specs added

* Management scope and tenant scope errors fixed

* Template-Specs Deployment Added

* Template-Specs Deployment Added

* Updated test cases and removed unnecessary comments

* Removed test cases from launch.json

* Uncommented test case

* Cleaned up repo

* Cleaned up repo

* Style checks complete, template_spec parameter placed at the end, time stamp added to deployment_name, excess file removed in commit, launch,json reverted

* Fixed failing CLI Check Test

* Merged with /dev

* Added template-specs command group, added help

* Create or update template spec functioning

* packing engine packing mechanism complete

* Template-Specs CRUD Implemented, Artifacts has full support, added test cases and testing files

* Updated template-specs CRUD tests and template-specs deployment-tests

* Updated all tests for template-specs

* Updated tests

* Fixed style and linter

* Uncommented test case

* Fixed linter resource:

* merged with dev

* merged

* Fixed merge errors

* Fixed json parsing errors

* Revert changed deployment name

* Revert changed deployment name

* deleted extra deployment object causing bot error

* Revered launch.json changes

* Removed unnecessary changes

* Reinstalled requirements, fixed resource linter and style

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Update src/azure-cli/azure/cli/command_modules/resource/_validators.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>

* Small syntax suggested by reviewers made

* Removed unnecessary changes in test_resource

* Merged recordings

* Changed python path in launch.json

* recorded deployment tests for template-specs

* Recorded template-specs CRUD

* TemplateSpecs is a live test

* Tests are updated to latest

* Commands now work with 10.1.0

* Updated what if parameters

* Fixed style and linter

* acs tests restored

* Removed unnecessary changes

* Restored launch.json

* added git ignore back in

* Bot_template restored

* removed unnecessary comment

* Updated web app folderto new one

* revereted

* Syntax changes for function names in packing_engine

* launch.json issue

* changed to new sdk release

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Shenglong Li <shenglong.li@outlook.com>

* Update src/azure-cli/azure/cli/command_modules/resource/_help.py

Co-authored-by: Shenglong Li <shenglong.li@outlook.com>

* Made recommended changes

* snake_case for _packing_engine

* Restored network tests

* Fixed CLI Linter

* Small syntax errors fixed

* reverted launch.json changes

* Deleted local context file

* Updated get template-specs

* Updated get template-specs

* changed validator logic, added tests for template-specs list, changed get template-specs to show template-specs, updated help commands, removed tag commands

* changed validator

* Fixed validators

* Fix getting resource API version in ARM cmdlt

Latest swagger updates added the 'defaultApiVersion' property to the GET resource providers response.
The old code was trying to use the default API version and only than fall back to the API versions specified in the manifest.
This was wrong because:
1. default API version was not part of the response (until the latest SDK update), so this code was not doing anything
2. default API versions can be null
3. default API version is mostly used for internal purposes and must be included in the list of available API versions.

This change address this issue.

* Changed validators, added what_if test for template_specs

* Fixed linter and style resource

* Update sample_policy_set.json

* Update sample_policy_set.json

* Update sample_policy_set_parameterized.json

* Allows string for --template-spec parameter

* template-spec validators updated

* Better error handling for deployment

* merged with dev, updated template-specs command module name to ts

* Fixed style

* Added temporary fix for preview message bug for private preview

* Different bug fix attempt

* Removed unnecessary changes in preparation for merge

* Update src/azure-cli-core/azure/cli/core/commands/__init__.py

Co-authored-by: Jiashuo Li <jiasli@microsoft.com>

* restored new line at end of files

* restored new line at end of files

* restored no new line at end of files

* restored no new line at end of files

* min_api added

* Template Specs no longer a live test

* New build for recent changes committed to dev

* Resource type for template specs changed to profiel type

* Export template specs is a live scenario test

* restored launch.json

* restored launch.json

* removed export test folder

* Reduced repetitive code in _help.py

* Fixed trailing white spaces and added new line at end of _params.py

* set a default version in other profiles for ResourceType.MGMT_RESOURCE_TEMPLATESPECS before 2019-06-01-preview, so that the judgment logic of min_api is based on ResourceType.MGMT_RESOURCE_TEMPLATESPECS. as requested

* Update launch.json

Co-authored-by: Daniel Miller <daniel.keegan.miller@gmail.com>
Co-authored-by: Azure CLI Team <AzPyCLI@microsoft.com>
Co-authored-by: Dania Etienne <daetienn@microsoft.com>
Co-authored-by: Xing Zhou <Zhou.Xing@microsoft.com>
Co-authored-by: Shenglong Li <shenglong.li@outlook.com>
Co-authored-by: Elad Perets <elpere@microsoft.com>
Co-authored-by: Jiashuo Li <jiasli@microsoft.com>
2020-09-24 18:25:06 +08:00
Zunli Hu 6766c48885
[Storage] `az storage fs`: Fix connection string issue (#15281)
* fix error

* add test
2020-09-24 15:19:54 +08:00