Skip to content

[Az.DigitalTwins] Update generation tool version: autorest.powershell v3->v4 #27899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jun 12, 2025

Conversation

lijinpei2008
Copy link
Contributor

…3->v4

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

Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

@lijinpei2008 lijinpei2008 marked this pull request as ready for review June 6, 2025 12:52
@Copilot Copilot AI review requested due to automatic review settings June 6, 2025 12:52
Copy link
Contributor

@Copilot 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 updates the Az.DigitalTwins generation tool from autorest.powershell v3 to v4. It adjusts documentation files, parameter sets, command syntax (including new JSON‐based input modes), and associated custom scripts to align with the new version.

Reviewed Changes

Copilot reviewed 84 out of 84 changed files in this pull request and generated 1 comment.

File Description
Docs files (e.g., New-AzDigitalTwinsTimeSeriesDatabaseConnection.md, New-AzDigitalTwinsInstance.md, etc.) Updated cmdlet syntaxes, parameter set names, and removed deprecated help files (e.g., PrivateLink and PrivateEndpointConnection docs) to align with v4 changes.
Custom script files (e.g., Update-AzDigitalTwinsTimeSeriesDatabaseConnection.ps1, Update-AzDigitalTwinsEndpoint.ps1, New-AzDigitalTwinsEndpoint.ps1, etc.) Adjustments in parameter handling and property assignment to support new input modes and updated API models.
AssemblyInfo.cs and README.md Updated version information and transformation directives to reflect the upgrade and removal of deprecated commands.
Comments suppressed due to low confidence (1)

src/DigitalTwins/DigitalTwins.Autorest/README.md:51

  • Ensure that the removal of deprecated command directives (e.g., for PrivateLink and PrivateEndpointConnection resources) is intentional and documented for users migrating from v3 to v4, to avoid any unexpected loss of functionality or guidance.
-    hide: true


process {
try {
if($PSBoundParameters['EndpointType'] -eq 'EventHub')
Copy link
Preview

Copilot AI Jun 6, 2025

Choose a reason for hiding this comment

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

Please verify that the parameter names used for the EventHub connection keys (e.g., 'connectionStringPrimaryKey' vs. 'ConnectionStringPrimaryKey') are consistent across both parameter definitions and property assignments. Although PowerShell is case-insensitive, using a consistent naming style improves code readability and maintainability.

Copilot uses AI. Check for mistakes.

@@ -51,36 +51,33 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

# Modules that must be imported into the global environment prior to importing this module
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.1'; })
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.0.2'; })
Copy link
Contributor

Choose a reason for hiding this comment

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

The current Az.Accounts version is 5.1.0. Should we update it here?

Copy link
Contributor

@vidai-msft vidai-msft left a comment

Choose a reason for hiding this comment

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

LGTM

@vidai-msft vidai-msft merged commit 0459946 into main Jun 12, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants