Skip to content

DataMigration Autorest v3 to v4#29580

Open
JiaSeng-v wants to merge 4 commits into
Azure:mainfrom
JiaSeng-v:jiaseng/main/DataMigration-v4
Open

DataMigration Autorest v3 to v4#29580
JiaSeng-v wants to merge 4 commits into
Azure:mainfrom
JiaSeng-v:jiaseng/main/DataMigration-v4

Conversation

@JiaSeng-v
Copy link
Copy Markdown
Contributor

@JiaSeng-v JiaSeng-v commented May 13, 2026

Description

Preannouncement PR:

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 May 13, 2026 05:13
@azure-client-tools-bot-prd
Copy link
Copy Markdown

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 autorest v4 migration pr migrating module from generated by autorest.powershell v3 to v4 labels May 13, 2026
@github-actions
Copy link
Copy Markdown

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
Copy Markdown
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 updates the Az.DataMigration AutoRest configuration and regenerated module artifacts as part of migrating the DataMigration AutoRest pipeline from v3 to v4. The changes primarily surface as updated cmdlet reference help/docs (new JSON parameter-set variants, updated model type names) and module metadata updates.

Changes:

  • Regenerated cmdlet help and module docs to include additional parameter sets (e.g., JsonString/JsonFilePath) and updated output model type names.
  • Updated DataMigration AutoRest configuration (directives, subject renames, variant removals) to align with v4 generation behavior.
  • Updated module packaging metadata (manifest dependency version, assembly version, solution project GUID).

Reviewed changes

Copilot reviewed 56 out of 56 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/DataMigration/DataMigration/help/Update-AzDataMigrationSqlService.md Help updated with JsonString/JsonFilePath parameter sets and type name adjustments.
src/DataMigration/DataMigration/help/Stop-AzDataMigrationToSqlVM.md Help updated with additional cancel parameter sets (JSON/identity variants).
src/DataMigration/DataMigration/help/Stop-AzDataMigrationToSqlManagedInstance.md Help updated with additional cancel parameter sets (JSON/identity variants).
src/DataMigration/DataMigration/help/Stop-AzDataMigrationToSqlDb.md Help updated with additional cancel parameter sets (JSON/identity variants).
src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlVM.md Help updated with additional identity-based delete parameter set and type name adjustments.
src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlManagedInstance.md Help updated with additional identity-based delete parameter set and type name adjustments.
src/DataMigration/DataMigration/help/Remove-AzDataMigrationToSqlDb.md Help updated with additional identity-based delete parameter set.
src/DataMigration/DataMigration/help/Remove-AzDataMigrationSqlServiceNode.md Help updated with JsonString/JsonFilePath delete variants and type name adjustments.
src/DataMigration/DataMigration/help/Remove-AzDataMigrationSqlService.md Help updated (identity construction note removed).
src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlVM.md Help updated with JSON/identity variants and parameter metadata changes.
src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlManagedInstance.md Help updated with parameter metadata changes (notably Kind type).
src/DataMigration/DataMigration/help/New-AzDataMigrationToSqlDb.md Help updated with JSON/identity variants and parameter metadata changes.
src/DataMigration/DataMigration/help/New-AzDataMigrationSqlServiceAuthKey.md Help updated with JsonString/JsonFilePath variants and parameter-set scoping.
src/DataMigration/DataMigration/help/New-AzDataMigrationSqlService.md Help updated with JSON variants and revised synopsis/description.
src/DataMigration/DataMigration/help/Invoke-AzDataMigrationRetryToSqlDb.md Help updated with JSON/identity variants and updated model type references.
src/DataMigration/DataMigration/help/Invoke-AzDataMigrationCutoverToSqlVM.md Help updated with JSON/identity variants and parameter-set scoping.
src/DataMigration/DataMigration/help/Invoke-AzDataMigrationCutoverToSqlManagedInstance.md Help updated with JSON/identity variants and parameter-set scoping.
src/DataMigration/DataMigration/help/Get-AzDataMigrationToSqlVM.md Help updated with additional identity-based parameter set and type name adjustments.
src/DataMigration/DataMigration/help/Get-AzDataMigrationToSqlManagedInstance.md Help updated with additional identity-based parameter set and type name adjustments.
src/DataMigration/DataMigration/help/Get-AzDataMigrationToSqlDb.md Help updated with additional identity-based parameter set and type name adjustments.
src/DataMigration/DataMigration/help/Get-AzDataMigrationSqlServiceMigration.md Help output type name updated.
src/DataMigration/DataMigration/help/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.md Help output type name updated.
src/DataMigration/DataMigration/help/Get-AzDataMigrationSqlServiceAuthKey.md Help output type name updated.
src/DataMigration/DataMigration/help/Get-AzDataMigrationSqlService.md Help updated (identity construction note removed) and output type name updated.
src/DataMigration/DataMigration/help/Az.DataMigration.md Module help index updated (cmdlet one-line descriptions).
src/DataMigration/DataMigration/Az.DataMigration.psd1 Manifest updated (Az.Accounts minimum version, formatting, generated date).
src/DataMigration/DataMigration.sln Solution updated to new project GUID mapping for Az.DataMigration generated project.
src/DataMigration/DataMigration.Autorest/README.md AutoRest config updated (removed explicit v3 extension pin; directive tweaks; added variant removals).
src/DataMigration/DataMigration.Autorest/Properties/AssemblyInfo.cs Assembly version bumped to 1.0.0.
src/DataMigration/DataMigration.Autorest/generate-info.json Regeneration identifier updated.
src/DataMigration/DataMigration.Autorest/docs/Update-AzDataMigrationSqlService.md AutoRest docs updated with JSON variants and updated type names.
src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlVM.md AutoRest docs updated with JSON/identity cancel variants.
src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlManagedInstance.md AutoRest docs updated with JSON/identity cancel variants.
src/DataMigration/DataMigration.Autorest/docs/Stop-AzDataMigrationToSqlDb.md AutoRest docs updated with JSON/identity cancel variants.
src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlVM.md AutoRest docs updated with identity-based delete variant and type names.
src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlManagedInstance.md AutoRest docs updated with identity-based delete variant and type names.
src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationToSqlDb.md AutoRest docs updated with identity-based delete variant.
src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationSqlServiceNode.md AutoRest docs updated with JSON delete variants and updated type names.
src/DataMigration/DataMigration.Autorest/docs/Remove-AzDataMigrationSqlService.md AutoRest docs updated (identity construction note removed).
src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlVM.md AutoRest docs updated with JSON/identity variants and parameter metadata changes.
src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlManagedInstance.md AutoRest docs updated with parameter metadata changes (notably Kind type).
src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationToSqlDb.md AutoRest docs updated with JSON/identity variants and parameter metadata changes.
src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlServiceAuthKey.md AutoRest docs updated with JSON variants and parameter-set scoping.
src/DataMigration/DataMigration.Autorest/docs/New-AzDataMigrationSqlService.md AutoRest docs updated with JSON variants and revised synopsis/description.
src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationRetryToSqlDb.md AutoRest docs updated with JSON/identity variants and updated model type references.
src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationCutoverToSqlVM.md AutoRest docs updated with JSON/identity variants.
src/DataMigration/DataMigration.Autorest/docs/Invoke-AzDataMigrationCutoverToSqlManagedInstance.md AutoRest docs updated with JSON/identity variants.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlVM.md AutoRest docs updated with identity-based parameter set and type names.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlManagedInstance.md AutoRest docs updated with identity-based parameter set and type names.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationToSqlDb.md AutoRest docs updated with identity-based parameter set and type names.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceMigration.md AutoRest docs output type name updated.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric.md AutoRest docs output type name updated.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlServiceAuthKey.md AutoRest docs output type name updated.
src/DataMigration/DataMigration.Autorest/docs/Get-AzDataMigrationSqlService.md AutoRest docs updated (identity construction note removed) and output type name updated.
src/DataMigration/DataMigration.Autorest/docs/Az.DataMigration.md AutoRest module docs index updated (including Module Guid).
src/DataMigration/DataMigration.Autorest/custom/Cmdlets/New-AzDataMigrationToSqlManagedInstance.ps1 Custom cmdlet signature updated (notably Kind parameter type).

Comment on lines 396 to +399

- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
Comment on lines 10 to 12
## SYNOPSIS
Create or Update Database Migration Service.
Create Database Migration Service.

Comment on lines 98 to 100
### [New-AzDataMigrationSqlService](New-AzDataMigrationSqlService.md)
Create or Update Database Migration Service.
Create Database Migration Service.

Comment on lines 160 to 166
### -Kind
.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateExpanded, CreateViaIdentityServerExpanded
Aliases:
Comment on lines 239 to 245
### -Kind
.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType
Parameter Sets: (All)
Type: System.String
Parameter Sets: CreateExpanded, CreateViaIdentitySqlVirtualMachineExpanded
Aliases:
Comment on lines 265 to 270
### -Kind
Resource type.

```yaml
Type: Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType
Type: System.String
Parameter Sets: (All)

[Parameter(HelpMessage = "Resource type.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType]${Kind},
[string]${Kind},
Comment on lines 10 to 12
## SYNOPSIS
Create or Update Database Migration Service.
Create Database Migration Service.

Copilot AI review requested due to automatic review settings May 13, 2026 07:48
Copy link
Copy Markdown
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

Copilot reviewed 59 out of 59 changed files in this pull request and generated 7 comments.

Comment on lines +1 to +5
"Module","ClassName","Target","Severity","ProblemId","Description","Remediation"
"Az.DataMigration","Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric","Get-AzDataMigrationSqlServiceIntegrationRuntimeMetric","0","3000","The type of property 'Node' of type 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IIntegrationRuntimeMonitoringData' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.INodeMonitoringData' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.INodeMonitoringData]'.","Change the type of property 'Node' back to 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.INodeMonitoringData'."
"Az.DataMigration","Get-AzDataMigrationSqlServiceMigration","Get-AzDataMigrationSqlServiceMigration","0","3000","The type of property 'ProvisioningState' of type 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState]' to 'System.String'.","Change the type of property 'ProvisioningState' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ProvisioningState]'."
"Az.DataMigration","Get-AzDataMigrationSqlServiceMigration","Get-AzDataMigrationSqlServiceMigration","0","3000","The type of property 'Kind' of type 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigration' has changed from 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType]' to 'System.String'.","Change the type of property 'Kind' back to 'System.Nullable`1[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType]'."
"Az.DataMigration","Get-AzDataMigrationToSqlDb","Get-AzDataMigrationToSqlDb","0","3000","The type of property 'MigrationStatusDetailListOfCopyProgressDetail' of type 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.IDatabaseMigrationSqlDb' has changed from 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.ICopyProgressDetails' to 'System.Collections.Generic.List`1[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.ICopyProgressDetails]'.","Change the type of property 'MigrationStatusDetailListOfCopyProgressDetail' back to 'Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.ICopyProgressDetails'."
Comment on lines 20 to 22
## Upcoming Release
* Improved user experience and consistency. This may introduce breaking changes. Please refer to [here](https://go.microsoft.com/fwlink/?linkid=2340249).

Comment on lines 396 to +399

- where:
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
Comment on lines 10 to 12
## SYNOPSIS
Create or Update Database Migration Service.
Create Database Migration Service.

Comment on lines 259 to 262
## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
### Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.ISqlMigrationService

Comment on lines 282 to 285
## OUTPUTS

### Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.Api20250630.ISqlMigrationService
### Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Models.ISqlMigrationService


[Parameter(HelpMessage = "Resource type.")]
[Microsoft.Azure.PowerShell.Cmdlets.DataMigration.Support.ResourceType]${Kind},
[string]${Kind},
@github-actions
Copy link
Copy Markdown

‼️ DO NOT MERGE THIS PR ‼️
This PR was labeled "Do Not Merge" because it contains code change that cannot be merged. Please contact the reviewer for more information.

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 Contains Breaking Change This PR contains breaking change Do Not Merge 🚫

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants