Skip to content

Migrate CloudHsm module to tsp - #30010

Draft
JunKai-v wants to merge 1 commit into
Azure:mainfrom
JunKai-v:tsp-migrate/cloudhsm
Draft

Migrate CloudHsm module to tsp#30010
JunKai-v wants to merge 1 commit into
Azure:mainfrom
JunKai-v:tsp-migrate/cloudhsm

Conversation

@JunKai-v

Copy link
Copy Markdown
Contributor

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI lite review requested due to automatic review settings August 14, 2026 09:35
@JunKai-v JunKai-v added the TypeSpec Module generated from TypeSpec label Aug 14, 2026
@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Migrates the Az.CloudHsm module’s code generation workflow from AutoRest (Swagger) to TypeSpec by adding TypeSpec emitter configuration and updating generated metadata/artifacts for the CloudHsm module.

Changes:

  • Added TypeSpec PowerShell emitter configuration (tspconfig.yaml) and pinned spec location (tsp-location.yaml) for CloudHsm generation.
  • Updated module manifest metadata (generation date, Az.Accounts minimum version) and solution project GUID references.
  • Refreshed generated module metadata files (assembly info, docs module GUID, generation id) and updated module changelog.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/CloudHsm/CloudHsm/ChangeLog.md Notes the generator migration in release notes.
src/CloudHsm/CloudHsm/Az.CloudHsm.psd1 Updates manifest generation stamp and Az.Accounts dependency floor.
src/CloudHsm/CloudHsm.sln Updates solution project GUID mapping for Az.CloudHsm project entry.
src/CloudHsm/CloudHsm.Autorest/tspconfig.yaml Introduces TypeSpec PowerShell emitter options and directives for cmdlet shaping.
src/CloudHsm/CloudHsm.Autorest/tsp-location.yaml Pins the TypeSpec/spec source location to a specific repo commit for reproducible generation.
src/CloudHsm/CloudHsm.Autorest/README.md Removes embedded AutoRest YAML configuration section from the module README.
src/CloudHsm/CloudHsm.Autorest/Properties/AssemblyInfo.cs Updates generated assembly metadata (including AssemblyTitle).
src/CloudHsm/CloudHsm.Autorest/generate-info.json Updates generation id metadata.
src/CloudHsm/CloudHsm.Autorest/docs/Az.CloudHsm.md Updates documentation module GUID header metadata.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

- Additional information about change #1
-->
## Upcoming Release
* Migrated code generation from AutoRest (Swagger) to TypeSpec. No user-facing changes in this release.
# Generated by: Microsoft Corporation
#
# Generated on: 26/06/2025
# Generated on: 14-Aug-26
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - CloudHsm")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - HardwareSecurityModules")]
Comment on lines +90 to +95
- where:
verb: ^Backup$|^Restore$
subject: ''
parameter-name: Name
set:
parameter-name: SkuName
Comment on lines 22 to 24
## Development
For information on how to develop for `Az.CloudHsm`, see [how-to.md](how-to.md).
<!-- endregion -->
@a0x1ab

Copy link
Copy Markdown
Member

/azp run

@azure-pipelines

Copy link
Copy Markdown
Contributor
Azure Pipelines:
Successfully started running 3 pipeline(s).

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

Labels

TypeSpec Module generated from TypeSpec

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants