Skip to content

{Packaging} Remove unused Network SDK APIs#15082

Merged
fengzhou-msft merged 3 commits intoAzure:devfrom
fengzhou-msft:network_lose_weight
Sep 9, 2020
Merged

{Packaging} Remove unused Network SDK APIs#15082
fengzhou-msft merged 3 commits intoAzure:devfrom
fengzhou-msft:network_lose_weight

Conversation

@fengzhou-msft
Copy link
Member

@fengzhou-msft fengzhou-msft commented Sep 8, 2020

Description

Network SDK size is big (about 117 MB on Windows after installation) and contains a lot of old APIs CLI does not use. We can remove the unused APIs to reduce the CLI packge size.

A list of API versions CLI uses:
search ResourceType.MGMT_NETWORK in _shared.py:
2015-06-15
2017-10-01
2019-06-01
2020-05-01
get_target_network_api in vm:
2018-01-01
Referenced by models.py of Network SDK v11.0.0:
2018_07_01
2019_02_01
2019_07_01
2020_04_01
2020_05_01

This PR removed unused Network APIs (not in the above list) in MSI and RPM building scripts.

MSI package size reduced from 45 MB to 42 MB.
RPM package size reduced from 32 MB to 28 MB.

Testing Guide

Built and tested packages in build_test branch: https://dev.azure.com/azure-sdk/public/_build/results?buildId=527177&view=results

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.


This checklist is used to make sure that common guidelines for a pull request are followed.

@yungezz
Copy link
Member

yungezz commented Sep 8, 2020

hi @myronfanqiu could you pls help to review the change? thanks

@yonzhan yonzhan requested a review from jsntcy September 8, 2020 12:46
Copy link
Contributor

@mmyyrroonn mmyyrroonn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@fengzhou-msft fengzhou-msft merged commit 1b3db11 into Azure:dev Sep 9, 2020
@fengzhou-msft fengzhou-msft deleted the network_lose_weight branch September 9, 2020 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants