Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merging Upstream #56

Merged
merged 87 commits into from
Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
3dfda68
{docs} docs template for extension (#3311)
msyyc May 14, 2021
69f4f3c
[Release] Update index.json for extension [ custom-providers ] (#3370)
May 14, 2021
0e629c1
[AKS] Update recording files to fix integration test error (#3378)
FumingZhang May 16, 2021
459a2fb
[k8s-extension] Release v0.4.0 with OpenServiceMesh (#3376)
jonathan-innis May 16, 2021
8a8c7ea
[Preview] Added azureDefender addon to aks-preview (#3333)
gal-ofir-ms May 16, 2021
26b58b1
[Release] Update index.json for extension [ k8s-extension ] (#3381)
May 16, 2021
9b4bd97
[Release] Update index.json for extension [ aks-preview ] (#3382)
May 16, 2021
7d6f388
Regenerated CLI using swagger api version 2021-05-01 (#3374)
KalpeshChavan12 May 17, 2021
8989634
[AKS] Add a live test pipeline for aks-preview PR check-in (#3292)
FumingZhang May 17, 2021
c0a8a77
[Release] Update index.json for extension [ maintenance ] (#3387)
May 17, 2021
b7f127c
Update requirements.txt (#3377)
msyyc May 18, 2021
12b8213
Update list-template.md (#3391)
msyyc May 18, 2021
6bb827f
[datafactory] Regenerate datafactory to support new linked service ty…
fengzhou-msft May 18, 2021
57f73ce
[Release] Update index.json for extension [ datafactory ] (#3393)
May 18, 2021
8dade2f
{ApplicationInsights} Fix test recordings (#3386)
kairu-ms May 18, 2021
65980fd
block azure-cli-ml in extension command tree (#3317)
fengzhou-msft May 19, 2021
970e9f0
remove download url for dev-spaces-preview (#3397)
xfz11 May 19, 2021
394d08d
[DataBox] Migrate to track2 (#3347)
00Kai0 May 19, 2021
bfd2ba6
[HPC-CACHE] Migrate to track2 (#3351)
00Kai0 May 19, 2021
5d160a8
Onboarding azure machine learning CLI (#3341)
Mossaka May 20, 2021
f19ddbe
Add compatible logic for track 2 migration of resource module (#3355)
zhoxing-ms May 20, 2021
56505e3
[AKS] Add ossku parameter for cluster and nodepool creation (#3375)
hbeberman May 20, 2021
36e84ea
[connected vmware] Onboarding connected vmware az cli extension (#3340)
sanmishra18 May 21, 2021
b0b33f4
{storage-blob-preview} fix test (#3406)
Juliehzl May 21, 2021
53a0dc3
[Release] Update index.json for extension [ redisenterprise ] (#3269)
May 21, 2021
c5060d7
[Release] Update index.json for extension [ hpc-cache ] (#3401)
May 21, 2021
7a78f52
[Release] Update index.json for extension [ databox ] (#3400)
May 21, 2021
39d2d9b
[Firewall]`az network firewall create`: Add new parameter `--tier` (#…
msyyc May 21, 2021
ecbde3b
Add data plane commands to az webpubsub (#3318)
zackliu May 21, 2021
d7a1eff
Update version and history (#3412)
zackliu May 21, 2021
06360dc
[Release] Update index.json for extension [ azure-firewall ] (#3414)
May 21, 2021
aa9a31d
[Release] Update index.json for extension [ webpubsub ] (#3413)
May 21, 2021
918bc02
Fix private build (#40)
jonathan-innis May 21, 2021
d74f2a8
[Connectedk8s] Added OID param for custom-locations feature (#3407)
alphaWizard May 24, 2021
fe49c3e
Remove Oracle To Pg scenario support (#3289)
sumitdvlp May 25, 2021
2e41804
[azure-cli-ml] Update version to 1.29.0 (#3417)
j-so May 25, 2021
1c27b75
[Release] Update index.json for extension [ dms-preview ] (#3418)
May 25, 2021
4d84aac
[Release] Update index.json for extension [ connectedk8s ] [ mesh ] […
May 25, 2021
d970631
[Release] Update index.json for extension [ connectedk8s ] (#3419)
May 25, 2021
4eae39d
[Scheduled-query] support query placeholder for `--condition` argumen…
kairu-ms May 25, 2021
1a10660
Add support for user agent string in calls to AQ via CLI (#3398)
ricardo-espinoza May 25, 2021
da7af92
Update version and history info for az quantum extension 0.5.0 (#3421)
ricardo-espinoza May 25, 2021
df9e512
[Release] Update index.json for extension [ healthcareapis ] (#3361)
May 25, 2021
c872a38
[AKS] Polish scripts used in aks pr check-in test pipeline (#3415)
FumingZhang May 25, 2021
462e237
[rdbms-connect] Added file execution command (#3257)
DaeunYim May 25, 2021
32ff5dd
[Release] Update index.json for extension [ aks-preview ] (#3409)
May 25, 2021
e7293f8
[Cosmos DB] Removing RoleDefinition and RoleAssignment APIs since the…
nichatur May 25, 2021
9351932
[Release] Update index.json for extension [ cosmosdb-preview ] (#3425)
May 25, 2021
4dd4a09
{diskpool} Add new module `az disk-pool` (#2882)
Juliehzl May 25, 2021
7e9bc18
[Release] Update index.json for extension [ rdbms-connect ] (#3423)
May 25, 2021
6172345
[Release] Update index.json for extension [ diskpool ] (#3427)
May 25, 2021
8b2490d
change amlk8s to amlarc (#42)
yuyue9284 May 25, 2021
24e1a25
[IoT] IoT Extension release v0.10.12 (#3429)
c-ryan-k May 25, 2021
0d87176
IoT Extension release v0.10.13 (#3431)
c-ryan-k May 25, 2021
b696e52
modified az confluent Azure service node name (#3430)
dbradish-microsoft May 26, 2021
90675e0
[Release] Update index.json for extension [ quantum ] (#3422)
May 26, 2021
6357f87
Add support to format log streaming of structured JSON output (#3408)
allxiao May 26, 2021
4f95bb6
[Release] Update index.json for extension [ spring-cloud ] (#3434)
May 26, 2021
9b14178
[AKS] fix aks pr check-in test pipeline (#3389)
FumingZhang May 26, 2021
262380a
[Datadog] Release CLI for GA (#3428)
limingu May 27, 2021
926e864
[Release] Update index.json for extension [ datadog ] (#3205)
May 27, 2021
724acde
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
jonathan-innis May 27, 2021
9100ff5
Servicebus client model changes (#44)
jonathan-innis May 27, 2021
ff71619
[Virtual-wan] support `-o table` output for `az network vhub get-effe…
kairu-ms May 28, 2021
ef102a7
[Release] Update index.json for extension [ virtual-wan ] (#3440)
May 28, 2021
3e253a9
[k8s-extension] HotFix Broken calls to ServiceBus for Track2 models (…
jonathan-innis May 28, 2021
d5a5290
[Release] Update index.json for extension [ k8s-extension ] (#3441)
May 28, 2021
9d1678e
{storage-preview} Add hns soft delete (#2877)
Juliehzl May 31, 2021
436a0cd
[Release] Update index.json for extension [ storage-preview ] (#3446)
May 31, 2021
5ed250a
[Scheduled-Query] update api version (#3399)
kairu-ms May 31, 2021
4f21314
[Release] Update index.json for extension [ scheduled-query ] (#3447)
May 31, 2021
f3e9c16
{Diskpool} Fix issue for generation issue (#3450)
Juliehzl Jun 2, 2021
1e0105c
[Release] Update index.json for extension [ diskpool ] (#3452)
Jun 2, 2021
dcd6929
vendor 2021-05-01 sdk (#3453)
levimm Jun 2, 2021
19a0ab7
TOC: az datadog mapping update (#3451)
dbradish-microsoft Jun 2, 2021
6955567
Read SSL cert and key from files (#38)
liakaz Jun 2, 2021
a46235b
Upgrade release version
jonathan-innis Jun 2, 2021
b0f25af
Merge branch 'master' of https://github.com/Azure/azure-cli-extension…
jonathan-innis Jun 2, 2021
2889d53
Liakaz/inference read ssl from file (#47)
liakaz Jun 3, 2021
67babd8
Fix style issues (#51)
jonathan-innis Jun 4, 2021
590e642
Fixed scoring fe related extension param names (#49)
liakaz Jun 8, 2021
fc661a8
Add distro validation for osm-arc (#50)
nshankar13 Jun 11, 2021
eb466aa
Add distro validation for osm-arc (#50)
nshankar13 Jun 11, 2021
b9b932a
Merge branch 'k8s-extension/public' of github.com:AzureArcForKubernet…
jonathan-innis Jun 11, 2021
b0af598
Add distro validation for osm-arc (#53)
nshankar13 Jun 15, 2021
c355ad5
Add Custom Delete Logic for Partners (#54)
jonathan-innis Jun 22, 2021
47b5b8d
Merge branch 'k8s-extension/private' into k8s-extension/public
jonathan-innis Jun 23, 2021
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: 4 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -191,3 +191,7 @@
/src/cloudservice/ @qwordy

/src/webpubsub/ @zackliu

/src/connectedvmware/ @sanmishra18

/src/diskpool/ @Juliehzl
35 changes: 21 additions & 14 deletions k8s-custom-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ stages:
- job: K8sExtensionTestSuite
displayName: "Run the Test Suite"
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
steps:
- checkout: self
- bash: |
Expand Down Expand Up @@ -56,15 +56,16 @@ stages:
source env/bin/activate

# clone azure-cli
git clone -q --single-branch -b dev https://github.com/Azure/azure-cli.git ../azure-cli

pip install --upgrade pip
pip install azdev
pip install -q azdev

ls $(CLI_REPO_PATH)

azdev --version
azdev setup -r $(CLI_REPO_PATH) -e $(EXTENSION_NAME)
azdev setup -c ../azure-cli -r $(CLI_REPO_PATH) -e $(EXTENSION_NAME)
azdev extension build $(EXTENSION_NAME)

workingDirectory: $(CLI_REPO_PATH)
displayName: "Setup and Build Extension with azdev"

Expand Down Expand Up @@ -98,6 +99,10 @@ stages:
chmod +x ./kind
./kind create cluster
displayName: "Create and Start the Kind cluster"

- bash: |
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
displayName: "Upgrade az to latest version"

- task: AzureCLI@2
displayName: Bootstrap
Expand All @@ -108,7 +113,7 @@ stages:
inlineScript: |
.\Bootstrap.ps1 -CI
workingDirectory: $(TEST_PATH)

- task: AzureCLI@2
displayName: Run the Test Suite Public Extensions Only
inputs:
Expand Down Expand Up @@ -153,7 +158,7 @@ stages:

- job: BuildPublishExtension
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
displayName: "Build and Publish the Extension Artifact"
variables:
CLI_REPO_PATH: $(Agent.BuildDirectory)/s
Expand Down Expand Up @@ -197,13 +202,15 @@ stages:
source env/bin/activate

# clone azure-cli
git clone -q --single-branch -b dev https://github.com/Azure/azure-cli.git ../azure-cli

pip install --upgrade pip
pip install azdev
pip install -q azdev

ls $(CLI_REPO_PATH)

azdev --version
azdev setup -r $(CLI_REPO_PATH) -e $(EXTENSION_NAME)
azdev setup -c ../azure-cli -r $(CLI_REPO_PATH) -e $(EXTENSION_NAME)
azdev extension build $(EXTENSION_NAME)
workingDirectory: $(CLI_REPO_PATH)
displayName: "Setup and Build Extension with azdev"
Expand All @@ -218,7 +225,7 @@ stages:
- job: CheckLicenseHeader
displayName: "Check License"
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.6'
Expand Down Expand Up @@ -249,7 +256,7 @@ stages:
- job: StaticAnalysis
displayName: "Static Analysis"
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.6'
Expand All @@ -263,7 +270,7 @@ stages:
- job: IndexVerify
displayName: "Verify Extensions Index"
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.7'
Expand All @@ -280,7 +287,7 @@ stages:
- job: SourceTests
displayName: "Integration Tests, Build Tests"
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
strategy:
matrix:
Python36:
Expand All @@ -303,7 +310,7 @@ stages:
- job: LintModifiedExtensions
displayName: "CLI Linter on Modified Extensions"
pool:
vmImage: 'ubuntu-16.04'
vmImage: 'ubuntu-latest'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.6'
Expand Down Expand Up @@ -334,4 +341,4 @@ stages:
displayName: "CLI Linter on Modified Extension"
env:
ADO_PULL_REQUEST_LATEST_COMMIT: $(System.PullRequest.SourceCommitId)
ADO_PULL_REQUEST_TARGET_BRANCH: $(System.PullRequest.TargetBranch)
ADO_PULL_REQUEST_TARGET_BRANCH: $(System.PullRequest.TargetBranch)
33 changes: 29 additions & 4 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -920,14 +920,39 @@ import-export update:
backup_drive_manifest:
rule_exclusions:
- option_length_too_long
iot pnp capability-model update:
iot hub configuration update:
parameters:
repo_endpoint:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
iot pnp interface update:
iot hub device-identity update:
parameters:
repo_endpoint:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
iot hub device-twin update:
parameters:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
iot hub distributed-tracing update:
parameters:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
iot hub module-identity update:
parameters:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
iot hub module-twin update:
parameters:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
iot edge deployment update:
parameters:
auth_type_dataplane:
rule_exclusions:
- no_parameter_defaults_for_update_commands
k8sconfiguration create:
Expand Down
9 changes: 5 additions & 4 deletions scripts/ci/avail-ext-doc/list-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@ ms.topic: article
ms.prod: azure
ms.technology: azure-cli
ms.devlang: azure-cli
ms.custom: devx-track-azurecli
---

# Available extensions for the Azure CLI

This article is a complete list of the available extensions for the Azure CLI which are supported by Microsoft.

The list of extensions is also available from the CLI. To get it, run [az extension list-available](/cli/azure/extension#az_extension_list_available):
The list of extensions is also available from the CLI. To get it, run [az extension list-available](/cli/azure/extension#az_extension_list_available):

```azurecli-interactive
az extension list-available --output table
```

| Name | Version | Summary | Preview |
|------|---------|---------|---------|{% for extension in extensions %}
| [{{ extension.name }}]({{ extension.project_url }}) | {{ extension.version }} | {{ extension.desc }} | {{ extension.preview }} |{% endfor %}
| Extension | Required Minimum CLI Version | Description | Status | Release Notes |
|----|-----------------|-------------|---------|---------------|{% for extension in extensions %}
|[{{ extension.name }}]({{ extension.project_url }}) | {{ extension.min_cli_core_version }} | {{ extension.desc }} | {{ extension.status }} | [{{extension.version}}]({{extension.history}}) |{% endfor %}
3 changes: 2 additions & 1 deletion scripts/ci/avail-ext-doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
Jinja2~=2.10.1
wheel==0.31.1
wheel==0.31.1
requests
20 changes: 17 additions & 3 deletions scripts/ci/avail-ext-doc/update_extension_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pkg_resources import parse_version

from jinja2 import Template # pylint: disable=import-error

import requests

SCRIPTS_LOCATION = os.path.abspath(os.path.join('.', 'scripts'))

Expand All @@ -36,12 +36,26 @@ def get_extensions():
for _, exts in index_extensions.items():
# Get latest version
exts = sorted(exts, key=lambda c: parse_version(c['metadata']['version']), reverse=True)

# some extension modules may not include 'HISTORY.rst'
project_url = exts[0]['metadata']['extensions']['python.details']['project_urls']['Home']
history_tmp = project_url + '/HISTORY.rst'
history = project_url if str(requests.get(history_tmp).status_code) == '404' else history_tmp
if exts[0]['metadata'].get('azext.isPreview'):
status = 'Preview'
elif exts[0]['metadata'].get('azext.isExperimental'):
status = 'Experimental'
else:
status = 'GA'

extensions.append({
'name': exts[0]['metadata']['name'],
'desc': exts[0]['metadata']['summary'],
'min_cli_core_version': exts[0]['metadata']['azext.minCliCoreVersion'],
'version': exts[0]['metadata']['version'],
'project_url': exts[0]['metadata']['extensions']['python.details']['project_urls']['Home'],
'preview': 'Yes' if exts[0]['metadata'].get('azext.isPreview') else ''
'project_url': project_url,
'history': history,
'status': status
})
return extensions

Expand Down
4 changes: 2 additions & 2 deletions scripts/ci/build_ext_cmd_tree.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ export AZURE_CORE_COLLECT_TELEMETRY=False
export AZURE_EXTENSION_INDEX_URL=https://raw.githubusercontent.com/Azure/azure-cli-extensions/master/src/index.json

output=$(az extension list-available --query [].name -otsv)
# azure-cli-iot-ext is the deprecated old versions of the renamed azure-iot extension
blocklist=("azure-cli-iot-ext")
# azure-cli-ml is replaced by ml
blocklist=("azure-cli-ml")

rm -f ~/.azure/extCmdTreeToUpload.json

Expand Down
12 changes: 12 additions & 0 deletions scripts/ci/credscan/CredScanSuppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@
"src\\stream-analytics\\azext_stream_analytics\\_help.py"
],
"_justification": "dummy passwords for one-off resources"
},
{
"file": [
"src\\storage-blob-preview\\azext_storage_blob_preview\\tests\\latest\\recordings\\test_storage_blob_incremental_copy.yaml"
],
"_justification": "[Storage] response body contains random value recognized as secret in outdated recoding files of storage may remove in the future"
},
{
"file": [
"src\\diskpool\\README.md"
],
"_justification": "Faked password"
}
]
}
14 changes: 14 additions & 0 deletions src/aks-preview/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,24 @@

Release History
===============

0.5.15
+++++
* Update to use 2021-05-01 api-version

0.5.14
+++++
* Add os-sku argument for cluster and nodepool creation

0.5.13
+++++
* Add compatible logic for the track 2 migration of resource dependence

0.5.12
+++++
* Add --enable-azure-rbac and --disable-azure-rbac in aks update
* Support disabling local accounts
* Add addon `azure-defender` to list of available addons under `az aks enable-addons` command

0.5.11
+++++
Expand Down
1 change: 1 addition & 0 deletions src/aks-preview/az_aks_tool/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__pycache__
42 changes: 42 additions & 0 deletions src/aks-preview/az_aks_tool/cli.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

import glob
import os
import logging

import az_aks_tool.const as const
import az_aks_tool.index as index
logger = logging.getLogger(__name__)


def get_cli_mod_data(mod_name=const.ACS_MOD_NAME, profile="latest"):
profile_split = profile.split('-')
profile_namespace = '_'.join([profile_split[-1]] + profile_split[:-1])

# key value pairs of all modules(in azcli & extention) and its absolute path, used later to find test indexes
path_table = index.get_path_table()
command_modules = path_table["mod"]
inverse_name_table = index.get_name_index(invert=True)

# construct 'import_name' & mod_data', used later to find test indexes
acs_mod_path = command_modules[mod_name]
mod_data = {
"alt_name": "{}{}".format(const.COMMAND_MODULE_PREFIX, mod_name),
"filepath": os.path.join(acs_mod_path, "tests", profile_namespace),
"base_path": "azure.cli.command_modules.{}.tests.{}".format(mod_name, profile_namespace),
"files": {}
}

cli_test = index.discover_module_tests(mod_name, mod_data)
return cli_test


def get_cli_test_index(module_data=None, mod_name=const.ACS_MOD_NAME, profile="latest"):
if mod_name in module_data:
mod_data = module_data[mod_name]
else:
mod_data = get_cli_mod_data(mod_name=mod_name, profile=profile)
return mod_data["files"]
17 changes: 17 additions & 0 deletions src/aks-preview/az_aks_tool/const.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

import sys

IS_WINDOWS = sys.platform.lower() in ['windows', 'win32']

CLI_REPO_NAME = "azure-cli"
EXT_REPO_NAME = 'azure-cli-extensions'
COMMAND_MODULE_PREFIX = 'azure-cli-'
EXTENSION_PREFIX = 'azext_'
ACS_MOD_NAME = "acs"
AKS_PREVIEW_MOD_NAME = EXTENSION_PREFIX + "aks_preview" # azext_aks_preview

ENV_VAR_TEST_LIVE = 'AZURE_TEST_RUN_LIVE' # denotes that tests should be run live instead of played back
Loading