Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
126 commits
Select commit Hold shift + click to select a range
0c41203
[Search] Fix the help guide for `--identity-type` parameter (#17039)
Feb 22, 2021
03ae751
[SQL] az sql db replica create: Add --secondary-type argument (#16960)
bradrich-msft Feb 23, 2021
f1a9713
bump msrest to 0.6.21 (#17012)
houk-ms Feb 23, 2021
3feea02
[Extension] Add azmirror cloud endpoint for installing extensions in …
fengzhou-msft Feb 23, 2021
fffde7e
[Storage] Upgrade storage api version to 2021-01-01 (#17028)
Juliehzl Feb 23, 2021
1851e38
[Storage] Support version in Lifecyle management policy (#16724)
Juliehzl Feb 23, 2021
691c711
{codeowner} update cosmosdb codeowner (#17046)
Juliehzl Feb 23, 2021
ce5f382
{Packaging} Bump msal and remove msal-extensions (#16672)
fengzhou-msft Feb 23, 2021
7bdbf68
[Network] bump version from '2020-07-01' to '2020-08-01' (#16889)
msyyc Feb 23, 2021
609c658
[Storage] Support storage account shared key access management (#16759)
Juliehzl Feb 23, 2021
c0e08e9
[Storage]`az storage account network-rule`: GA resource access rules …
Juliehzl Feb 23, 2021
d2a2152
[Backup] BugFix: Enabled Alternate Location Restore for SQL/SAPHANA p…
Feb 23, 2021
de1792b
{monitor} Fix `az monitor workspace saved-search` examples (#16890)
kairu-ms Feb 23, 2021
0df2aaf
Update help message for '--tables' parameter (#16888)
kairu-ms Feb 23, 2021
c8f6772
add check for empty command_str in _search_in_extension_commands (#17…
fengzhou-msft Feb 23, 2021
237d46f
Add generateRandomAppNames.json to setup (#17035)
calvinsID Feb 23, 2021
1ba1fa6
[CosmosDB] Upgrade to version 3.0.0 and add support for NetworkAclByp…
kristynhamasaki Feb 24, 2021
d9eec8d
[ARM] az deployment group/sub/mg/tenant validate/create/what-if: Supp…
shenglol Feb 24, 2021
7308fc8
[Network] `az network public-ip create`: Support '--zone 1 2 3' after…
msyyc Feb 24, 2021
0c891fb
{Compute} New examples in az sig image-version update (#17033)
olayemio Feb 24, 2021
e9ffa1d
rename argument '--vouter-name' by '--routeserver' (#17049)
kairu-ms Feb 24, 2021
b791aa1
[Media] Updating AMS extension to 2020 sdk (#16492)
hivyas Feb 24, 2021
b73474d
[OpenShift] update of az openshift deprecation warning (#16604)
dbradish-microsoft Feb 24, 2021
201a931
[Network]`az network express-route peering create`: Support ipv6 addr…
msyyc Feb 24, 2021
fe0dc40
rename id-system-assigned to mi-system-assigned (#17074)
fengzhou-msft Feb 25, 2021
2fd81f4
[Network] `az network public-ip create`: Expose a new argument `--tie…
jsntcy Feb 25, 2021
0a42656
[KeyVault] BREAKING CHANGE: `id` changes to be `jobId`, `azureStorage…
houk-ms Feb 25, 2021
2fa9fc8
[CDN] Add cli support for AFD SKU (#16951)
t-bzhan Feb 25, 2021
20963c0
[Storage] Support double encryption for encryption scope (#17087)
Juliehzl Feb 25, 2021
a5c40c1
[IoTCentral] `az iot central app`: Address several S360 fixes (#17022)
poanchen Feb 25, 2021
b2c8e71
decouple az next (#17009)
zhoxing-ms Feb 25, 2021
a399e5b
[Storage] az storage account blob-service-properties update: Support …
evelyn-ys Feb 25, 2021
6075b8a
{Network} workaround for load balancers about change of 'zone' (#17088)
msyyc Feb 25, 2021
2a20263
[AppService] functionapp: Added support for in preview dotnet-isolate…
gzuber Feb 25, 2021
40b5cc8
Support update for app definition (#16966)
zhoxing-ms Feb 25, 2021
5e86395
{Compute} Remove credentials from recordings (#16795)
jiasli Feb 25, 2021
3647a9a
{Storage} Fix live tests (#17089)
Juliehzl Feb 25, 2021
aa0155e
[Storage] Support rewrite existing blob (#16796)
Juliehzl Feb 26, 2021
ee69f30
fix (#17107)
msyyc Feb 26, 2021
fa7939b
[Compute] Upgrade API version to 2020-12-01 (#17042)
qwordy Feb 26, 2021
0de5fc3
[AppService] Fix #12150 Support for subnet ID in vnet-integration add…
madsd Feb 26, 2021
64c922c
[AppService] functionapp: Take Node.js 14 out of preview (#16877)
mhoeger Feb 26, 2021
0a22ec5
{Release} Upgrade to Azure CLI 2.20.0 (#17114)
Feb 26, 2021
6cfb0d2
{Pipeline} update azdev version to 0.1.29 in pipline (#16969)
kairu-ms Mar 1, 2021
99c5fb4
{Packaging} Bump setuptools to 52.0.0 (#16655)
jiasli Mar 1, 2021
041fae8
Upgrade pip version in bundled Python (#17091)
fengzhou-msft Mar 1, 2021
f40797c
[Style] Allow configuring theme (#17073)
jiasli Mar 1, 2021
a9ed00c
Remove some preview tags and change identity help (#17157)
avanigupta Mar 2, 2021
167c29d
{Doc} Add instruction on reading from stdin in PowerShell (#17005)
jiasli Mar 2, 2021
03b2970
[AppService]: fix #17053- `az webapp show` returning null values for …
Kotasudhakarreddy Mar 2, 2021
95d7c44
[RDBMS] Added tests for flexible server team pipeline (#16947)
DaeunYim Mar 3, 2021
481df7e
added id_part for sub resources too (#17165)
akshayneema Mar 3, 2021
9f7002a
add --custom-role-definition for role definition list (#17119)
houk-ms Mar 4, 2021
98b1811
fix issue: support security-domain download with --id (#17113)
houk-ms Mar 4, 2021
ebf957d
created separate test suite for crr (#17183)
akshayneema Mar 4, 2021
29539f2
[BACKUP] az backup protection check-vm: Add vm and resource-group as …
akshayneema Mar 4, 2021
89073aa
custom role definition public release (#17109)
houk-ms Mar 4, 2021
342a51e
{RDBMS} Fix tests by waiting for Long Running Operations (#17185)
jiasli Mar 5, 2021
971c697
Bump pip to 21.0.1 on rpm (#17178)
finlaysawyer Mar 5, 2021
f7fc070
[Core] Unify ADAL and MSAL error handler (#17072)
jiasli Mar 5, 2021
6b95101
[AKS] Add --no-uptime-sla (#17192)
xiazhan Mar 5, 2021
0d2a17d
acr: output a trace for docker command for self-diagnosis (#17115)
yugangw-msft Mar 8, 2021
af093c4
acr: fix a bug when run check-health behind corporate proxy (#17177)
yugangw-msft Mar 8, 2021
33d7e9e
[Service Fabric] az sf certificate: deprecate cluster cert commands (…
a-santamaria Mar 8, 2021
5368958
[acr] support anonymous pull (#17006)
yugangw-msft Mar 9, 2021
1dc3412
[Compute] Fix a Windows vm user update bug (#17257)
qwordy Mar 10, 2021
f3d0623
[NetAppFiles] Update azure-mgmt-netapp version to 0.16.0 (#17173)
Mar 10, 2021
c9d4742
[AppService] BREAKING CHANGE: Fixes #16087:az webapp config ssl creat…
ThejaChoudary Mar 10, 2021
5951458
add schedule in condition (#17266)
fengzhou-msft Mar 11, 2021
4fc8879
code and test (#17279)
msyyc Mar 11, 2021
3c2ec33
GA (#17264)
msyyc Mar 11, 2021
5a82f8f
[Packaging] Add azure-identity dependency (#17277)
jiasli Mar 11, 2021
cfd1c02
{Core} Bump MSAL to 1.10.0 (#17240)
jiasli Mar 11, 2021
4b457f8
[VM] Add #16037: az vm open-port accepts list of ports (#17255)
08nholloway Mar 12, 2021
edf7fd4
Fix rule engine action name paramter enum (#17282)
t-bzhan Mar 12, 2021
2daa61e
[AppService]: fix #17207 - for az webapp log config 'level' always de…
Kotasudhakarreddy Mar 12, 2021
8546899
[Compute] Fix #16585: az vmss deallocate --instance-ids failed (#17274)
08nholloway Mar 12, 2021
327ff93
[Compute] az vm create: New parameter `--platform-fault-domain` in FL…
qwordy Mar 15, 2021
1268336
[Extension] Improve extension incompatibility message and add extensi…
fengzhou-msft Mar 15, 2021
4b46041
[Storage] Fix #16917: az storage account generate-sas fails if a conn…
evelyn-ys Mar 16, 2021
764a966
[RDBMS] Python SDK migration (#17191)
DaeunYim Mar 16, 2021
79f17c4
[ARM] az bicep build: fix an issue where build warnings are not shown…
shenglol Mar 16, 2021
1272df2
{CI} Update CODEOWNERS(Do not merge) (#17313)
msyyc Mar 16, 2021
23487b5
[Compute] az ssh vm: Automatically launch browser when getting certif…
jiasli Mar 16, 2021
97a8221
{Misc} Fix broken Cloud Shell link (#17291)
jiasli Mar 16, 2021
1f518df
{AKS} az aks to use 2021-02-01 API. (#17229)
JunSun17 Mar 16, 2021
960c8e7
[AKS] Fix cross-sub assigning identity error and attach acr error (#1…
norshtein Mar 16, 2021
05fbd9a
{Doc} Add instructions to write and run commands in VS Code with the …
fengzhou-msft Mar 16, 2021
bed4963
[Upgrade] Fix 16952: Fix ImportError after upgrade (#17314)
fengzhou-msft Mar 16, 2021
5b95a87
[Network] Bump version from '2020-08-01' to '2020-11-01' (#17290)
msyyc Mar 17, 2021
aca6de4
[Storage] Fix #16979: `az storage container create` fails when provid…
evelyn-ys Mar 17, 2021
c7f31bd
Add support for node public IP prefix ID (#17138)
JunSun17 Mar 17, 2021
f6368c7
{Config} Redirect users from `az configure` to `az config` (#17288)
jiasli Mar 17, 2021
53e5005
{Compute} Regenerating SSHKEY code and repairing (#17316)
qwordy Mar 17, 2021
b685dbb
fix monitor metrics alert action add issue (#17289)
kairu-ms Mar 17, 2021
00981f8
{Compute} Update describe for 'azure/cli/command_modules/vm/_help.py'…
BigCat20196 Mar 17, 2021
d09a485
[SQL] Add Server Trust Group commands (#17275)
bojovicmatija Mar 18, 2021
424e804
[KeyVault] Add `--no-wait` for command `az keyvault security-domain d…
houk-ms Mar 18, 2021
29ccd9a
[RDBMS] PostgreSQL restore API change update and Database CRUD (#17271)
DaeunYim Mar 18, 2021
7b8ed45
[APIM] Fix APIM backup Service (#17315)
RupengLiu Mar 18, 2021
708a701
remove preview label in search (#17258)
kairu-ms Mar 18, 2021
8a8cddc
{Compute} Update history notes (#17280)
qwordy Mar 18, 2021
37b1e01
{Packaging} Remove aio and dist-info folders in MSI (#17317)
fengzhou-msft Mar 18, 2021
7d0dd03
[ACR] Fix#16700: Use "exists" api to check storage blob existence (#1…
northtyphoon Mar 18, 2021
b6ffdc1
[Network] `az network lb address-pool` : Support subnet when creating…
msyyc Mar 18, 2021
81ca8e1
[Compute] vm create: New parameter --count (#17217)
qwordy Mar 18, 2021
f4b9fcb
ignore snotshot (#17349)
Juliehzl Mar 18, 2021
88a6056
Fixing typo for one parameter (#17357)
milanbrkic-ms Mar 18, 2021
b1e86d6
{Feedback} Fix feedback minification (#17301)
gukoff Mar 19, 2021
28cf5d5
[Role] az ad app permission list/grant: Refine error message when no …
jiasli Mar 19, 2021
ba16edd
[Compute] vm create: Trusted Launch (#17354)
qwordy Mar 19, 2021
5d9660e
[RDBMS] Updating Python SDK to 8.1.0b2 (#17359)
DaeunYim Mar 19, 2021
d80da3b
{Release} Upgrade to Azure CLI 2.21.0 (#17360)
Mar 19, 2021
e6e8f8a
{Misc.} Bump marketplaceordering sdk to Track2 (#17356)
yungezz Mar 22, 2021
fb2d98f
refine help (#17385)
Juliehzl Mar 22, 2021
45d53d3
[Storage] `az storage fs directory upload/download`: Support adls gen…
evelyn-ys Mar 22, 2021
12a9158
[BACKUP] Fix #14776: Fix --force parameter functionality for az backu…
akshayneema Mar 23, 2021
8fa70cf
[backup] Fix on demand backup (#17367)
hiaga Mar 23, 2021
f0412f7
[EventGrid] az eventgrid system-topic create/update: Add MSI Support …
VidyaKukke Mar 23, 2021
4f0fe51
add codeowner (#17406)
Juliehzl Mar 23, 2021
2b86241
{Doc} Update roadmap for CLI track 2 migration (#17405)
jsntcy Mar 23, 2021
50ccb24
{Misc} Drop `from __future__ import print_function` (#17364)
jiasli Mar 24, 2021
0097fa3
Update yaml parser to stop wrapping output (#17401)
avanigupta Mar 24, 2021
0df58e9
{Misc} Drop `six` from core (#17366)
jiasli Mar 24, 2021
357805a
Revert "{CI} Update CODEOWNERS(Do not merge) (#17313)" (#17322)
msyyc Mar 24, 2021
983cb41
{Compute} Update function of auto_shutdown_vm (#17352)
BigCat20196 Mar 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
{Misc} Drop six from core (Azure#17366)
  • Loading branch information
jiasli authored Mar 24, 2021
commit 0df58e9ab2e4c4e0986f2bb8ce4fa0e02c2b4bff
6 changes: 2 additions & 4 deletions src/azure-cli-core/azure/cli/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
import sys
import timeit

import six

from knack.cli import CLI
from knack.commands import CLICommandsLoader
from knack.completion import ARGCOMPLETE_ENV_NAME
Expand Down Expand Up @@ -778,7 +776,7 @@ def _cli_command(self, name, operation=None, handler=None, argument_loader=None,

kwargs['deprecate_info'] = Deprecated.ensure_new_style_deprecation(self.cli_ctx, kwargs, 'command')

if operation and not isinstance(operation, six.string_types):
if operation and not isinstance(operation, str):
raise TypeError("Operation must be a string. Got '{}'".format(operation))
if handler and not callable(handler):
raise TypeError("Handler must be a callable. Got '{}'".format(operation))
Expand Down Expand Up @@ -854,7 +852,7 @@ def get_op_handler(self, operation, operation_group=None):
op = getattr(op, part)
if isinstance(op, types.FunctionType):
return op
return six.get_method_function(op)
return op.__func__
except (ValueError, AttributeError):
raise ValueError("The operation '{}' is invalid.".format(operation))

Expand Down
3 changes: 1 addition & 2 deletions src/azure-cli-core/azure/cli/core/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import time
import copy
from importlib import import_module
import six

# pylint: disable=unused-import
from azure.cli.core.commands.constants import (
Expand Down Expand Up @@ -711,7 +710,7 @@ def _run_job(self, expanded_arg, cmd_copy):
except Exception as ex: # pylint: disable=broad-except
if cmd_copy.exception_handler:
return cmd_copy.exception_handler(ex)
six.reraise(*sys.exc_info())
raise

def _run_jobs_serially(self, jobs, ids):
results, exceptions = [], []
Expand Down
11 changes: 5 additions & 6 deletions src/azure-cli-core/azure/cli/core/commands/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
import copy
import json
import re
from six import string_types

from azure.cli.core import AzCommandsLoader, EXCLUDED_PARAMS
from azure.cli.core.commands import LongRunningOperation, _is_poller, cached_get, cached_put
Expand Down Expand Up @@ -413,11 +412,11 @@ def _cli_generic_update_command(context, name, getter_op, setter_op, setter_arg_
child_arg_name='item_name', custom_function_op=None, **kwargs):
if not isinstance(context, AzCommandsLoader):
raise TypeError("'context' expected type '{}'. Got: '{}'".format(AzCommandsLoader.__name__, type(context)))
if not isinstance(getter_op, string_types):
if not isinstance(getter_op, str):
raise TypeError("Getter operation must be a string. Got '{}'".format(getter_op))
if not isinstance(setter_op, string_types):
if not isinstance(setter_op, str):
raise TypeError("Setter operation must be a string. Got '{}'".format(setter_op))
if custom_function_op and not isinstance(custom_function_op, string_types):
if custom_function_op and not isinstance(custom_function_op, str):
raise TypeError("Custom function operation must be a string. Got '{}'".format(
custom_function_op))

Expand Down Expand Up @@ -588,7 +587,7 @@ def handler(args): # pylint: disable=too-many-branches,too-many-statements

def _cli_wait_command(context, name, getter_op, custom_command=False, **kwargs):

if not isinstance(getter_op, string_types):
if not isinstance(getter_op, str):
raise ValueError("Getter operation must be a string. Got '{}'".format(type(getter_op)))

factory = _get_client_factory(name, custom_command=custom_command, **kwargs)
Expand Down Expand Up @@ -719,7 +718,7 @@ def handler(args):

def _cli_show_command(context, name, getter_op, custom_command=False, **kwargs):

if not isinstance(getter_op, string_types):
if not isinstance(getter_op, str):
raise ValueError("Getter operation must be a string. Got '{}'".format(type(getter_op)))

factory = _get_client_factory(name, custom_command=custom_command, **kwargs)
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/extension/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import traceback
import hashlib
from subprocess import check_output, STDOUT, CalledProcessError
from six.moves.urllib.parse import urlparse # pylint: disable=import-error
from urllib.parse import urlparse

from pkg_resources import parse_version

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --------------------------------------------------------------------------------------------

import unittest
from six import StringIO
from io import StringIO
from azure.cli.core.commands.transform import _parse_id, _add_resource_group


Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/tests/test_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import mock
import unittest
import difflib
from six import StringIO
from io import StringIO
from collections import namedtuple
from azure.cli.core import AzCommandsLoader, MainCommandsLoader
from azure.cli.core.commands import AzCliCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

import argparse
import unittest
from six import StringIO
from io import StringIO

from azure.cli.core.commands.validators import (validate_key_value_pairs, validate_tag,
validate_tags)
Expand Down
11 changes: 5 additions & 6 deletions src/azure-cli-core/azure/cli/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
import re
import logging

import six
from six.moves.urllib.request import urlopen # pylint: disable=import-error
from urllib.request import urlopen
from knack.log import get_logger
from knack.util import CLIError, to_snake_case

Expand Down Expand Up @@ -343,8 +342,8 @@ def _get_local_versions():

def get_az_version_string(use_cache=False): # pylint: disable=too-many-statements
from azure.cli.core.extension import get_extensions, EXTENSIONS_DIR, DEV_EXTENSION_SOURCES, EXTENSIONS_SYS_DIR

output = six.StringIO()
import io
output = io.StringIO()
versions = _get_local_versions()

# get the versions from pypi
Expand Down Expand Up @@ -527,7 +526,7 @@ def b64encode(s):
:return: base64 encoded string
:rtype: str
"""
encoded = base64.b64encode(six.b(s))
encoded = base64.b64encode(s.encode("latin-1"))
return encoded if encoded is str else encoded.decode('latin-1')


Expand Down Expand Up @@ -886,7 +885,7 @@ def send_raw_request(cli_ctx, method, url, headers=None, uri_parameters=None, #
value = getattr(endpoints, p)
except CloudEndpointNotSetException:
continue
if isinstance(value, six.string_types) and url.lower().startswith(value.lower()):
if isinstance(value, str) and url.lower().startswith(value.lower()):
resource = value
break
if resource:
Expand Down