Skip to content

[BC]Migrate Module Breaking Changes Announcement#29131

Open
JiaSeng-v wants to merge 1 commit intoAzure:mainfrom
JiaSeng-v:jiaseng/Migrate-breakingchange
Open

[BC]Migrate Module Breaking Changes Announcement#29131
JiaSeng-v wants to merge 1 commit intoAzure:mainfrom
JiaSeng-v:jiaseng/Migrate-breakingchange

Conversation

@JiaSeng-v
Copy link
Contributor

@JiaSeng-v JiaSeng-v commented Feb 4, 2026

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 review requested due to automatic review settings February 4, 2026 00:55
@azure-client-tools-bot-prd
Copy link

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

@JiaSeng-v JiaSeng-v added Contains Breaking Change This PR contains breaking change Breaking Change Preannounce This PR adds preannouncement about upcoming breaking change autorest v4 migration pr migrating module from generated by autorest.powershell v3 to v4 labels Feb 4, 2026
@github-actions
Copy link

github-actions bot commented Feb 4, 2026

To the author of the pull request,
This PR was labeled "Contains Breaking Change" because breaking changes have been detected by the static analysis pipeline.

  • According to our policy, breaking changes can only take place during major release and they must be preannounced.
  • Please follow our guide on the detailed steps.
  • Required: Please fill in the task below to facilitate our contact,you will receive notifications related to breaking changes.

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 pull request adds breaking change announcements to the Az.Migrate module for changes scheduled in Az v16.0.0 (May 2026). The changes add PreviewMessage attributes to multiple cmdlets to warn users about upcoming breaking changes.

Changes:

  • Added breaking change announcement to ChangeLog.md
  • Added PreviewMessage attributes to 8 cmdlets (New-AzMigrateServerReplication, New-AzMigrateProject, New-AzMigrateDiskMapping, Get-AzMigrateServerReplication, Get-AzMigrateLocalServerReplication, Get-AzMigrateLocalJob, Get-AzMigrateJob, Get-AzMigrateDiscoveredServer)
  • Added preview-announcement directive in AutoRest README.md for New-ReplicationProtectionContainerMapping
  • Updated module version to 2.11.0 and regenerated AutoRest files

Reviewed changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated 11 comments.

Show a summary per file
File Description
src/Migrate/Migrate/ChangeLog.md Added breaking change announcement entry with reference URL
src/Migrate/Migrate/Az.Migrate.psd1 Updated generated date, uncommented ScriptsToProcess and TypesToProcess, minor formatting changes
src/Migrate/Migrate.sln Updated project GUID for AutoRest project reference
src/Migrate/Migrate.Autorest/test/README.md Changed path separator from forward slash to backslash for Windows compatibility
src/Migrate/Migrate.Autorest/resources/README.md Changed path separator from forward slash to backslash for Windows compatibility
src/Migrate/Migrate.Autorest/generate-info.json Updated generation ID for new AutoRest generation
src/Migrate/Migrate.Autorest/docs/README.md Changed path separators from forward slash to backslash for Windows compatibility
src/Migrate/Migrate.Autorest/docs/Az.Migrate.md Updated Module GUID
src/Migrate/Migrate.Autorest/custom/README.md Changed path separators from forward slash to backslash for Windows compatibility
src/Migrate/Migrate.Autorest/custom/New-AzMigrateServerReplication.ps1 Added PreviewMessage attribute with breaking change announcement
src/Migrate/Migrate.Autorest/custom/New-AzMigrateProject.ps1 Added PreviewMessage attribute with breaking change announcement
src/Migrate/Migrate.Autorest/custom/New-AzMigrateDiskMapping.ps1 Added PreviewMessage attribute with breaking change announcement
src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerReplication.ps1 Added PreviewMessage attribute with breaking change announcement
src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalServerReplication.ps1 Added PreviewMessage attribute with breaking change announcement (duplicate attribute issue)
src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalJob.ps1 Added PreviewMessage attribute with breaking change announcement (duplicate attribute issue)
src/Migrate/Migrate.Autorest/custom/Get-AzMigrateJob.ps1 Added PreviewMessage attribute with breaking change announcement
src/Migrate/Migrate.Autorest/custom/Get-AzMigrateDiscoveredServer.ps1 Added PreviewMessage attribute with breaking change announcement
src/Migrate/Migrate.Autorest/custom/Az.Migrate.custom.psm1 Changed path separators from forward slash to backslash for Windows compatibility
src/Migrate/Migrate.Autorest/README.md Added preview-announcement directive for New-ReplicationProtectionContainerMapping cmdlet
src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs Updated assembly version from 2.10.1 to 2.11.0


function New-AzMigrateProject {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.
#>
function Get-AzMigrateServerReplication {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.
#>
function Get-AzMigrateLocalJob {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.
#>
function Get-AzMigrateJob {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.

function Get-AzMigrateDiscoveredServer {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.
#>
function New-AzMigrateDiskMapping {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.
#>
function Get-AzMigrateLocalServerReplication {
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessage("**********************************************************************************************`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The grammar is incorrect. It should be "to be released in May 2026" not "to be released on May 2026". The preposition "in" is correct for months, while "on" is used for specific dates.

Suggested change
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released on May 2026. *`n
* This cmdlet will undergo a breaking change in Az v16.0.0, to be released in May 2026. *`n

Copilot uses AI. Check for mistakes.
Comment on lines +29 to 30
***************************************************************************************************")]
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessageAttribute("This cmdlet is based on a preview API version and may experience breaking changes in future releases.")]
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

This function has two PreviewMessage attributes. The breaking change announcement attribute on lines 25-29 is duplicated with a different preview message attribute on line 30. This will likely cause conflicts. If both attributes are needed, verify that the runtime supports multiple PreviewMessage attributes, otherwise remove the duplicate or consolidate the messages.

Suggested change
***************************************************************************************************")]
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessageAttribute("This cmdlet is based on a preview API version and may experience breaking changes in future releases.")]
***************************************************************************************************`n
`n
This cmdlet is based on a preview API version and may experience breaking changes in future releases.")]

Copilot uses AI. Check for mistakes.
Comment on lines +29 to 30
***************************************************************************************************")]
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessageAttribute("This cmdlet is based on a preview API version and may experience breaking changes in future releases.")]
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

This function has two PreviewMessage attributes. The breaking change announcement attribute on lines 25-29 is duplicated with a different preview message attribute on line 30. This will likely cause conflicts. If both attributes are needed, verify that the runtime supports multiple PreviewMessage attributes, otherwise remove the duplicate or consolidate the messages.

Suggested change
***************************************************************************************************")]
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Runtime.PreviewMessageAttribute("This cmdlet is based on a preview API version and may experience breaking changes in future releases.")]
***************************************************************************************************`n
This cmdlet is based on a preview API version and may experience breaking changes in future releases.")]

Copilot uses AI. Check for mistakes.
- Additional information about change #1
-->
## Upcoming Release
* Preannounced breaking changes. Please refer to https://go.microsoft.com/fwlink/?linkid=2333229
Copy link

Copilot AI Feb 4, 2026

Choose a reason for hiding this comment

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

The URL in the ChangeLog.md (linkid=2333229) is different from the URL used in all the cmdlet files and the README.md directive (linkid=2333486). These URLs should be consistent. Please verify which URL is correct and update accordingly.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autorest v4 migration pr migrating module from generated by autorest.powershell v3 to v4 Breaking Change Preannounce This PR adds preannouncement about upcoming breaking change Contains Breaking Change This PR contains breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant