Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
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
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
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
/src/azure-cli/azure/cli/command_modules/appconfig/ @shenmuxiaosen @avanigupta @qwordy
/src/azure-cli/azure/cli/command_modules/appservice/ @qwordy @Juliehzl
/src/azure-cli/azure/cli/command_modules/aro/ @mjudeikis @jim-minter
/src/azure-cli/azure/cli/command_modules/backup/ @dragonfly91 @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/backup/ @dragonfly91 @fengzhou-msft @qwordy @akshayneema
/src/azure-cli/azure/cli/command_modules/batch/ @bgklein @gingi @dpwatrous @paterasMSFT @qwordy
/src/azure-cli/azure/cli/command_modules/batchai/ @AlexanderYukhanov
/src/azure-cli/azure/cli/command_modules/cloud/ @jiasli @fengzhou-msft @Juliehzl
Expand All @@ -32,6 +32,7 @@
/src/azure-cli/azure/cli/command_modules/dls/ @akharit @rahuldutta90 @Juliehzl @jsntcy
/src/azure-cli/azure/cli/command_modules/dms/ @temandr @binuj
/src/azure-cli/azure/cli/command_modules/eventhubs/ @v-ajnava
/src/azure-cli/azure/cli/command_modules/eventgrid/ @Juliehzl @evelyn-ys @VidyaKukke
/src/azure-cli/azure/cli/command_modules/extension/ @fengzhou-msft @msyyc
/src/azure-cli/azure/cli/command_modules/hdinsight/ @aim-for-better @Juliehzl @kairu-ms
/src/azure-cli/azure/cli/command_modules/iot/ @digimaun
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@

A great cloud needs great tools; we're excited to introduce *Azure CLI*, our next generation multi-platform command line experience for Azure.

Take a test run now from Azure Cloud Shell!

[![](https://shell.azure.com/images/launchcloudshell.png "Launch Azure Cloud Shell")](https://shell.azure.com)
Take a test run now from [Azure Cloud Shell](https://portal.azure.com/#cloudshell)!

## Installation

Expand Down Expand Up @@ -105,6 +103,19 @@ Please check [Tips for using Azure CLI effectively](https://docs.microsoft.com/e

For more usage examples, take a look at our [GitHub samples repo](https://github.com/Azure/azure-cli-samples) or [https://docs.microsoft.com/cli/azure/overview](https://docs.microsoft.com/cli/azure/overview).

### Write and run commands in Visual Studio Code

With the [Azure CLI Tools](https://marketplace.visualstudio.com/items?itemName=ms-vscode.azurecli) Visual Studio Code extension, you can create `.azcli` files and use these features:
- IntelliSense for commands and their arguments.
- Snippets for commands, inserting required arguments automatically.
- Run the current command in the integrated terminal.
- Run the current command and show its output in a side-by-side editor.
- Show documentation on mouse hover.
- Display current subscription and defaults in status bar.
- To enable IntelliSense for other file types like `.ps1` or `.sh`, see [microsoft/vscode-azurecli#48](https://github.com/microsoft/vscode-azurecli/issues/48).

![Azure CLI Tools in Action](https://github.com/microsoft/vscode-azurecli/blob/main/images/in_action.gif?raw=true)

## Data Collection

The software may collect information about you and your use of the software and send it to Microsoft. Microsoft may use this information to provide services and improve our products and services. You may turn off the telemetry as described in the repository. There are also some features in the software that may enable you and Microsoft to collect data from users of your applications. If you use these features, you must comply with applicable law, including providing appropriate notices to users of your applications together with a copy of Microsoft's privacy statement. Our privacy statement is located at https://go.microsoft.com/fwlink/?LinkID=824704. You can learn more about data collection and use in the help documentation and our privacy statement. Your use of the software operates as your consent to these practices.
Expand Down Expand Up @@ -179,7 +190,7 @@ $ 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
### Get builds of arbitrary commit or PR

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

Expand Down
39 changes: 33 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,16 @@ jobs:
displayName: Test Windows MSI

dependsOn: BuildWindowsMSI
# condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
condition: false
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'vs2017-win2016'
steps:
- task: DownloadPipelineArtifact@1
displayName: 'Download Build Artifacts'
inputs:
TargetPath: '$(Build.ArtifactStagingDirectory)/metadata'
artifactName: metadata

- task: DownloadPipelineArtifact@1
displayName: 'Download Build Artifacts'
inputs:
Expand All @@ -196,16 +201,38 @@ jobs:
inputs:
targetType: inline
script: |
if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {
# Start another Powershell process as Admin and execute this script again
$arguments = "& '" +$myinvocation.mycommand.definition + "'"
Start-Process powershell -Verb runAs -ArgumentList $arguments
# Stop if the PowerShell is not run as Admin
Break
}
# The following are executed by elevated PowerShell
az --version

$InstallArgs = @(
"/I"
'"$env:SYSTEM_ARTIFACTSDIRECTORY/msi/Microsoft Azure CLI.msi"'
"/i"
"`"$env:SYSTEM_ARTIFACTSDIRECTORY\msi\Microsoft Azure CLI.msi`""
"/q"
"/norestart"
"/L*v"
"/l*v"
".\install_logs.txt"
)
$pre_installed_version=az version --query '\"azure-cli\"' -o tsv
$to_be_installed_version=Get-Content $(System.ArtifactsDirectory)/metadata/version
if ($pre_installed_version -eq $to_be_installed_version){
# See https://docs.microsoft.com/windows/win32/msi/reinstallmode about options of REINSTALLMODE
$reinstall_option="REINSTALL=ALL REINSTALLMODE=emus"
$InstallArgs += $reinstall_option
}
Start-Process "msiexec.exe" -ArgumentList $InstallArgs -Wait -NoNewWindow
Get-Content .\install_logs.txt

$installed_version=az version --query '\"azure-cli\"' -o tsv
if ($installed_version -ne $to_be_installed_version){
echo "The MSI failed to install."
Exit 1
}
az --version
az self-test

Expand Down
18 changes: 17 additions & 1 deletion build_scripts/windows/scripts/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if not exist %PYTHON_DIR% (
popd
)
set PYTHON_EXE=%PYTHON_DIR%\python.exe
%PYTHON_EXE% -m pip install --upgrade pip==21.0.1
%PYTHON_EXE% -m pip install --upgrade pip==21.0.1 setuptools==52.0.0

robocopy %PYTHON_DIR% %BUILDING_DIR% /s /NFL /NDL

Expand Down Expand Up @@ -146,10 +146,26 @@ for /f %%f in ('dir /b /s *.pyc') do (
)
popd

:: Remove __pycache__
echo remove pycache
for /d /r %BUILDING_DIR%\Lib\site-packages\pip %%d in (__pycache__) do (
if exist %%d rmdir /s /q "%%d"
)

:: Remove aio
echo remove aio
for /d /r %BUILDING_DIR%\Lib\site-packages\azure\mgmt %%d in (aio) do (
if exist %%d rmdir /s /q "%%d"
)

:: Remove dist-info
echo remove dist-info
pushd %BUILDING_DIR%\Lib\site-packages
for /d %%d in ("*.dist-info") do (
if exist %%d rmdir /s /q "%%d"
)
popd

if %errorlevel% neq 0 goto ERROR

::ensure propagate_env_change.exe is available
Expand Down
2 changes: 0 additions & 2 deletions doc/sphinx/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# --------------------------------------------------------------------------------------------
# -*- coding: utf-8 -*-

from __future__ import print_function

import os
import sphinx

Expand Down
8 changes: 4 additions & 4 deletions doc/track_2_migration_roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ This document provides the roadmap for Track 2 SDK migration in Azure CLI. When
| ACR | Yes |Not Started | 04/30/2021 |Catherine||Preview (8.0.0b1) | Preview (3.0.0rc16) | Medium (Once two months) | Module |
| CosmosDB | Yes |Not Started | 04/30/2021 |Yong||GA (6.0.0) | Preview (2.0.0rc1) | Medium (Once two months) |Module|
| ServiceBus | Yes |Not Started | 04/30/2021 |Catherine||GA (6.0.0) | GA (1.0.0) | Medium (Once four months) | Module |
| CDN | Yes |Not Started | 04/30/2021 |Yong||GA (10.0.0) | GA (6.0.0) | Low (Once half year) | Module |
| NetAppFiles | Yes |Not Started | 04/30/2021 |Yong||GA (1.0.0) | Preview (0.15.0) | Medium (Once two months) | Module|
| CDN | Yes |**Doing** | 04/30/2021 |Yong||GA (10.0.0) | GA (6.0.0) | Low (Once half year) | Module |
| NetAppFiles | Yes |**Doing** | 04/30/2021 |Yong||GA (1.0.0) | Preview (0.15.0) | Medium (Once two months) | Module|
| PrivateDNS | Yes | Not Started | 04/30/2021 |Yong||Preview (1.0.0b1) | Preview (0.1.0) |N/A | Module |
| ApplicationInsights |Yes | Not Started | 04/30/2021 |Yong||GA (1.0.0) | Vendored_Preview (0.2.0) | N/A | Extension |
| Firewall |Yes| Not Started | 04/30/2021 |Yong|| Network: GA (17.0.0) | Network: Vendored_GA (13.0.0) | N/A | Extension |
| Firewall |Yes| **Completed** | 04/30/2021 |Yong|| Network: GA (17.0.0) | Network: Vendored_GA (13.0.0) | N/A | Extension |
| Frontdoor | Yes | Not Started | 04/30/2021 |Yong||Preview (1.0.0b1) | Vendored_Preview (0.3.1) | N/A | Extension |
|**Phase 2: Management&Governance&others** | | | | | | |||||
| CostManagement | Yes | **Completed** | 06/30/2021 |||Vendored_GA (1.2.0) | N/A | N/A | Extension |
| DataFactory | Yes | **Completed** | 06/30/2021 |||Vendored_SDK | N/A | N/A | Extension |
| RDBMS | Yes|Not Started | 06/30/2021 |Yong||GA (8.0.0) | Preview (3.1.0rc1) | Medium (Once two months) | Module |
| RDBMS | Yes|**Completed** | 06/30/2021 |Yong||GA (8.0.0) | Preview (3.1.0rc1) | Medium (Once two months) | Module |
| EventGrid | Yes |Not Started | 06/30/2021 |Catherine|| GA (8.0.0) | Preview (3.0.0rc8) | Medium (Once three months) | Module |
| HDInsight | Yes |Not Started | 06/30/2021 |Catherine|| GA (7.0.0) | GA (2.1.0) | Medium (Once two months) | Module |
| Kusto | Yes |Not Started | 06/30/2021 |Catherine||Preview (1.0.0b1) | Preview (0.10.0) | Medium (Once two months | Module |
Expand Down
6 changes: 6 additions & 0 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,9 @@ aks create:
enable_node_public_ip:
rule_exclusions:
- option_length_too_long
node_public_ip_prefix_id:
rule_exclusions:
- option_length_too_long
enable_private_cluster:
rule_exclusions:
- option_length_too_long
Expand Down Expand Up @@ -271,6 +274,9 @@ aks nodepool add:
enable_node_public_ip:
rule_exclusions:
- option_length_too_long
node_public_ip_prefix_id:
rule_exclusions:
- option_length_too_long
aks update:
parameters:
aad_admin_group_object_ids:
Expand Down
3 changes: 0 additions & 3 deletions scripts/_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

# common utilities for scripts

from __future__ import print_function


def get_repo_root():
"""
Returns the root path to this repository. The root is where .git folder is.
Expand Down
1 change: 0 additions & 1 deletion scripts/curl_install_pypi/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#pylint: disable=line-too-long

from __future__ import print_function
import os
import sys
import platform
Expand Down
2 changes: 0 additions & 2 deletions scripts/dev_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function

import sys
import os
from subprocess import check_call, CalledProcessError
Expand Down
2 changes: 0 additions & 2 deletions scripts/dump_command_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function

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

2.21.0
++++++
* Unify ADAL and MSAL error handler (#17072)
* Add support for specifying minimum required version of an extension to work with the current core version (#16751)

2.20.0
++++++
* Minor fixes
Expand Down
4 changes: 1 addition & 3 deletions src/azure-cli-core/azure/cli/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
# --------------------------------------------------------------------------------------------
# pylint: disable=line-too-long

from __future__ import print_function

__version__ = "2.20.0"
__version__ = "2.21.0"

import os
import sys
Expand Down
1 change: 0 additions & 1 deletion src/azure-cli-core/azure/cli/core/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function
import argparse

from azure.cli.core.commands import ExtensionCommandSource
Expand Down
2 changes: 0 additions & 2 deletions src/azure-cli-core/azure/cli/core/_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function

import collections
import errno
import json
Expand Down
2 changes: 0 additions & 2 deletions src/azure-cli-core/azure/cli/core/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

# pylint: disable=too-many-lines

from __future__ import print_function

import argparse
import datetime
import json
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function
import platform

from azure.cli.core.commands.arm import resource_exists
Expand Down
2 changes: 0 additions & 2 deletions src/azure-cli-core/azure/cli/core/file_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function

from azure.cli.core._help import CliCommandHelpFile, CliGroupHelpFile

from knack.log import get_logger
Expand Down
2 changes: 0 additions & 2 deletions src/azure-cli-core/azure/cli/core/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function

import difflib

import argparse
Expand Down
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/profiles/_shared.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def default_api_version(self):
AZURE_API_PROFILES = {
'latest': {
ResourceType.MGMT_STORAGE: '2021-01-01',
ResourceType.MGMT_NETWORK: '2020-08-01',
ResourceType.MGMT_NETWORK: '2020-11-01',
ResourceType.MGMT_COMPUTE: SDKProfile('2020-12-01', {
'resource_skus': '2019-04-01',
'disks': '2020-09-30',
Expand Down
2 changes: 0 additions & 2 deletions src/azure-cli-core/azure/cli/core/tests/test_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function

import logging
import shutil
import inspect
Expand Down
1 change: 0 additions & 1 deletion src/azure-cli-core/azure/cli/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# --------------------------------------------------------------------------------------------
# pylint: disable=too-many-lines

from __future__ import print_function
import sys
import json
import getpass
Expand Down
3 changes: 1 addition & 2 deletions src/azure-cli-core/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------

from __future__ import print_function
from codecs import open
from setuptools import setup, find_packages

VERSION = "2.20.0"
VERSION = "2.21.0"

# If we have source, validate that our version numbers match
# This should prevent uploading releases with mismatched versions.
Expand Down
Loading