Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .azure-pipelines/templates/azdev_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ steps:
chmod +x env/bin/activate
. env/bin/activate

pip install -q azdev==0.1.28
pip install azdev==0.1.29
azdev --version

if [ -z "$CLI_EXT_REPO_PATH" ]; then
Expand Down
6 changes: 4 additions & 2 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,26 @@
/scripts/live_test @qwordy
/src/azure-cli-testsdk/ @jsntcy @jiasli @kairu-ms @qwordy
/src/azure-cli-core/ @jiasli @Juliehzl @fengzhou-msft @evelyn-ys @jsntcy @houk-ms
/src/azure-cli-core/azure/cli/core/extension/ @msyyc
/src/azure-cli/azure/cli/command_modules/acr/ @djyou @fengzhou-msft @yungezz
/src/azure-cli/azure/cli/command_modules/acs/ @rjtsdl @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/advisor/ @Prasanna-Padmanabhan
/src/azure-cli/azure/cli/command_modules/apim/ @kevinhillinger @jonlester
/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
/src/azure-cli/azure/cli/command_modules/consumption/ @sandeepnl
/src/azure-cli/azure/cli/command_modules/container/ @zhoxing-ms @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/cosmosdb/ @dmakwana
/src/azure-cli/azure/cli/command_modules/cosmosdb/ @dmakwana @kristynhamasaki @Juliehzl
/src/azure-cli/azure/cli/command_modules/databoxedge/ @evelyn-ys @Juliehzl
/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](http://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
4 changes: 3 additions & 1 deletion azure-cli2017.pyproj
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\asset.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\asset_filter.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\content_key_policy.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\encryption.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\job.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\live_event.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\live_output.py" />
Expand All @@ -211,6 +212,7 @@
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\streaming_policy.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\transform.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\operations\__init__.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\tests\latest\test_ams_account_encryption_scenarios.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\tests\latest\test_ams_account_filter_scenarios.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\tests\latest\test_ams_account_mru_scenarios.py" />
<Compile Include="azure-cli\azure\cli\command_modules\ams\tests\latest\test_ams_account_scenarios.py" />
Expand Down Expand Up @@ -1486,4 +1488,4 @@
</Interpreter>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)\Python Tools\Microsoft.PythonTools.targets" />
</Project>
</Project>
51 changes: 39 additions & 12 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'))
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 Expand Up @@ -488,7 +515,7 @@ jobs:
displayName: Build Homebrew Formula

dependsOn: BuildPythonWheel
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual'))
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'ubuntu-16.04'
steps:
Expand Down Expand Up @@ -576,7 +603,7 @@ jobs:
displayName: Test Homebrew Package
timeoutInMinutes: 180
dependsOn: BuildHomebrewFormula
# condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual'))
# condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
condition: false
pool:
vmImage: 'macOS-10.14'
Expand Down Expand Up @@ -604,7 +631,7 @@ jobs:
displayName: Build Yum Package

dependsOn: BuildPythonWheel
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual'))
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'ubuntu-16.04'
steps:
Expand All @@ -625,7 +652,7 @@ jobs:
displayName: Test Yum Package

dependsOn: BuildYumPackage
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual'))
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'ubuntu-16.04'
steps:
Expand Down Expand Up @@ -661,7 +688,7 @@ jobs:
displayName: Build Deb Packages

dependsOn: BuildPythonWheel
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual'))
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
pool:
vmImage: 'ubuntu-16.04'
strategy:
Expand Down Expand Up @@ -717,7 +744,7 @@ jobs:

dependsOn:
- BuildDebPackages
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual'))
condition: and(succeeded(), in(variables['Build.Reason'], 'IndividualCI', 'BatchedCI', 'Manual', 'Schedule'))
strategy:
matrix:
Focal:
Expand Down
17 changes: 17 additions & 0 deletions build_scripts/windows/scripts/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +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 setuptools==52.0.0

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

Expand Down Expand Up @@ -145,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
16 changes: 12 additions & 4 deletions doc/quoting-issues-with-powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Command arguments: ['a&b ', '--debug']
Command arguments: ['a&b', '--debug']
```

This issue is tracked at https://github.com/PowerShell/PowerShell/issues/1995#issuecomment-539822061

### Double quotes `"` are lost

This typically happens when passing a JSON to `az`. This is because double quotes within the JSON string are lost when calling a native `.exe` file within PowerShell.
Expand Down Expand Up @@ -167,12 +169,18 @@ Command arguments: ['{"key": "value"}', '--debug']
Command arguments: ['{"key": "value"}', '--debug']
```

This issue is tracked at https://github.com/PowerShell/PowerShell/issues/1995#issuecomment-539822061
## Best practice: use file input for JSON

For complex arguments like JSON string, the best practice is to use Azure CLI's `@<file>` convention to load from a file to bypass the shell's interpretation.

## Workaround: use file input
Note that At symbol (`@`) is [splatting operator](https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_splatting) in PowerShell, so it should be quoted.

```powershell
az ad app create ... --required-resource-accesses "@manifest.json"
```

You may use CLI's `@<file>` convention to load from a file to bypass the shell's interpretation mechanisms:
You may also use `@-` to read from `stdin`:

```powershell
az ad app create --display-name my-native --native-app --required-resource-accesses @manifest.json
Get-Content -Path manifest.json | az ad app create ... --required-resource-accesses "@-"
```
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# basic
setuptools==40.0.0
setuptools==52.0.0
pip>=9.0.1
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
2 changes: 2 additions & 0 deletions scripts/release/debian/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ $PYTHON_SRC_DIR/*/configure --srcdir $PYTHON_SRC_DIR/* --prefix $WORKDIR/python_
make
make install

$WORKDIR/python_env/bin/python3 -m pip install --upgrade pip==21.0.1

export PATH=$PATH:$WORKDIR/python_env/bin

find ${WORKDIR}/src/ -name setup.py -type f | xargs -I {} dirname {} | grep -v azure-cli-testsdk | xargs pip3 install --no-deps
Expand Down
2 changes: 1 addition & 1 deletion scripts/release/rpm/azure-cli.spec
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ A great cloud needs great tools; we're excited to introduce Azure CLI,
# Create a fully instantiated virtual environment, ready to use the CLI.
%{python_cmd} -m venv %{buildroot}%{cli_lib_dir}
source %{buildroot}%{cli_lib_dir}/bin/activate

%{python_cmd} -m pip install --upgrade pip==21.0.1
source %{repo_path}/scripts/install_full.sh

deactivate
Expand Down
Loading