Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
84 commits
Select commit Hold shift + click to select a range
00c59c2
[Role] az ad sp create-for-rbac: Deprecate creating Contributor role …
jiasli Dec 22, 2020
8d3bbbb
[SQL] az sql dw update: fix update to not accept backup-storage-redun…
xaliciayang Dec 22, 2020
4ef9e0e
[BACKUP] az backup job list: Solved -o table bug and added backup_man…
akshayneema Dec 22, 2020
aea4f5e
[AppService] Unhide Python 3.9 in functionapp create (#16296)
Hazhzeng Dec 23, 2020
791150e
{Storage} Fix issue #9948: 'az storage container create' required '--…
Juliehzl Dec 23, 2020
8001d4b
[DataBoxEdge] new command module: support for data-box-edge devices a…
evelyn-ys Dec 23, 2020
94dcc6a
[Synapse] Add new cmdlets for synapse sql aad admin and sql audit pol…
aim-for-better Dec 23, 2020
bedfc6f
{Telemetry} Reomve trace stack info in Telemetry (#16332)
houk-ms Dec 23, 2020
7361b99
Extract error code and error message from HttpOperationError (#16273)
houk-ms Dec 23, 2020
903ecf1
Fix spelling (mySubscrpitionId) (#16252)
scovetta Dec 23, 2020
7882147
[AppService] Fixes #14583: az webapp up should generate default name …
calvinsID Dec 23, 2020
37c8d72
[ARO] Ensure worker_profile is not None before getting the subnets fr…
bennerv Dec 23, 2020
3776643
[ACR] bump api version. support zone redundancy (#15975)
adewaleo Dec 23, 2020
df80a09
[Synapse] Add integration runtime related cmdlets (#15498)
wonner Dec 24, 2020
885e78d
[Resource] az provider register: Add --accept-terms for registering R…
fengzhou-msft Dec 24, 2020
e5eefd2
[Profile] Fix "missing secret or certificate in order to authenticate…
jiasli Dec 24, 2020
02bbf1f
[ACR] az acr connected-acr create/update/delete/list/show: new featur…
rosanch Dec 24, 2020
7270756
{Network} Migrate network SDK that is used by some other modules to t…
jsntcy Dec 24, 2020
25912fd
[ARM] `az deployment`: Fix parse errors with multiline strings (#15502)
wiktorn Dec 25, 2020
288e18d
{Storage} Fix live test (#15948)
Juliehzl Dec 25, 2020
cf9a4dc
[AppService] Bugfix: Better error handling when trying to create dupl…
calvinsID Dec 25, 2020
e836dd2
{Storage} Fix issue #13478 to add more information for requires_sync …
Juliehzl Dec 25, 2020
357c9c9
{Release} Upgrade to Azure CLI 2.17.0 (#16362)
Dec 25, 2020
57ce1e6
fix branch (#16364)
fengzhou-msft Dec 25, 2020
b9f69b6
Migrate to Track 2 mgmt SDK (#16376)
avanigupta Dec 29, 2020
dff16b2
[Storage] Fix #16072: Upload file with big size (#16372)
Juliehzl Dec 29, 2020
ee380ec
add rdbms code owner (#16383)
evelyn-ys Dec 29, 2020
6227e34
Fix a typo (#16370)
gossion Dec 29, 2020
2557860
{Core} Use knack 0.8.0rc2 (#16301)
jiasli Dec 30, 2020
87cbdb0
hotfix for bad name (#16381)
msyyc Dec 30, 2020
269954f
docs: fix simple typo, satsify -> satisfy (#16389)
timgates42 Dec 30, 2020
ab2e074
{Doc} Track 2 Migration Guidance (#16330)
qwordy Dec 31, 2020
1d4a90e
{Release} HotFix: Release 2.17.1 (#16393)
msyyc Dec 31, 2020
dc77512
disable homebrew package test temporarily (#16407)
fengzhou-msft Dec 31, 2020
809389f
[Compute] Fix issue of none storage_profile (#16260)
qwordy Jan 4, 2021
36b337b
Merge remote-tracking branch 'upstream/release' into dev
evelyn-ys Jan 4, 2021
c71c2f9
[AppService] Fix #13907: az webapp config ssl import: Change command …
singlessis Jan 5, 2021
3f760cb
{RDBMS} : Stabilize tests for live-test runs in pipeline. (#16415)
arde0708 Jan 5, 2021
761de62
{Test} Live test pipeline 0.10.0 (#16408)
qwordy Jan 5, 2021
fade4bf
[Role] Fix #11594: az role assignment create: Only show supported val…
jiasli Jan 5, 2021
bd13df4
{Misc.} Bump humanfriendly to 9.1 (#16363)
jiasli Jan 5, 2021
4d11117
Remove the preview tag for server key and ad admin (#16412)
shinilm Jan 5, 2021
1e8f1bb
{AKS} Update region mapping list for Container Insights to include la…
bragi92 Jan 6, 2021
4ac1441
{ARM} Bump azure-mgmt-resource SDK: 10.3.0 to 12.0.0, v2020-06-01 t…
detienne20 Jan 6, 2021
9b20d55
[AppService] Fixes #16125: az webapp ssh if using a windows client, o…
calvinsID Jan 7, 2021
2d39b43
[AppService]: fix for #13291- az webapp deployment slot swap should s…
Kotasudhakarreddy Jan 7, 2021
aa3ac71
{Network} Support list for storage private endpoint connection (#16438)
Juliehzl Jan 7, 2021
4191edb
{Compute} Fix tests (#16425)
qwordy Jan 7, 2021
25cac8b
{Compute} Update _help.py - add link to article for finding an image …
cynthn Jan 8, 2021
72c2203
[Compute] Better error handling of external tokens (#16406)
qwordy Jan 8, 2021
4e1e753
{Core} Add polling start time and end time in telemetry (#16458)
Juliehzl Jan 11, 2021
9601031
[Storage] Fix issue #12291: az storage blob generate-sas does not pro…
Juliehzl Jan 11, 2021
c66daef
[ARM] Az Deployments : Add support for --query-string (#16447)
detienne20 Jan 11, 2021
22d53e3
add pamamiko to legal notice file (#16461)
fengzhou-msft Jan 11, 2021
3269d06
[Compute] Fix a vmss reimage issue (#16483)
qwordy Jan 11, 2021
a854825
{Storage} `az storage container immutability-policy extend`: Fix requ…
Juliehzl Jan 11, 2021
e032bdf
[Compute] vm/vmss extension set: New parameter --enable-auto-upgrade …
qwordy Jan 12, 2021
d7e5dea
{Doc} Track 2 Migration Guidance (#16484)
qwordy Jan 12, 2021
d095076
{Misc.} Update CODEOWNERS (#16382)
jiasli Jan 12, 2021
87f979e
{container} Bugfix #15856: az container exec - remove eol check to av…
bitcloud Jan 12, 2021
8db65c7
[Backup]Added default backup retention as 30 days (#16394)
Jan 12, 2021
701f1cd
set default backup retention value to 30 days (#16500)
akshayneema Jan 13, 2021
ca09633
[ARM] ts: error handling improvement - use of --template-file without…
detienne20 Jan 13, 2021
785d8f4
{Storage} Enable logging for track2 data plane operations (#16439)
Juliehzl Jan 13, 2021
1058618
[AKS] az aks check-acr: Add new check-acr command (#16490)
samkreter Jan 13, 2021
ea298e9
[IoT] Add --tags to IoT Hub create and update (#16336)
c-ryan-k Jan 14, 2021
cddb696
remove --export-all-tables for command az monitor log-analytics works…
kairu-ms Jan 14, 2021
0bcfb50
Patch version in homebrew formula (#16518)
fengzhou-msft Jan 14, 2021
27f5250
{RDBMS} Fixed bugs and updated local context test (#16437)
DaeunYim Jan 14, 2021
2cc0913
[ACR] add --allow-trusted-services support (#16530)
adewaleo Jan 14, 2021
fdea210
bump cffi (#16531)
fengzhou-msft Jan 14, 2021
4720ab9
fix: revert to use old region mapping (#16435)
bragi92 Jan 14, 2021
f5a88f1
[acr] add step in "check-health" command to ensure the identity used …
yugangw-msft Jan 14, 2021
873dfeb
{ACR} Quick Fix (#16441)
rosanch Jan 14, 2021
afdfbab
[Storage] GA PITR and blob service properties in SRP (#16540)
Juliehzl Jan 15, 2021
8930324
[DMS] Merging pg mysql from extension into core (#15746)
temandr Jan 15, 2021
82d9063
[AppService] BREAKING CHANGE: Fix regression where you can't use a ru…
calvinsID Jan 15, 2021
39a4516
{Storage} Remove extension suppression for storage-or-preview becaus…
Juliehzl Jan 15, 2021
da4239a
{Release} Upgrade to Azure CLI 2.18.0 (#16543)
Jan 15, 2021
f53441a
[SQL] Add managed hsm regex match to SQL (#15109)
Yueren-Wang Jan 15, 2021
8fb0be5
[AppConfig] BREAKING CHANGE: az appconfig feature filter add: Support…
avanigupta Jan 18, 2021
edf9ed4
[AppService] az appservice ase/plan ASEv3 support (#16516)
madsd Jan 18, 2021
77ad664
fix broken link (#16569)
yungezz Jan 18, 2021
36bcdae
os-preference and ase private dns (#16575)
madsd Jan 19, 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
  •  
  •  
  •  
34 changes: 18 additions & 16 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# See for instructions on this file https://help.github.com/articles/about-codeowners/

*help.py @haroldrandom
*help.yaml @haroldrandom
*help.yml @haroldrandom
*help.py @msyyc
*help.yaml @msyyc
*help.yml @msyyc

/linter_exclusions.yml @jsntcy @haroldrandom @kairu-ms
/linter_exclusions.yml @jsntcy @kairu-ms

/doc/ @jiasli @qwordy @dbradish-microsoft
/tools/ @haroldrandom @fengzhou-msft
/scripts/ @haroldrandom @fengzhou-msft
/tools/ @fengzhou-msft @jiasli
/scripts/ @fengzhou-msft @jiasli
/scripts/live_test @qwordy
/src/azure-cli-testsdk/ @bim-msft @jsntcy @haroldrandom
/src/azure-cli-core/ @jiasli @Juliehzl @haroldrandom @fengzhou-msft @evelyn-ys @jsntcy @houk-ms
/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/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/appconfig/ @shenmuxiaosen @avanigupta @bim-msft @qwordy
/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/backup/ @dragonfly91 @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/batch/ @bgklein @gingi @dpwatrous @paterasMSFT @qwordy
Expand All @@ -25,15 +25,16 @@
/src/azure-cli/azure/cli/command_modules/container/ @zhoxing-ms @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/consumption/ @sandeepnl
/src/azure-cli/azure/cli/command_modules/dls/ @akharit @rahuldutta90 @Juliehzl @jsntcy
/src/azure-cli/azure/cli/command_modules/extension/ @fengzhou-msft @haroldrandom
/src/azure-cli/azure/cli/command_modules/keyvault/ @bim-msft @fengzhou-msft @yungezz @houk-ms
/src/azure-cli/azure/cli/command_modules/dms/ @temandr @binuj
/src/azure-cli/azure/cli/command_modules/extension/ @fengzhou-msft @msyyc
/src/azure-cli/azure/cli/command_modules/keyvault/ @fengzhou-msft @yungezz @houk-ms
/src/azure-cli/azure/cli/command_modules/monitor/ @msyyc @jsntcy @kairu-ms
/src/azure-cli/azure/cli/command_modules/natgateway/ @khannarheams @jsntcy @haroldrandom @kairu-ms @msyyc
/src/azure-cli/azure/cli/command_modules/network/ @jsntcy @haroldrandom @kairu-ms @msyyc
/src/azure-cli/azure/cli/command_modules/privatedns/ @jsntcy @haroldrandom @kairu-ms @msyyc
/src/azure-cli/azure/cli/command_modules/natgateway/ @khannarheams @jsntcy @kairu-ms @msyyc
/src/azure-cli/azure/cli/command_modules/network/ @jsntcy @kairu-ms @msyyc
/src/azure-cli/azure/cli/command_modules/privatedns/ @jsntcy @kairu-ms @msyyc
/src/azure-cli/azure/cli/command_modules/policyinsights/ @cheggert
/src/azure-cli/azure/cli/command_modules/profile/ @jiasli @evelyn-ys @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/rdbms/ @Juliehzl @evelyn-ys
/src/azure-cli/azure/cli/command_modules/rdbms/ @arde0708 @Juliehzl @evelyn-ys
/src/azure-cli/azure/cli/command_modules/resource/ @Juliehzl @zhoxing-ms
/src/azure-cli/azure/cli/command_modules/role/ @jiasli @evelyn-ys @jsntcy @fengzhou-msft
/src/azure-cli/azure/cli/command_modules/storage/ @Juliehzl @jsntcy @zhoxing-ms @evelyn-ys
Expand All @@ -47,4 +48,5 @@
/src/azure-cli/azure/cli/command_modules/aro/ @mjudeikis @jim-minter
/src/azure-cli/azure/cli/command_modules/util/ @jiasli @Juliehzl @zhoxing-ms
/src/azure-cli/azure/cli/command_modules/synapse/ @idear1203 @sunsw1994 @aim-for-better
/src/azure-cli/azure/cli/command_modules/hdinsight/ @aim-for-better @haroldrandom @Juliehzl
/src/azure-cli/azure/cli/command_modules/hdinsight/ @aim-for-better @Juliehzl @kairu-ms
/src/azure-cli/azure/cli/command_modules/databoxedge/ @evelyn-ys @Juliehzl
214 changes: 214 additions & 0 deletions NOTICE.txt

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,4 +200,4 @@ This project has adopted the [Microsoft Open Source Code of Conduct](https://ope
For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

If you would like to become an active contributor to this project please
follow the instructions provided in [Microsoft Azure Projects Contribution Guidelines](http://azure.github.io/guidelines.html).
follow the instructions provided in [Microsoft Open Source Guidelines](https://opensource.microsoft.com/collaborate).
12 changes: 7 additions & 5 deletions azure-pipelines-full-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,14 @@ jobs:
inputs:
versionSpec: 3.7

- task: Bash@3
- script: |
if [[ "$(Build.Reason)" == "PullRequest" ]]; then
branch=$(System.PullRequest.TargetBranch)
else
branch=$(Build.SourceBranchName)
fi
scripts/release/pypi/build.sh $branch
displayName: 'Run Wheel Build Script'
inputs:
targetType: 'filePath'
filePath: scripts/release/pypi/build.sh
arguments: $(System.PullRequest.TargetBranch)

- task: PublishPipelineArtifact@0
displayName: 'Publish Artifact: pypi'
Expand Down
21 changes: 12 additions & 9 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,12 +279,14 @@ jobs:
versionSpec: 3.7


- task: Bash@3
- script: |
if [[ "$(Build.Reason)" == "PullRequest" ]]; then
branch=$(System.PullRequest.TargetBranch)
else
branch=$(Build.SourceBranchName)
fi
scripts/release/pypi/build.sh $branch
displayName: 'Run Wheel Build Script'
inputs:
targetType: 'filePath'
filePath: scripts/release/pypi/build.sh
arguments: $(System.PullRequest.TargetBranch)


- task: PublishPipelineArtifact@0
Expand Down Expand Up @@ -329,17 +331,17 @@ jobs:
echo "== Testing pip install on Python 3.6 =="
docker run \
--rm -v $PYPI_FILES:/mnt/pypi python:3.6 \
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION && az self-test && az --version && sleep 5"
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5"

echo "== Testing pip install on Python 3.7 =="
docker run \
--rm -v $PYPI_FILES:/mnt/pypi python:3.7 \
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION && az self-test && az --version && sleep 5"
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5"

echo "== Testing pip install on Python 3.8 =="
docker run \
--rm -v $PYPI_FILES:/mnt/pypi python:3.8 \
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION && az self-test && az --version && sleep 5"
/bin/bash -c "ls /mnt/pypi && pip install -f /mnt/pypi -q azure-cli==$CLI_VERSION.* && az self-test && az --version && sleep 5"

displayName: 'Test pip Install'

Expand Down Expand Up @@ -574,7 +576,8 @@ 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'))
condition: false
pool:
vmImage: 'macOS-10.14'
steps:
Expand Down
3 changes: 2 additions & 1 deletion doc/sphinx/azhelpgen/doc_source_map.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,6 @@
"apim": "src/azure-cli/azure/cli/command_modules/apim/_help.py",
"aro": "src/azure-cli/azure/cli/command_modules/aro/_help.py",
"util": "src/azure-cli/azure/cli/command_modules/util/_help.py",
"synapse": "src/azure-cli/azure/cli/command_modules/synapse/_help.py"
"synapse": "src/azure-cli/azure/cli/command_modules/synapse/_help.py",
"databoxedge": "src/azure-cli/azure/cli/command_modules/databoxedge/_help.py"
}
115 changes: 115 additions & 0 deletions doc/track_2_migration_guidance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
# Track 2 Migration Guidance

Azure CLI is built upon Azure Python SDK. Recently Azure Python SDK announced next generation product. It is named Track 2 SDK. The old version of SDK is named Track 1. It claims that it has great advantages than Track 1 SDK. It is not compatible with Track 1 SDK. Azure CLI developers need to spend considerable time and do some work to migrate from Track 1 SDK to Track 2 SDK. Let's see an example of Track 2 SDK. [azure-mgmt-compute 17.0.0b1](https://pypi.org/project/azure-mgmt-compute/17.0.0b1/) introduces important breaking changes and important new features like unified authentication and asynchronous programming.

This document summarizes typical issues and solutions when adopting Track 2 SDK in Azure CLI.

Example PRs:
1. [Compute PR #15750](https://github.com/Azure/azure-cli/pull/15750)
2. [Network PR #16245](https://github.com/Azure/azure-cli/pull/16245)

Below is a list of typical issues.

1. [Long running operation function name change](#long-running-operation-function-name-change)
2. [Property name change](#property-name-change)
3. [Class name change](#class-name-change)
4. [Error type change](#error-type-change)
5. [No enum type](#no-enum-type)
6. [Class hierarchy change](#class-hierarchy-change)
7. [Obtaining Subscription](#obtaining-subscription)
8. [Multi-API support](#multi-api-support)
9. [Fixing mocked object](#fixing-mocked-object)
10. [Modifying patch_models.py to include missing packages](#modifying-patch_modelspy-to-include-missing-packages)
11. [Missing x-ms-authorization-auxiliary](#missing-external-tenant-authentication-support)

### Long running operation function name change

Long running operations have changed their function names in Track 2 SDK. A `begin_` prefix is added. For example, `create_or_update` becomes `begin_create_or_update`. `delete` becomes `begin_delete`. It is a naming convention in Track 2 SDK to indicate that an operation is a long running operation. Test cases can reveal most instances, but if a command has no test, it may be missed. A reliable approach is going through all methods to see whether they are long running operations.

### Property name change

Some of property names change in Track 2 SDK.

Examples:

```
hyperVgeneration -> hyperVGeneration
disk_mbps_read_only -> disk_m_bps_read_only
disk_mbps_read_write -> disk_m_bps_read_write
virtual_machine_extension_type -> type_properties_type
type1 -> type_properties_type
instance_ids -> vm_instance_i_ds
diskMbpsReadWrite -> diskMBpsReadWrite
```

Some changes are unnecessary, even wrong in English. I opened [Azure/autorest.python#850](https://github.com/Azure/autorest.python/issues/850) to track this problem.

### Class name change

Some of class names change in Track 2 SDK.

Examples:

```
VirtualMachineIdentityUserAssignedIdentitiesValue -> UserAssignedIdentitiesValue
```

### Error type change

Error type changes in Track2 SDK.

Examples:

```
CloudError -> azure.core.exceptions.ResourceNotFoundError
```

### No enum type

Track 2 SDK removes enum type and adopts string type instead. It loses the validation on values. Anyway, do not use `obj.value` any longer. Just use `obj`.

### Class hierarchy change

The class hierarchy may change in Track 2 SDK. Some properties are not flattened. They are wrapped in classes.

Examples:

In VMSS `begin_update_instances`, a new type `VirtualMachineScaleSetVMInstanceRequiredIDs` is added.

In DiskAccess `begin_create_or_update`, location and tags are moved to a nested structure `DiskAccess`, `disk_access = DiskAccess(location=location, tags=tags)`

### Obtaining subscription

There are various ways to obtain subscription ID. Obtaining it from `client.config` does not work in Track 2 SDK any longer.

Examples:

```
subscription = client.config.subscription_id ->
from azure.cli.core.commands.client_factory import get_subscription_id
subscription = get_subscription_id(cmd.cli_ctx)
```

In this example, the reason that old one fails is that `config` is renamed to `_config` in Track 2 SDK.

### Multi-API support

Remember to support multi-API. It reveals multi-API error when Track 2 SDK is adopted if we don't run live test for all tests. Actually the original code is wrong. It doesn't handle multi-API support well.

### Fixing mocked object

The problem I met is property name change. It is hard to find the line of code that causes the error. Please update mocked object construction code and make sure it is up-to-date.

### Modifying patch_models.py to include missing packages

It is only used in CI jobs. It patches some code to SDK. This file should be deprecated. It was written long time ago. But for now, just modify this file and add missing packages.

### Missing external tenant authentication support

External tenant authentication support is missing in Azure CLI Core and Azure Core package. In request header, we use x-ms-authorization-auxiliary to pass auxiliary authorization token. Compute module is the first customer to have this requirement in Track 2 SDK. In azure/core/pipeline/policies/_authentication.py, there is a class BearerTokenCredentialPolicy. It simplifies bearer token authorization header configuration. However, auxiliary bearer token authorization is not supported in Azure Core policies [1] yet. The current solution is getting tokens manually, setting headers in client constructor or in operation call time manually. They said they will support this policy in the future. Azure CLI Core also needs an upgrade to provide better interfaces for Track 2 SDK users.

You are welcome to contribute to this document if you have experience of Track 2 SDK.

### References

[1] https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/core/azure-core/CLIENT_LIBRARY_DEVELOPER.md#available-policies
5 changes: 5 additions & 0 deletions linter_exclusions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,11 @@ backup item show:
backup_management_type:
rule_exclusions:
- option_length_too_long
backup job list:
parameters:
backup_management_type:
rule_exclusions:
- option_length_too_long
backup policy create:
parameters:
backup_management_type:
Expand Down
1 change: 1 addition & 0 deletions scripts/ci/credscan/CredScanSuppressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"src\\azure-cli\\azure\\cli\\command_modules\\appservice\\tests\\latest\\recordings\\test_webapp_e2e.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appservice\\tests\\latest\\recordings\\test_webapp_list_deployment_logs.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appservice\\tests\\latest\\recordings\\test_webapp_up_statichtml_e2e.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appservice\\tests\\latest\\recordings\\test_webapp_up_generate_default_name.yaml",
"src\\azure-cli\\azure\\cli\\command_modules\\appservice\\tests\\latest\\recordings\\test_windows_to_linux_fail.yaml"
],
"_justification": "[AppService] response body contains random value recognized as secret"
Expand Down
5 changes: 5 additions & 0 deletions scripts/live_test/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
Release History
===============

0.10.0 (12/30/2020)
++++++

* Update index.html.

0.9.0 (11/23/2020)
++++++

Expand Down
3 changes: 3 additions & 0 deletions scripts/live_test/generate_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ def render(data, container, container_url, testdata, USER_REPO, USER_BRANCH, COM
<a href=https://microsoft-my.sharepoint.com/:w:/p/fey/EZGC9LwrN3RAscVS5ylG4HMBX9h7W0ZSA7CDrhXN5Lvx6g?e=V8HUmd>User Manual of Live Test Pipeline</a>
(Please read it)
<br>
<a href=https://microsoft-my.sharepoint.com/:w:/p/fey/EcgPLHSkef9Mi14Rjx79N9sBvyVDO4b_V97BMcoI1HTq-A?e=Ioap3B>Upgrading API Versions in Azure CLI Live Test Pipeline</a>
(Advanced feature)
<br>
<a href=https://msit.powerbi.com/groups/8de24d49-e97c-4672-9bfc-45fee0ec58f7/reports/65dfcfce-5d59-4dc9-8bc5-3726443c8fe1/ReportSection>Power BI Report</a>
(History data, beautiful charts and tables)
</p>
Expand Down
13 changes: 10 additions & 3 deletions scripts/release/homebrew/docker/formula_generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,8 @@ def update_formula() -> str:
resp.raise_for_status()
text = resp.text

# update url, version and sha256 of azure-cli
# update url and sha256 of azure-cli
text = re.sub('url ".*"', 'url "{}"'.format(HOMEBREW_UPSTREAM_URL), text, 1)
text = re.sub('version ".*"', 'version "{}"'.format(CLI_VERSION), text, 1)
upstream_sha = compute_sha256(HOMEBREW_UPSTREAM_URL)
text = re.sub('sha256 ".*"', 'sha256 "{}"'.format(upstream_sha), text, 1)
text = re.sub('.*revision.*\n', '', text, 1) # remove revision for previous version if exists
Expand All @@ -134,7 +133,15 @@ def update_formula() -> str:
line_idx_to_remove = set()
upgrade = False
for idx, line in enumerate(lines):
if line.strip().startswith("resource"):
# In released formula, the url is in the release tag format, such as
# "https://github.com/Azure/azure-cli/archive/azure-cli-2.17.1.tar.gz".
# version is extracted from url. During build, the url is in the format like
# "https://codeload.github.com/Azure/azure-cli/legacy.tar.gz/7e09fd50c9ef02e1ed7d4709c7ab1a71acd3840b".
# We need to add the version explicitly after url.
# We will change the url in our release pipeline and remove version.
if line.startswith(" url"):
lines[idx] = lines[idx] + '\n' + ' version "{}"'.format(CLI_VERSION)
elif line.strip().startswith("resource"):
m = re.search(r'resource "(.*)" do', line)
if m is not None:
pack = m.group(1)
Expand Down
5 changes: 3 additions & 2 deletions scripts/release/pypi/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ set -ev
cd $BUILD_SOURCESDIRECTORY

branch=$1
echo "Branch $branch"

echo "Search setup files from `pwd`."
python --version
Expand All @@ -20,8 +21,8 @@ pip install -U pip setuptools wheel
pip list

script_dir=`cd $(dirname $BASH_SOURCE[0]); pwd`
echo $script_dir
if [[ "$branch" != "release" ]]; then

if [[ "$branch" == "dev" ]]; then
. $script_dir/../../ci/version.sh post`date -u '+%Y%m%d%H%M%S'`
fi

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

2.18.0
++++++
* Print INFO log from SDK (#15676)

2.17.1
++++++
* No changes

2.17.0
++++++
* Minor fixes

2.16.0
++++++
* Add 2020-09-01-hybrid API profile for AzureStack (#15096)
Expand Down
Loading