From fb53cbeeb514e79675c9e3e728c4399acd6cb73d Mon Sep 17 00:00:00 2001 From: Azure CLI Team Date: Fri, 25 Dec 2020 03:03:28 +0000 Subject: [PATCH 1/4] update azure-cli version to 2.17.0 --- src/azure-cli-core/HISTORY.rst | 4 + src/azure-cli-core/azure/cli/core/__init__.py | 2 +- src/azure-cli-core/setup.py | 2 +- src/azure-cli/HISTORY.rst | 124 ++++++++++++++++++ src/azure-cli/azure/cli/__main__.py | 2 +- src/azure-cli/requirements.py3.Darwin.txt | 4 +- src/azure-cli/requirements.py3.Linux.txt | 4 +- src/azure-cli/requirements.py3.windows.txt | 4 +- src/azure-cli/setup.py | 2 +- 9 files changed, 138 insertions(+), 10 deletions(-) diff --git a/src/azure-cli-core/HISTORY.rst b/src/azure-cli-core/HISTORY.rst index 8fe8f173a70..5154843afd4 100644 --- a/src/azure-cli-core/HISTORY.rst +++ b/src/azure-cli-core/HISTORY.rst @@ -3,6 +3,10 @@ Release History =============== +2.17.0 +++++++ +* Minor fixes + 2.16.0 ++++++ * Add 2020-09-01-hybrid API profile for AzureStack (#15096) diff --git a/src/azure-cli-core/azure/cli/core/__init__.py b/src/azure-cli-core/azure/cli/core/__init__.py index 3c3346748ab..68cf47589ce 100644 --- a/src/azure-cli-core/azure/cli/core/__init__.py +++ b/src/azure-cli-core/azure/cli/core/__init__.py @@ -6,7 +6,7 @@ from __future__ import print_function -__version__ = "2.16.0" +__version__ = "2.17.0" import os import sys diff --git a/src/azure-cli-core/setup.py b/src/azure-cli-core/setup.py index 3546c619377..5e1f56ef1c1 100644 --- a/src/azure-cli-core/setup.py +++ b/src/azure-cli-core/setup.py @@ -9,7 +9,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "2.16.0" +VERSION = "2.17.0" # If we have source, validate that our version numbers match # This should prevent uploading releases with mismatched versions. diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index d0e8bb7a4b3..140fbef5c2e 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -3,6 +3,130 @@ Release History =============== +2.17.0 +++++++ + +**ACR** + +* Bump api version. support zone redundancy (#15975) + +**ACR connected-registry** + +* `az acr connected-registry`: New feature for on-prem Azure Container Registry (#16238) + +**ACR scope-map** + +* `az acr scope-map update`: --add and --remove are deprecated, they are renamed to --add-repo --remove-repo (#16238) +* `az acr scope-map create/update`: Add support to handle Gateway actions. (#16238) + +**ACR Token** + +* `az acr token create`: support added for gateway actions (#16238) + +**AKS** + +* fix: add arguments removed by a previous PR (#16080) + +**AKS ** + +* `az aks get-credentials`: Clarify documentation for get-credentials (#16011) + +**App Service** + +* Allow customer to create Python 3.9 function app (#16296) +* Fixes #14583: az webapp up should generate default name if name isn't provided (#16267) +* Bugfix: Better error handling when trying to create duplicate ASP in diff location (#16143) + +**ARM** + +* `az ts`: Add support for --tags (#16149) +* `az ts `: supports deleting a single version (#16295) + +**ARO** + +* `az aro delete`: Add RBAC validation on cluster deletion (#16101) +* `az aro update`: Add RBAC validation on cluster update (#16213) +* Ensure worker_profile is not None before getting the subnets from (#16309) + +**Backup** + +* `az backup job list`: Solved -o table bug and added backup_management_type as command input (#16304) + +**Batch** + +* Upgrades data plane to [azure batch 10.0.0](https://pypi.org/project/azure-batch/10.0.0/) (#16156) +* [BREAKING CHANGE] az batch job task-counts: Change the output from a JSON object returning task counts to a complex JSON object that includes task counts (`taskCounts`) as well as task slot counts (`taskSlotCounts`). (#16156) + +**Compute** + +* New license type RHEL_ELS_6 (#16012) +* Adopt track2 SDK, azure-mgmt-compute==18.0.0 (#15750) + +**Container** + +* Fix misspelling in `az container create` CLI example text. (#16252) + +**DataBoxEdge** + +* new command module: support for data-box-edge devices and management (#16193) + +**IoT** + +* Updated device key generation (#16129) +* Update identity-enabled hub tests to fix endpoint RBAC issues (#16128) + +**Key Vault** + +* `az keyvault key import`: support `--kty` for importing BYOK keys (#16223) + +**Monitor** + +* `az monitor metrics alert create`: improve error message to give more actionable insight (#16255) + +**Network** + +* `az network private-endpoint create`: add more declaration of '--subnet' and '--private-connection-resource-id' (#16174) +* Change validator of application-gateway ssl-cert create (#16256) +* Migrate network to track2 SDK (#16245) +* Bugfix for "az network traffic-manager profile create" when using "--routing-method MultiValue" (#16300) + +**Profile** + +* Fix "missing secret or certificate in order to authenticate through a service principal" (#16219) + +**Resource** + +* `az provider register`: Add --accept-terms for registering RPaaS (#16194) + +**resource** + +* Fix parsing JSON files with multi-line strings (#15502) + +**Role** + +* `az ad sp create-for-rbac`: Deprecate creating Contributor role assignment by default (#16081) + +**Security** + +* - Add secure score commands (#16198) +* Fix update alert command and support new value (#16291) + +**SQL** + +* `az sql dw update`: do not accept backup-storage-redundancy argument (#16326) +* `az sql db update`: update backup storage redundancy as requested from command (#16326) + +**Storage** + +* Fix issue #15965: Clarify how to remove multiple legal hold tags with `az storage container legal-hold [clear|set]` (#16167) +* `az storage account encryption-scope`: GA support (#16270) +* Fix issue #9959: Trying to download a snapshot version of a file share fails with ResourceNotFound (#16275) + +**Synapse** + +* 1. Add new cmdlets az synapse sql ad-admin show, create, update, delete (#16241) +* Add integration runtime related cmdlets (#15498) + 2.16.0 ++++++ diff --git a/src/azure-cli/azure/cli/__main__.py b/src/azure-cli/azure/cli/__main__.py index 0f74eb93f50..fde564f6b5f 100644 --- a/src/azure-cli/azure/cli/__main__.py +++ b/src/azure-cli/azure/cli/__main__.py @@ -17,7 +17,7 @@ from knack.log import get_logger __author__ = "Microsoft Corporation " -__version__ = "2.16.0" +__version__ = "2.17.0" # A workaround for https://bugs.python.org/issue32502 (https://github.com/Azure/azure-cli/issues/5184) diff --git a/src/azure-cli/requirements.py3.Darwin.txt b/src/azure-cli/requirements.py3.Darwin.txt index 2a69ff28270..b24d4292c1b 100644 --- a/src/azure-cli/requirements.py3.Darwin.txt +++ b/src/azure-cli/requirements.py3.Darwin.txt @@ -5,8 +5,8 @@ argcomplete==1.11.1 asn1crypto==0.24.0 azure-appconfiguration==1.1.1 azure-batch==10.0.0 -azure-cli==2.16.0 -azure-cli-core==2.16.0 +azure-cli==2.17.0 +azure-cli-core==2.17.0 azure-cli-telemetry==1.0.6 azure-common==1.1.22 azure-cosmos==3.2.0 diff --git a/src/azure-cli/requirements.py3.Linux.txt b/src/azure-cli/requirements.py3.Linux.txt index 2a69ff28270..b24d4292c1b 100644 --- a/src/azure-cli/requirements.py3.Linux.txt +++ b/src/azure-cli/requirements.py3.Linux.txt @@ -5,8 +5,8 @@ argcomplete==1.11.1 asn1crypto==0.24.0 azure-appconfiguration==1.1.1 azure-batch==10.0.0 -azure-cli==2.16.0 -azure-cli-core==2.16.0 +azure-cli==2.17.0 +azure-cli-core==2.17.0 azure-cli-telemetry==1.0.6 azure-common==1.1.22 azure-cosmos==3.2.0 diff --git a/src/azure-cli/requirements.py3.windows.txt b/src/azure-cli/requirements.py3.windows.txt index 39fcad600bb..b393f2c7430 100644 --- a/src/azure-cli/requirements.py3.windows.txt +++ b/src/azure-cli/requirements.py3.windows.txt @@ -5,8 +5,8 @@ argcomplete==1.11.1 asn1crypto==0.24.0 azure-appconfiguration==1.1.1 azure-batch==10.0.0 -azure-cli==2.16.0 -azure-cli-core==2.16.0 +azure-cli==2.17.0 +azure-cli-core==2.17.0 azure-cli-telemetry==1.0.6 azure-common==1.1.22 azure-cosmos==3.2.0 diff --git a/src/azure-cli/setup.py b/src/azure-cli/setup.py index 9c1941e648a..dcd6a019916 100644 --- a/src/azure-cli/setup.py +++ b/src/azure-cli/setup.py @@ -18,7 +18,7 @@ logger.warn("Wheel is not available, disabling bdist_wheel hook") cmdclass = {} -VERSION = "2.16.0" +VERSION = "2.17.0" # If we have source, validate that our version numbers match # This should prevent uploading releases with mismatched versions. try: From ed01c39212bddfc7e2cd08a6cd70c06491e5b5fd Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 25 Dec 2020 11:18:33 +0800 Subject: [PATCH 2/4] Apply suggestions from code review Co-authored-by: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Co-authored-by: Jiashuo Li Co-authored-by: Feiyue Yu --- src/azure-cli/HISTORY.rst | 47 ++++++++++++++------------------------- 1 file changed, 17 insertions(+), 30 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 140fbef5c2e..41baabba321 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -8,39 +8,27 @@ Release History **ACR** -* Bump api version. support zone redundancy (#15975) - -**ACR connected-registry** - +* Support zone redundancy (#15975) * `az acr connected-registry`: New feature for on-prem Azure Container Registry (#16238) - -**ACR scope-map** - * `az acr scope-map update`: --add and --remove are deprecated, they are renamed to --add-repo --remove-repo (#16238) * `az acr scope-map create/update`: Add support to handle Gateway actions. (#16238) - -**ACR Token** - * `az acr token create`: support added for gateway actions (#16238) **AKS** -* fix: add arguments removed by a previous PR (#16080) - -**AKS ** - +* Fix: add arguments removed by a previous PR (#16080) * `az aks get-credentials`: Clarify documentation for get-credentials (#16011) **App Service** * Allow customer to create Python 3.9 function app (#16296) -* Fixes #14583: az webapp up should generate default name if name isn't provided (#16267) -* Bugfix: Better error handling when trying to create duplicate ASP in diff location (#16143) +* Fix #14583: az webapp up should generate default name if name isn't provided (#16267) +* Fix: Better error handling when trying to create duplicate ASP in diff location (#16143) **ARM** * `az ts`: Add support for --tags (#16149) -* `az ts `: supports deleting a single version (#16295) +* `az ts`: Support deleting a single version (#16295) **ARO** @@ -50,11 +38,11 @@ Release History **Backup** -* `az backup job list`: Solved -o table bug and added backup_management_type as command input (#16304) +* `az backup job list`: Solve -o table bug and added backup_management_type as command input (#16304) **Batch** -* Upgrades data plane to [azure batch 10.0.0](https://pypi.org/project/azure-batch/10.0.0/) (#16156) +* Upgrade data plane to [azure batch 10.0.0](https://pypi.org/project/azure-batch/10.0.0/) (#16156) * [BREAKING CHANGE] az batch job task-counts: Change the output from a JSON object returning task counts to a complex JSON object that includes task counts (`taskCounts`) as well as task slot counts (`taskSlotCounts`). (#16156) **Compute** @@ -68,27 +56,27 @@ Release History **DataBoxEdge** -* new command module: support for data-box-edge devices and management (#16193) +* New command module: support for data-box-edge devices and management (#16193) **IoT** -* Updated device key generation (#16129) +* Update device key generation (#16129) * Update identity-enabled hub tests to fix endpoint RBAC issues (#16128) **Key Vault** -* `az keyvault key import`: support `--kty` for importing BYOK keys (#16223) +* `az keyvault key import`: Support `--kty` for importing BYOK keys (#16223) **Monitor** -* `az monitor metrics alert create`: improve error message to give more actionable insight (#16255) +* `az monitor metrics alert create`: Improve error message to give more actionable insight (#16255) **Network** -* `az network private-endpoint create`: add more declaration of '--subnet' and '--private-connection-resource-id' (#16174) +* `az network private-endpoint create`: Add more declaration of '--subnet' and '--private-connection-resource-id' (#16174) * Change validator of application-gateway ssl-cert create (#16256) * Migrate network to track2 SDK (#16245) -* Bugfix for "az network traffic-manager profile create" when using "--routing-method MultiValue" (#16300) +* Fix bug for "az network traffic-manager profile create" when using "--routing-method MultiValue" (#16300) **Profile** @@ -97,9 +85,6 @@ Release History **Resource** * `az provider register`: Add --accept-terms for registering RPaaS (#16194) - -**resource** - * Fix parsing JSON files with multi-line strings (#15502) **Role** @@ -108,7 +93,7 @@ Release History **Security** -* - Add secure score commands (#16198) +* Add secure score commands (#16198) * Fix update alert command and support new value (#16291) **SQL** @@ -124,7 +109,9 @@ Release History **Synapse** -* 1. Add new cmdlets az synapse sql ad-admin show, create, update, delete (#16241) +* Add new cmdlets az synapse sql ad-admin show, create, update, delete (#16241) +* Add new cmdlet az synapse workspace firewall-rule update (#16241) +* Add new cmdlets az synapse sql audit-policy show, update (#16241) * Add integration runtime related cmdlets (#15498) 2.16.0 From ebd863c127ee26d908ee77d5594092ee92bd673e Mon Sep 17 00:00:00 2001 From: Zunli Hu Date: Fri, 25 Dec 2020 11:20:27 +0800 Subject: [PATCH 3/4] Update HISTORY.rst --- src/azure-cli/HISTORY.rst | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/azure-cli/HISTORY.rst b/src/azure-cli/HISTORY.rst index 41baabba321..fc055aa8501 100644 --- a/src/azure-cli/HISTORY.rst +++ b/src/azure-cli/HISTORY.rst @@ -29,6 +29,8 @@ Release History * `az ts`: Add support for --tags (#16149) * `az ts`: Support deleting a single version (#16295) +* `az provider register`: Add --accept-terms for registering RPaaS (#16194) +* Fix parsing JSON files with multi-line strings (#15502) **ARO** @@ -82,11 +84,6 @@ Release History * Fix "missing secret or certificate in order to authenticate through a service principal" (#16219) -**Resource** - -* `az provider register`: Add --accept-terms for registering RPaaS (#16194) -* Fix parsing JSON files with multi-line strings (#15502) - **Role** * `az ad sp create-for-rbac`: Deprecate creating Contributor role assignment by default (#16081) From 4baa9d8b9c434bc514aa3c65517cb213d272c4f0 Mon Sep 17 00:00:00 2001 From: Feng Zhou <55177366+fengzhou-msft@users.noreply.github.com> Date: Fri, 25 Dec 2020 11:34:59 +0800 Subject: [PATCH 4/4] Update azure-pipelines.yml --- azure-pipelines.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 46d2b5484b6..c1d50ca7371 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -329,17 +329,17 @@ jobs: echo "== Testing pip install on Python 3.6 ==" docker run \ --rm -v $PYPI_FILES:/mnt/pypi python:3.6 \ - /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION && az self-test && az --version && sleep 5" + /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5" echo "== Testing pip install on Python 3.7 ==" docker run \ --rm -v $PYPI_FILES:/mnt/pypi python:3.7 \ - /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION && az self-test && az --version && sleep 5" + /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5" echo "== Testing pip install on Python 3.8 ==" docker run \ --rm -v $PYPI_FILES:/mnt/pypi python:3.8 \ - /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION && az self-test && az --version && sleep 5" + /bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5" displayName: 'Test pip Install'