Skip to content

[mgmt] publish samples for advisor#37003

Merged
MaryGao merged 1 commit intoAzure:mainfrom
kazrael2119:publish-sample
Jan 13, 2026
Merged

[mgmt] publish samples for advisor#37003
MaryGao merged 1 commit intoAzure:mainfrom
kazrael2119:publish-sample

Conversation

@kazrael2119
Copy link
Member

from these two PRs:
#36198
#35609

These two have respectively modified the contents of the "samples" and "samples-dev" folders, resulting in inconsistency between the contents of these two folders

@github-actions github-actions bot added the Mgmt This issue is related to a management-plane library. label Jan 9, 2026
@MaryGao MaryGao marked this pull request as ready for review January 13, 2026 08:52
@MaryGao MaryGao requested a review from qiaozha as a code owner January 13, 2026 08:52
Copilot AI review requested due to automatic review settings January 13, 2026 08:52
@MaryGao MaryGao merged commit cac0d77 into Azure:main Jan 13, 2026
20 of 21 checks passed
@kazrael2119 kazrael2119 deleted the publish-sample branch January 13, 2026 08:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR synchronizes the TypeScript and JavaScript sample files for the @azure/arm-advisor package, resolving inconsistencies between the samples and samples-dev folders caused by two previous PRs that modified these folders independently.

Changes:

  • Modernized sample code structure with updated copyright headers, improved imports (using dotenv/config and import type), and added explicit Promise<void> return types
  • Updated dependencies to current versions (TypeScript ~5.9.3, @azure/identity ^4.13.0) and added cross-env to devDependencies
  • Enhanced code quality with const declarations in loops, proper await usage, and trailing commas for better maintainability

Reviewed changes

Copilot reviewed 33 out of 33 changed files in this pull request and generated no comments.

Show a summary per file
File Description
sdk/advisor/arm-advisor/samples/v3/typescript/tsconfig.json Updated compiler options to ES2023 target with stricter type checking and modern module resolution
sdk/advisor/arm-advisor/samples/v3/typescript/src/*.ts Modernized all TypeScript samples with new header format, import type syntax, Promise return types, and improved code style
sdk/advisor/arm-advisor/samples/v3/typescript/package.json Updated TypeScript and @azure/identity versions, added cross-env and "cloud" keyword
sdk/advisor/arm-advisor/samples/v3/typescript/README.md Improved documentation by clarifying "required" environment variables and adding npx prefix to cross-env command
sdk/advisor/arm-advisor/samples/v3/javascript/*.js Modernized all JavaScript samples with new header format, dotenv/config import, and improved code style with const and await
sdk/advisor/arm-advisor/samples/v3/javascript/package.json Updated @azure/identity version, added cross-env devDependency and "cloud" keyword
sdk/advisor/arm-advisor/samples/v3/javascript/README.md Improved documentation by clarifying "required" environment variables and adding npx prefix to cross-env command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Mgmt This issue is related to a management-plane library.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants