Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
783355f
add rulesEngine support
hytao Dec 31, 2019
1b43539
Fix typo in `KeyVaultMgmtScenarioTest` (#11722)
bim-msft Dec 31, 2019
cbacc40
[General][Minor]Update Code Onwers (#11705)
mmyyrroonn Dec 31, 2019
fc532b4
[Compute][Feature]az vm create: Support default data source settings …
mmyyrroonn Dec 31, 2019
1c88592
[RecoveryServices Backup]Added disk exclusion Feature for IAASVM (#11…
Jan 2, 2020
b1db572
fix typo in authoring_commands.md (#11730)
Jan 2, 2020
24c48b3
update codeowner for resource (#11739)
Juliehzl Jan 2, 2020
7afe0b8
Fix the test of test_managedapp (#11727)
zhoxing-ms Jan 2, 2020
cece44d
Fix the test of test_resource_policyset (#11723)
zhoxing-ms Jan 2, 2020
7565b12
add libc6-compat in dockerfile (#11742)
fengzhou-msft Jan 2, 2020
dfb9b34
Update Cosmos DB python package (#11551)
shurd Jan 2, 2020
594f6a0
[AppConfig] Adding new command 'set-keyvault' to kv subgroup (#11571)
avanigupta Jan 2, 2020
591db0d
Merge hotfix for version color into dev (#11741)
fengzhou-msft Jan 2, 2020
2de9058
[AppConfig] Support Import/Export of features in yaml files (#11637)
avanigupta Jan 3, 2020
71a4ff6
[App Service] Add az webapp up flag for HTML static sites (#11719)
ammanifold Jan 3, 2020
8ded942
udpate
Jan 3, 2020
1ebd51a
udpate changelog
Jan 3, 2020
a96aad8
update params.py
Jan 3, 2020
9152d87
update
Jan 3, 2020
c8b028d
[Compute] Feature issue #11203 Add new reapply command action for az …
arrownj Jan 3, 2020
585eb06
Added new parameters for account blob service properties to manage de…
zhoxing-ms Jan 3, 2020
4d684d2
[misc] Add 'az version' (#11680)
jiasli Jan 3, 2020
cae1b8f
update
Jan 3, 2020
0346d31
Removing ReceiveDisabled status from EventHub and ServiceBus CLI doc …
basilhariri Jan 3, 2020
85f04e7
[RBAC] Return exit code 3 if app or sp doesn't exist (#11725)
jiasli Jan 3, 2020
8213288
update azure-cli version to 2.0.79 (#11762)
Jan 3, 2020
dc0e83d
update history
Jan 3, 2020
0d0937f
fix params
Jan 3, 2020
ca85d63
retry CI
Jan 3, 2020
bfbb4b2
add codeonwer for sql (#11777)
Juliehzl Jan 6, 2020
7391ca4
fix: az monitor metric alert create. Fix test failure. (#11776)
mmyyrroonn Jan 6, 2020
fd1c960
updating BYOS commands to mark them as preview (#11755)
btardif Jan 6, 2020
ad8d70f
Fix: tox can use ADO default Python 2.7 (#11802)
Jan 9, 2020
347caa7
python3.8 migration for homebrew (#11803)
fengzhou-msft Jan 10, 2020
ab8b7df
[Storage] Support Table and Queue Encryption Service for storage acco…
Juliehzl Jan 10, 2020
7bb6319
update CODEOWNERS (#11814)
Juliehzl Jan 10, 2020
bf60878
[Webapp] Adding E2E tests for az webapp up (#11774)
panchagnula Jan 10, 2020
ddf6f45
[Doc] Try new features before release (#11784)
qwordy Jan 10, 2020
ce44655
Chore: move CredScansuppressions.json to codeownder guarded folder (#…
Jan 10, 2020
ec3f1cb
[Compute] disk update: Add --disk-encryption-set and --encryption-typ…
qwordy Jan 12, 2020
16d6ebf
[AKS] Update example help text to reflect change of defaults to Stand…
seanmck Jan 13, 2020
cde7498
Upgrade to Azure CLI 2.0.80 (#11826)
Jan 13, 2020
ac278b9
Add table output to backup commands (#11764)
Jan 13, 2020
bcf9c48
Fix typo in History.rst (#11835)
ankitkumarr Jan 14, 2020
51e26fa
[IoT Central] Add new sku name to iotcentral (#11810)
poanchen Jan 14, 2020
d369f9e
[Core] Expose example_provider hook to include AI examples (#10987)
mirdaki Jan 14, 2020
3a40b9f
fix: enabling monitoring for OpenShift managed cluster (#11778)
ganga1980 Jan 14, 2020
9629542
Update fedora install troubleshooting doc (#11827)
fengzhou-msft Jan 14, 2020
d735dbf
Fix: 'az redis update' operation for RDB/AOF enabled redis caches (#1…
MECHANDR Jan 14, 2020
0b41c91
Chore: disable CredScan job temporary for ADO security concern (#11844)
Jan 14, 2020
496f78d
add rulesEngine support
hytao Dec 31, 2019
ca4536a
udpate
Jan 3, 2020
8a6d577
udpate changelog
Jan 3, 2020
55a0994
update params.py
Jan 3, 2020
4aac0b4
update
Jan 3, 2020
8347cc8
update
Jan 3, 2020
487f5df
update history
Jan 3, 2020
ddacc2a
fix params
Jan 3, 2020
479f362
retry CI
Jan 3, 2020
0537052
update
Jan 14, 2020
4209ffd
Merge branch 'rulesEngine2' of https://github.com/hytao/azure-cli int…
Jan 14, 2020
9cdc78e
add rulesEngine support
hytao Dec 31, 2019
1b6f7f6
udpate
Jan 3, 2020
b1efd26
udpate changelog
Jan 3, 2020
706b2a0
update params.py
Jan 3, 2020
e691ffb
update
Jan 3, 2020
150d1ac
update
Jan 3, 2020
c3ee609
update history
Jan 3, 2020
75a22b5
fix params
Jan 3, 2020
7360ba2
retry CI
Jan 3, 2020
95be9d7
add rulesEngine support
hytao Dec 31, 2019
25f5404
update
Jan 14, 2020
5adaf2f
a
Jan 14, 2020
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
27 changes: 14 additions & 13 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# See for instructions on this file https://help.github.com/articles/about-codeowners/

*help.py @sptramer @Juliehzl
*help.yaml @sptramer @Juliehzl
*help.yml @sptramer @Juliehzl
*help.py @haroldrandom @Juliehzl
*help.yaml @haroldrandom @Juliehzl
*help.yml @haroldrandom @Juliehzl

/tools/ @zikalino
/scripts/ @zikalino
/src/azure-cli-testsdk/ @zikalino
/src/azure-cli-core/ @jiasli
/tools/ @haroldrandom @fengzhou-msft
/scripts/ @haroldrandom @fengzhou-msft
/src/azure-cli-testsdk/ @bim-msft @MyronFanQiu @haroldrandom
/src/azure-cli-core/ @jiasli @Juliehzl
/src/azure-cli/azure/cli/command_modules/acr/ @djyou
/src/azure-cli/azure/cli/command_modules/acs/ @rjtsdl
/src/azure-cli/azure/cli/command_modules/advisor/ @Prasanna-Padmanabhan
/src/azure-cli/azure/cli/command_modules/appservice/ @qwordy
/src/azure-cli/azure/cli/command_modules/appservice/ @qwordy @Juliehzl
/src/azure-cli/azure/cli/command_modules/backup/ @dragonfly91
/src/azure-cli/azure/cli/command_modules/batch/ @bgklein
/src/azure-cli/azure/cli/command_modules/batchai/ @AlexanderYukhanov
Expand All @@ -22,17 +22,18 @@
/src/azure-cli/azure/cli/command_modules/dls/ @lewu-msft
/src/azure-cli/azure/cli/command_modules/eventgrid/ @kalyanaj
/src/azure-cli/azure/cli/command_modules/extension/ @zikalino
/src/azure-cli/azure/cli/command_modules/keyvault/ @jiasli
/src/azure-cli/azure/cli/command_modules/keyvault/ @bim-msft @fengzhou-msft @jiasli
/src/azure-cli/azure/cli/command_modules/monitor/ @MyronFanQiu
/src/azure-cli/azure/cli/command_modules/natgateway/ @khannarheams
/src/azure-cli/azure/cli/command_modules/network/ @MyronFanQiu
/src/azure-cli/azure/cli/command_modules/natgateway/ @khannarheams @MyronFanQiu @haroldrandom
/src/azure-cli/azure/cli/command_modules/network/ @MyronFanQiu @haroldrandom
/src/azure-cli/azure/cli/command_modules/privatedns/ @MyronFanQiu @haroldrandom
/src/azure-cli/azure/cli/command_modules/policyinsights/ @cheggert
/src/azure-cli/azure/cli/command_modules/profile/ @jiasli
/src/azure-cli/azure/cli/command_modules/resource/ @Juliehzl
/src/azure-cli/azure/cli/command_modules/resource/ @Juliehzl @zhoxing-ms
/src/azure-cli/azure/cli/command_modules/role/ @jiasli
/src/azure-cli/azure/cli/command_modules/storage/ @Juliehzl
/src/azure-cli/azure/cli/command_modules/servicefabric/ @QingChenmsft
/src/azure-cli/azure/cli/command_modules/sql/ @jaredmoo
/src/azure-cli/azure/cli/command_modules/sql/ @jaredmoo @Juliehzl
/src/azure-cli/azure/cli/command_modules/vm/ @qwordy
/src/azure-cli/azure/cli/command_modules/eventhubs/ @v-ajnava
/src/azure-cli/azure/cli/command_modules/servicebus/ @v-ajnava
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LABEL maintainer="Microsoft" \
# libintl and icu-libs - required by azure devops artifact (az extension add --name azure-devops)
RUN apk add --no-cache bash openssh ca-certificates jq curl openssl git zip \
&& apk add --no-cache --virtual .build-deps gcc make openssl-dev libffi-dev musl-dev linux-headers \
&& apk add --no-cache libintl icu-libs \
&& apk add --no-cache libintl icu-libs libc6-compat \
&& update-ca-certificates

ARG JP_VERSION="0.1.3"
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ $ pip3 install --upgrade --pre azure-cli --extra-index-url https://azurecliprod.

The edge build is generated for each PR merged to the `dev` branch as a part of the Azure DevOps Pipelines.

## Get builds of arbitrary commit or PR

If you would like to get builds of arbitrary commit or PR, see:

[Try new features before release](doc/try_new_features_before_release.md)

## Developer Setup

If you would like to setup a development environment and contribute to the CLI, see:
Expand Down
58 changes: 32 additions & 26 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,32 +19,33 @@ jobs:
echo "Reject pull request directly to master branch"
exit 1

- job: CredScan
displayName: "Credential Scan"

pool:
vmImage: "windows-2019"
steps:
- task: CredScan@2
inputs:
toolMajorVersion: 'V2'

- task: PostAnalysis@1
inputs:
AllTools: false
APIScan: false
BinSkim: false
CodesignValidation: false
CredScan: true
FortifySCA: false
FxCop: false
ModernCop: false
PoliCheck: false
RoslynAnalyzers: false
SDLNativeRules: false
Semmle: false
TSLint: false
ToolLogsNotFoundAction: 'Standard'
#- job: CredScan
# displayName: "Credential Scan"
#
# pool:
# vmImage: "windows-2019"
# steps:
# - task: CredScan@2
# inputs:
# toolMajorVersion: 'V2'
# suppressionsFile: ./scripts/ci/credscan/CredScanSuppressions.json
#
# - task: PostAnalysis@1
# inputs:
# AllTools: false
# APIScan: false
# BinSkim: false
# CodesignValidation: false
# CredScan: true
# FortifySCA: false
# FxCop: false
# ModernCop: false
# PoliCheck: false
# RoslynAnalyzers: false
# SDLNativeRules: false
# Semmle: false
# TSLint: false
# ToolLogsNotFoundAction: 'Standard'

- job: ExtractMetadata
displayName: Extract Metadata
Expand Down Expand Up @@ -382,10 +383,13 @@ jobs:
matrix:
Python27:
python.version: '2.7'
tox_env: 'py27'
Python36:
python.version: '3.6'
tox_env: 'py36'
Python38:
python.version: '3.8'
tox_env: 'py38'
steps:
- task: UsePythonVersion@0
displayName: 'Use Python $(python.version)'
Expand All @@ -395,6 +399,8 @@ jobs:
displayName: 'Install pip and tox'
- bash: ./scripts/ci/unittest.sh
displayName: 'Run Unit Test'
env:
TOXENV: $(tox_env)

- job: IntegrationTestAgainstProfiles
displayName: Integration Test against Profiles
Expand Down
Binary file added doc/assets/1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/assets/2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/assets/3.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/assets/4.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/assets/5.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/authoring_command_modules/authoring_commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ However, most commonly, the `custom_func_name` and `custom_func_type` kwargs wil
- `getter_type` - A `CliCommandType` object which will be used to locate the getter. Only needed if the getter is a custom command (uncommon).
- `setter_name` - The name of the method which will be used to update the object instance using a PUT method. If the method is named `create_or_update` (which is the case for most SDKs), this can be omitted.
- `setter_type` - A `CliCommandType` object which will be used to locate the setter. Only needed if the setter is a custom command (uncommon).
- `setter_arg_name` - The name of the argument in the setter which corresponds to the object being updated. If the name if `parameters` (which is the case for most SDKs), this can be omitted.
- `setter_arg_name` - The name of the argument in the setter which corresponds to the object being updated. If the name is `parameters` (which is the case for most SDKs), this can be omitted.
- `custom_func_name` (optional) - The name of a method which accepts the object being updated (must be named `instance`), mutates, and returns that object. This is commonly used to add convenience options to the command by listing them in the method signature, similar to a purely custom method. The difference is that a custom command function returns the command result while a generic update custom function returns only the object being updated. A simple custom function might look like:

```Python
Expand Down
10 changes: 8 additions & 2 deletions doc/install_troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,13 +83,19 @@ $ curl https://azurecliprod.blob.core.windows.net/install | bash
Errors on install with cffi or cryptography
-------------------------------------------

If you get errors on install on **OS X**, upgrade pip by typing:
If you get errors on installation on **OS X**, upgrade pip by typing:

```shell
pip install --upgrade --force-reinstall pip
```

If you get errors on install on **Debian or Ubuntu** such as the examples below,
If you get errors on installation on **Fedora** such as `No module named '_cffi_backend'`,
install `python3-cffi` by typing:
```shell
sudo yum install -y python3-cffi
```

If you get errors on installation on **Debian or Ubuntu** such as the examples below,
install libssl-dev and libffi-dev by typing:

```shell
Expand Down
32 changes: 32 additions & 0 deletions doc/try_new_features_before_release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Try new features before release
===

This documentation shows how to try new features in commit or PR before release even if the PR is not merged.

Azure CLI releases new versions every 3 weeks. Many customers and developers are eager to try and test new features before the formal release. Fortunately, Azure CLI project builds artifacts for every commit and PR and you can download them.

## Tutorial for commit

Step 1. Select a commit. Click the √ or × symbol. Click "Details" of a "build package" item.

![](assets/1.PNG)

Step 2. Click "View more details on Azure Pipelines".

![](assets/2.PNG)

Step 3. Click "1 artifact"

![](assets/3.PNG)

Step 4. Download your favorite artifact.

![](assets/4.PNG)

## Tutorial for PR

Step 1. Open a PR no matter it is merged or not. Click "Checks" tab.

![](assets/5.PNG)

Step 2-4. Follow the same steps of tutorial for commit.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"src\\azure-cli\\azure\\cli\\command_modules\\appconfig\\tests\\latest\\recordings\\test_azconfig_credential.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appconfig\\tests\\latest\\recordings\\test_azconfig_feature.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appconfig\\tests\\latest\\recordings\\test_azconfig_feature_filter.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appconfig\\tests\\latest\\recordings\\test_azconfig_import_export_naming_conventions.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appconfig\\tests\\latest\\recordings\\test_azconfig_import_export.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appconfig\\tests\\latest\\recordings\\test_azconfig_kv.yaml"
],
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/homebrew/docker/formula_template.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class AzureCli < Formula
{{ bottle_hash }}

depends_on "[email protected]"
depends_on "python"
depends_on "python@3.8"

{{ resources }}

Expand Down
6 changes: 6 additions & 0 deletions src/azure-cli-core/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
Release History
===============

2.0.80
++++++
* No changes

2.0.79
++++++
* Fix #11586: `az login` is not recorded in server telemetry

2.0.78
Expand Down
5 changes: 4 additions & 1 deletion src/azure-cli-core/azure/cli/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# --------------------------------------------------------------------------------------------
from __future__ import print_function

__version__ = "2.0.78"
__version__ = "2.0.80"

import os
import sys
Expand Down Expand Up @@ -86,6 +86,7 @@ def get_cli_version(self):
def show_version(self):
from azure.cli.core.util import get_az_version_string
from azure.cli.core.commands.constants import SURVEY_PROMPT
import colorama
ver_string, updates_available = get_az_version_string()
print(ver_string)
if updates_available == -1:
Expand All @@ -97,7 +98,9 @@ def show_version(self):
else:
print('Your CLI is up-to-date.')

colorama.init() # This could be removed when knack fix is released
print('\n' + SURVEY_PROMPT)
colorama.deinit() # This could be removed when knack fix is released

def exception_handler(self, ex): # pylint: disable=no-self-use
from azure.cli.core.util import handle_exception
Expand Down
7 changes: 6 additions & 1 deletion src/azure-cli-core/azure/cli/core/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def _print_examples(help_file):
from colorama import Style
indent = 0
_print_indent('Examples', indent)
for e in help_file.examples:
for e in AzCliHelp.example_provider(help_file):
indent = 1
_print_indent(u'{0}'.format(e.short_summary), indent)
indent = 2
Expand Down Expand Up @@ -190,6 +190,11 @@ def update_loaders_with_help_file_contents(self, nouns):
file_contents[name] = self._name_to_content[name]
self.versioned_loaders[ldr_cls_name].update_file_contents(file_contents)

# This method is meant to be a hook that can be overridden by an extension or module.
@staticmethod
def example_provider(help_file):
return help_file.examples


class CliHelpFile(KnackHelpFile):

Expand Down
13 changes: 13 additions & 0 deletions src/azure-cli-core/azure/cli/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,19 @@ def _get_version_string(name, version_dict):
return version_string, updates_available


def get_az_version_json():
from azure.cli.core.extension import get_extensions
versions = {'extensions': {}}

for dist in get_installed_cli_distributions():
versions[dist.key] = dist.version
extensions = get_extensions()
if extensions:
for ext in extensions:
versions['extensions'][ext.name] = ext.version or 'Unknown'
return versions


def get_json_object(json_string):
""" Loads a JSON string as an object and converts all keys to snake case """

Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
logger.warn("Wheel is not available, disabling bdist_wheel hook")
cmdclass = {}

VERSION = "2.0.78"
VERSION = "2.0.80"
# If we have source, validate that our version numbers match
# This should prevent uploading releases with mismatched versions.
try:
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-testsdk/azure/cli/testsdk/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def create_random_name(self, prefix, length):
def create_guid(self):
import uuid
self.test_guid_count += 1
moniker = '88888888-0000-0000-0000-00000000' + ("%0.4X" % self.test_guid_count)
moniker = '88888888-0000-0000-0000-00000000' + ("%0.4x" % self.test_guid_count)

if self.in_recording:
name = uuid.uuid4()
Expand Down
Loading