Skip to content

[samples] consider stopping management samples publication #36757

@jeremymeng

Description

@jeremymeng

Management packages sometimes can have a large number of auto-generated samples but committing them are often not that useful comparing to data-plane packages whose samples are published to learn site. Essentially, we have three copies of files but two of them are not useful. For example, arm-network has 731 sample files under samples-dev/ and arm-network-rest has 631.

The only place where the management samples is consumed is the rest api reference doc page and only JavaScript version is used. For example, https://learn.microsoft.com/en-us/rest/api/compute/virtual-machines/create-or-update?view=rest-compute-2025-04-01&tabs=JavaScript#create-a-custom-image-vm-from-an-unmanaged-generalized-os-image.

We can still keep samples-dev so that validations can be done in sample authoring. We can run the dev-tool command to publish samples as a dry-run. Ideally, we won't commit any of the published samples.

The question is whether the sample collection process is able to checkout our JS repo at a specific tag, publish samples, then collect from the published samples instead.

Metadata

Metadata

Labels

EngSysThis issue is impacting the engineering system.MgmtThis issue is related to a management-plane library.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions