Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
56 commits
Select commit Hold shift + click to select a range
eb96c42
{CI} Revert hack code for containerapp-preview (#6616)
wangzelin007 Aug 11, 2023
45a41b4
[image integrity] add image integrity disable (#6603)
fseldow Aug 11, 2023
ba02173
[Release] Update index.json for extension [ aks-preview ]
azclibot Aug 11, 2023
1d949a9
Guitar/new api version 20230701preview (#6626)
guitarsheng Aug 11, 2023
8827067
Guitar/new api version 20230901preview merge (#6633)
guitarsheng Aug 11, 2023
7853e98
[Storage-Preview] `az storage account migration`: Add start and show …
calvinhzy Aug 11, 2023
ea718b5
[Release] Update index.json for extension [ storage-preview ]
azclibot Aug 11, 2023
bc425a7
{CI} Update policy config (#6635)
wangzelin007 Aug 11, 2023
68dbfe1
[connectedmachine] release stable version 2022-12-27 (#6522)
yaotongms Aug 14, 2023
496ebf3
Add pluginca parameters for az aks mesh command (#6631)
deveshdama Aug 14, 2023
ff6cb60
[Release] Update index.json for extension [ connectedmachine ]
azclibot Aug 14, 2023
cb18200
replace functions in aks-preview with the ones in azure-cli (#6612)
MartinForReal Aug 14, 2023
26d0c92
[Release] Update index.json for extension [ aks-preview ]
azclibot Aug 14, 2023
8655f76
[dataprotection] AKS Hooks for backup and restore, time validation fi…
zubairabid Aug 14, 2023
129c37f
[Release] Update index.json for extension [ dataprotection ]
azclibot Aug 14, 2023
115504f
[Interactive] Optimize the visualization of help text when the window…
ReaNAiveD Aug 14, 2023
e76181b
[Release] Update index.json for extension [ interactive ]
azclibot Aug 14, 2023
89a372d
{Service Connector}: Fix auth type issue and check db existence (#6625)
xfz11 Aug 14, 2023
20fa9e9
{dataprotection} Updated documentation + new API Version (#6638)
zubairabid Aug 14, 2023
7dc70df
[Maintenacne RP] Code generation using 2023-04-01 API version (#6589)
KalpeshChavan12 Aug 14, 2023
e05ee5e
[Release] Update index.json for extension [ maintenance ]
azclibot Aug 14, 2023
4f00afe
update version (#6643)
xfz11 Aug 14, 2023
e610854
{datamigration} update description of datamigration sql-db create (#6…
yadongyaly Aug 15, 2023
2a0f066
[Az.Reservations] Fix reservation update command to accept location …
gaoyp830 Aug 15, 2023
d5b7a4b
containerapp remove preview tag for some commands (#6642)
Greedygre Aug 15, 2023
50d286b
{Blueprint} `az blueprint`: Migrate to atomic commands (#6602)
ZengTaoxu Aug 15, 2023
4659525
[Release] Update index.json for extension [ blueprint ]
azclibot Aug 15, 2023
2140647
update new version (#6646)
xfz11 Aug 15, 2023
8d7ba90
[Release] Update index.json for extension [ serviceconnector-password…
azclibot Aug 15, 2023
19f9f10
{CI} Fix policy migration issue (#6651)
wangzelin007 Aug 16, 2023
b6bcf13
{Azure-firewall} Migrate Azure-firewall to AAZ (#6610)
Jing-song Aug 16, 2023
363fb44
[Release] Update index.json for extension [ azure-firewall ]
azclibot Aug 16, 2023
51beadb
[Az.Reservation] Bump up version (#6650)
gaoyp830 Aug 16, 2023
e7d24f8
[Release] Update index.json for extension [ reservation ]
azclibot Aug 16, 2023
dc27eeb
containerapp add three type for enable workload profiles (#6647)
Greedygre Aug 16, 2023
1fdb9b2
Updated NetworkCloud 2023-07-01 latest changes for stable version 1.0…
priyamshet Aug 17, 2023
9598e81
[Release] Update index.json for extension [ networkcloud ]
azclibot Aug 17, 2023
d195c72
[dataprotection] Full support for Soft Delete in V2 (#6639)
zubairabid Aug 17, 2023
0bd4831
[Release] Update index.json for extension [ dataprotection ]
azclibot Aug 17, 2023
5f2302b
Update _utils.py (#6566)
navba-MSFT Aug 21, 2023
c7c645a
Support --token-store, --sas-url-secret, --sas-url-secret-name, --yes…
njuCZ Aug 21, 2023
7c8736c
[connectedvmware] Refresh sdk from public swagger (#6664)
nascarsayan Aug 21, 2023
6fe1761
[Release] Update index.json for extension [ connectedvmware ]
azclibot Aug 21, 2023
eeaa887
[ACR Query Extension] Bug fix: omitting login server endpoint suffix …
CarolineNB Aug 22, 2023
9829bd2
[Release] Update index.json for extension [ acrquery ]
azclibot Aug 22, 2023
5de950f
{Mesh} Migrate mesh to AAZ (#6644)
Jing-song Aug 22, 2023
7f92414
amg: fix a typo (#6661)
yugangw-msft Aug 22, 2023
bd1cc80
[Release] Update index.json for extension [ mesh ]
azclibot Aug 22, 2023
d4b859b
containerapp allow yaml without environment (#6663)
Greedygre Aug 22, 2023
aeefcc0
Revert "Guitar/new api version 20230901preview merge (#6633)" (#6667)
yuwzho Aug 22, 2023
23945bf
ManagedNetworkFabric - Updated CLI extension for API version 2023-06-…
rahulm-msft Aug 22, 2023
f28a5d7
[Release] Update index.json for extension [ managednetworkfabric ]
azclibot Aug 22, 2023
b65a35a
Add allocationBlockPrefixSize to support vnetBlock (#6676)
isaac-dasan Aug 23, 2023
b08d111
[Release] Update index.json for extension [ dnc ]
azclibot Aug 23, 2023
f50c852
Merge branch 'main' of github.com:Azure/azure-cli-extensions into new…
Aug 23, 2023
810697c
update history file to remove extension-types api
Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 3 additions & 1 deletion .github/policies/resourceManagement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ configuration:
- or:
- payloadType: Issues
- isAction:
action: Opened
action: Labeled
then:
- if:
- hasLabel:
Expand Down Expand Up @@ -4591,6 +4591,8 @@ configuration:
reviewer: Juliehzl
- requestReview:
reviewer: jijohn14
- requestReview:
reviewer: Greedygre
description: '[container app] Auto assign labels and reviewers based on PR title/description.'
- if:
- payloadType: Issues
Expand Down
32 changes: 19 additions & 13 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2170,6 +2170,11 @@ networkcloud kubernetescluster agentpool wait:
kubernetes_cluster_name:
rule_exclusions:
- option_length_too_long
networkfabric acl create:
parameters:
dynamic_match_configurations:
rule_exclusions:
- option_length_too_long
networkfabric controller create:
parameters:
workload_er_connections:
Expand Down Expand Up @@ -2274,18 +2279,6 @@ networkfabric internetgateway update:
internet_gateway_rule_id:
rule_exclusions:
- option_length_too_long
networkfabric internetgatewayrule create:
rule_exclusions:
- missing_command_test_coverage
networkfabric internetgatewayrule delete:
rule_exclusions:
- missing_command_test_coverage
networkfabric internetgatewayrule list:
rule_exclusions:
- missing_command_test_coverage
networkfabric internetgatewayrule show:
rule_exclusions:
- missing_command_test_coverage
networkfabric internetgatewayrule update:
rule_exclusions:
- missing_command_test_coverage
Expand All @@ -2297,9 +2290,22 @@ networkfabric ipextendedcommunity create:
ip_extended_community_rules:
rule_exclusions:
- option_length_too_long
networkfabric npb show:
networkfabric tap update:
rule_exclusions:
- missing_command_test_coverage
networkfabric taprule create:
parameters:
dynamic_match_configurations:
rule_exclusions:
- option_length_too_long
polling_interval_in_seconds:
rule_exclusions:
- option_length_too_long
networkfabric taprule update:
parameters:
dynamic_match_configurations:
rule_exclusions:
- option_length_too_long
notification-hub authorization-rule create:
parameters:
notification_hub_name:
Expand Down
10 changes: 1 addition & 9 deletions scripts/ci/build_ext_cmd_tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,7 @@ export AZURE_EXTENSION_INDEX_URL=https://raw.githubusercontent.com/Azure/azure-c
output=$(az extension list-available --query [].name -otsv)
# azure-cli-ml is replaced by ml
# disable alias which relies on Jinja2 2.10
# -----------------------------------------------
# When two extensions have the same command, the following error will be reported:
# `Exception: Key: show already exists in containerapp. 2 extensions cannot have the same command!`
# Temporarily skip the containerapp-preview extension,
# Which will cause the containerapp-preview extension to be unable to use the dynamic load function.
# That is, when using the unique command of containerapp-preview, the extension cannot be automatically prompted to install.
# TODO: remove this after support for building dependencies in command index between extensions
# -----------------------------------------------
blocklist=("azure-cli-ml" "alias" "containerapp-preview")
blocklist=("azure-cli-ml" "alias")

rm -f ~/.azure/extCmdTreeToUpload.json

Expand Down
15 changes: 2 additions & 13 deletions scripts/ci/index_ref_doc.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,35 +50,24 @@
class TestIndexRefDocsMeta(type):
def __new__(mcs, name, bases, _dict):

def gen_test(ext_name, ext_url, filename, dep_url):
def gen_test(ext_name, ext_url, filename):
def test(self):
if dep_url.get(ext_name):
dep_file = get_whl_from_url(dep_url[ext_name][0], dep_url[ext_name][1], self.whl_dir)
else:
dep_file = None
ext_file = get_whl_from_url(ext_url, filename, self.whl_dir)
ref_doc_out_dir = os.path.join(REF_DOC_OUT_DIR, ext_name)
if not os.path.isdir(ref_doc_out_dir):
os.mkdir(ref_doc_out_dir)
script_args = [sys.executable, REF_GEN_SCRIPT, '--extension-file', ext_file, '--output-dir',
ref_doc_out_dir]
if dep_file:
script_args.extend(['--dependent-file', dep_file])
try:
check_call(script_args)
except CalledProcessError as e:
traceback.print_exc()
raise e
return test

dep_url = {}
for ext_name, ext_url, filename in ALL_TESTS:
test_name = "test_ref_doc_%s" % ext_name
# The containerapp-preview extension is a special case,
# it must depend on the continerapp extension and cannot run independently.
if ext_name == 'containerapp':
dep_url['containerapp-preview'] = [ext_url, filename]
_dict[test_name] = gen_test(ext_name, ext_url, filename, dep_url)
_dict[test_name] = gen_test(ext_name, ext_url, filename)
return type.__new__(mcs, name, bases, _dict)


Expand Down
8 changes: 0 additions & 8 deletions scripts/ci/verify_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,9 @@ def _cmd(cmd):
check_call(cmd, shell=True)

def add_from_code(self):
# The containerapp-preview extension is a special case,
# it must depend on the continerapp extension and cannot run independently.
if self.extension_name == 'containerapp-preview':
self._cmd('azdev extension add containerapp')
self._cmd('azdev extension add {}'.format(self.extension_name))

def remove(self):
# The containerapp-preview extension is a special case,
# it must depend on the continerapp extension and cannot run independently.
if self.extension_name == 'containerapp-preview':
self._cmd('azdev extension remove containerapp')
self._cmd('azdev extension remove {}'.format(self.extension_name))

def linter(self):
Expand Down
13 changes: 3 additions & 10 deletions scripts/refdoc/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,14 @@ def print_status(msg=''):
print('-- '+msg)


def generate(ext_file, output_dir, dep_file):
def generate(ext_file, output_dir):
# Verify sphinx installed in environment before we get started
check_call(['sphinx-build', '--version'])
if not output_dir:
output_dir = tempfile.mkdtemp(prefix='ref-doc-out-', dir=os.getcwd())
print_status('Using output directory {}'.format(output_dir))
temp_extension_dir = tempfile.mkdtemp()
try:
if dep_file:
pip_cmd = [sys.executable, '-m', 'pip', 'install', '--target',
os.path.join(temp_extension_dir, 'extension'),
dep_file, '--disable-pip-version-check', '--no-cache-dir']
print_status('Executing "{}"'.format(' '.join(pip_cmd)))
check_call(pip_cmd)
pip_cmd = [sys.executable, '-m', 'pip', 'install', '--target', os.path.join(temp_extension_dir, 'extension'),
ext_file, '--disable-pip-version-check', '--no-cache-dir']
print_status('Executing "{}"'.format(' '.join(pip_cmd)))
Expand Down Expand Up @@ -81,7 +75,6 @@ def _type_path(val):
help='Path to the extension .whl file.', required=True, type=_type_ext_file)
parser.add_argument('-o', '--output-dir', dest='output_dir',
help='Path to place the generated documentation. By default, a temporary directory will be created.', required=False, type=_type_path)
parser.add_argument('-d', '--dependent-file', dest='dep_file',
help='Path to the dependent extension .whl file.', required=False, type=str)

args = parser.parse_args()
generate(args.ext_file, args.output_dir, args.dep_file)
generate(args.ext_file, args.output_dir)
5 changes: 5 additions & 0 deletions src/acrquery/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Release History
===============
1.0.1
++++++
* Add: New mock files to validate query request.
* Bug fix: Omit login server endpoint suffix.

1.0.0
++++++
* Initial release.
4 changes: 3 additions & 1 deletion src/acrquery/azext_acrquery/_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from azure.cli.command_modules.acr._validators import validate_registry_name


def load_arguments(self, _):

with self.argument_context('acr query') as c:
c.argument('registry_name', options_list=['--name', '-n'], help='The name of the container registry that the query is run against.')
c.argument('registry_name', options_list=['--name', '-n'], validator=validate_registry_name, help='The name of the container registry that the query is run against.')
c.argument('repository', help='The repository that the query is run against. If no repository is provided, the query is run at the registry level.')
c.argument('kql_query', options_list=['--kql-query', '-q'], help='The KQL query to execute.')
c.argument('skip_token', help='Skip token to get the next page of the query if applicable.')
Expand Down
101 changes: 0 additions & 101 deletions src/acrquery/azext_acrquery/tests/latest/mock_test_acr_query.py

This file was deleted.

Loading