Skip to content

Reduce package size for multi-api MGMT SDK #38009

Closed

Description

@msyyc

Multiapi MGMT SDK has bigger and bigger size since we only add api-version subfolder and never remove the outdated one. There are many SDK users complaining about the package size(e.g. #17801). After discussion, we could only keep some api-versions that Azure CLI is using and remove others.

  • Stage 1: convert part of multiapi packages not sued by CLI to single-api package directly
ID package-name version (before trim) size (before trim) version (after trim) size (after trim) trim issue reduced size percent
1 azure-mgmt-appplatform 9.1.0 5.0 MB 10.0.0 0.3 MB 5643 94%
2 azure-mgmt-redhatopenshift 1.5.0 0.4 MB 2.0.0 0.09 MB 5645 78%
3 azure-mgmt-resourcehealth 1.0.0b5 0.3 MB 1.0.0b6 0.1 MB 5646 66%
4 azure-mgmt-appconfiguration 3.1.0 0.3 MB 4.0.0 0.1 MB 5647 66%
5 azure-mgmt-containerservicefleet 2.1.0 0.6 MB 3.0.0 0.09 MB 5648 85%
6 azure-mgmt-databox 2.0.0 0.9 MB 3.0.0 0.1 MB 5649 88%
7 azure-mgmt-digitaltwins 6.4.0 0.45 MB 7.0.0 0.09 Mb 5650 90%
8 azure-mgmt-edgeorder 2.0.0b1 0.2 MB 2.0.0 0.07 MB 5651 65%
9 azure-mgmt-extendedlocation 1.2.0b1 0.13 MB 2.0.0 0.05 MB 5652 61%
10 azure-mgmt-network 22.3 7.9MB 28.0.0 0.55 MB 5653 93%
11 azure-mgmt-monitor 6.0.2 1.3 MB 7.0.0b1 0.17 MB 5876 87%
  • Stage 2: Remove api-version that is not used by Azure CLI to reduce package size
ID package-name version (before trim) size (before trim) version (after trim) size (after trim) trim issue reduced size percent
1 azure-mgmt-web 7.3.1 6.3 MB 8.0.0 2.5 MB 5711 60%
2 azure-mgmt-containerservice 33.0.0 10.8 MB 34.0.0 0.4 MB 5816 96%
3 azure-mgmt-compute 33.1.0 6.0 MB 34.0.0 2.0 MB 5799 67%
4 azure-mgmt-resource 23.2.0 2.7 MB
5 azure-mgmt-storage 21.2.1 3.2 MB 22.0.0 0.55 MB 5822 83%
6 azure-mgmt-containerregistry 11.0.0 2.3 MB 12.0.0 1.1 MB 5898 52%
7 azure-mgmt-databoxedge 2.0.0b1 1.3 MB 2.0.0 0.35 MB 5897 73%
8 azure-mgmt-iothub 3.0.0 1.3 MB 4.0.0 0.35 MB 6019 73%
9 azure-mgmt-servicebus 8.2.1 0.9 MB 9.0.0 0.25 MB 6080 72%
10 azure-mgmt-eventhub 11.1.0 0.9 MB
11 azure-mgmt-security 7.0.0 1.4 MB
12 azure-mgmt-keyvault 10.3.1 0.9 MB 11.0.0 0.3 MB 5902 67%
13 azure-mgmt-authorization 4.0.0 1.1 MB
14 azure-mgmt-dns 8.2.0 0.2 MB
15 azure-mgmt-kubernetesconfiguration 3.1.0 0.8 MB
16 azure-mgmt-applicationinsights 4.0.0 0.5 MB
17 azure-mgmt-msi 7.0.0 0.1 MB

NOTE: "azure-mgmt-kubernetesconfiguration" is split into several packages by service team so no need to release new version.

  • Stage 3: Convert all packages of stage 2 to single-api packages
ID package-name version (before trim) size (before trim) version (after trim) size (after trim) trim issue reduced size percent
1 azure-mgmt-storage 21.2.1 3.2 MB 23.0.0 0.28 MB 6211 91%
2 azure-mgmt-keyvault 10.3.1 0.9 MB 12.0.0 0.14 MB 6405 84%
3 azure-mgmt-dns 8.2.0 0.2 MB 9.0.0 0.06 MB 6400 70%
4 azure-mgmt-eventhub 11.2.0 1.1 MB 12.0.0b1 0.15 MB 6415 86%
5 azure-mgmt-servicebus 8.2.1 0.9 MB 10.0.0b1 0.13 MB 6414 86%
6 azure-mgmt-resource 23.2.0 2.7 MB 25.0.0b1 0.52 MB 6425 81%
7 azure-mgmt-containerservice 33.0.0 10.8 MB 39.0.0 0.2 MB 6434 98%
8 azure-mgmt-authorization 4.0.0 1.1 MB 5.0.0b1 0.32 MB 6440 70%
9 azure-mgmt-applicationinsights 4.0.0 0.5 MB 5.0.0b1 0.18 MB 6441 64%
10 azure-mgmt-iothub 3.0.0 1.3 MB 5.0.0b1 0.11 MB 6477 92%
11 azure-mgmt-msi 7.0.0 0.1 MB 8.0.0b1 0.06 MB 6492 40%
6 azure-mgmt-containerregistry 11.0.0 2.3 MB 14.1.0b2 0.24 MB 6493 90%

Activity

  1. lirenhe commented on Oct 30, 2025

    @lirenhe
    Member

    Close it as completed.

  2. locked and limited conversation to collaborators on Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

MgmtThis issue is related to a management-plane library.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions