Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Migrate")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.9.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.9.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

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

The assembly version was downgraded from 2.9.0 to 0.1.0.0, which violates semantic versioning principles. Assembly versions should only increase. This change will cause compatibility issues and break existing references to the assembly.

Suggested change
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.0.0")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.9.0.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.9.0.0")]

Copilot uses AI. Check for mistakes.
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
98 changes: 49 additions & 49 deletions src/Migrate/Migrate.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ In this directory, run AutoRest:

``` yaml
skip-semantics-validation: true
commit: 473d98be4cc2fb14db8bddbba8d3184d0aa49636
commit: ca9d05ed67fe556197b01fe795e80e4e2dc41e86
Copy link

Copilot AI Oct 27, 2025

Choose a reason for hiding this comment

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

The commit hash should be documented with a comment explaining why this specific commit was chosen and what API changes it includes. This helps future maintainers understand the reason for the specification update.

Copilot generated this review using guidance from repository custom instructions.
require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
- $(repo)/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json
- $(repo)/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
- $(repo)/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2024-01-01/service.json
- $(repo)/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- $(repo)/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
- $(repo)/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json

module-version: 3.0.13
module-version: 3.0.14
title: Migrate
subject-prefix: 'Migrate'

Expand Down Expand Up @@ -127,55 +127,55 @@ directive:
- FabricAgentModelCustomProperties
- VaultModelProperties
# Remove variants not in scope
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Test$
subject: ^ReplicationMigrationItemMigrate
variant: ^TestViaIdentity$|^TestViaIdentityExpanded$|^Test$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Get$
subject: ReplicationFabric$|ReplicationPolicy$|ReplicationProtectionContainer$|ReplicationMigrationItem$|ReplicationJob$|ReplicationProtectionContainerMapping$|ReplicationRecoveryServicesProvider$
variant: ^GetViaIdentity$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Remove$
subject: ^ReplicationMigrationItem
variant: ^DeleteViaIdentity$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Move$
subject: ^ReplicationMigrationItem
variant: ^MigrateViaIdentityExpanded$|^Migrate$|^MigrateViaIdentity$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Suspend$
subject: ^ReplicationMigrationItemReplication
variant: ^PauseViaIdentityExpanded$|^Pause$|^PauseViaIdentity$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Resume$
subject: ^ReplicationMigrationItemReplication
variant: ^ResumeViaIdentityExpanded$|^Resume$|^ResumeViaIdentity$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Invoke$
subject: ^ResyncReplicationMigrationItem
variant: ^ResyncViaIdentityExpanded$|^ResyncViaIdentity$|^Resync$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: New$
subject: ^ReplicationMigrationItem|ReplicationProtectionContainerMapping$|ReplicationPolicy$
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$|^Create$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Update$
subject: ^ReplicationMigrationItem
Expand Down Expand Up @@ -273,49 +273,49 @@ directive:
verb: Update$
subject: Project$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
subject: ^ReplicationRecoveryPlan|ReplicationRecoveryServiceProvider$|ReplicationEvent$|ReplicationAlertSetting$|ReplicationLogicalNetwork$|^ReplicationProtectedItem|^ReplicationNetwork|^ReplicationStorage|RecoveryPoint$|ProtectableItem$|FabricGateway$|FabricToAad$|ReplicationvCenter$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Export$|Find$|Switch$|Clear$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
subject: ^Commit|^Renew|^Reprotect|^Unplanned|VaultHealth$|ComputeSize$|FabricConsistency$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: New$|Remove$
subject: Fabric$|ProtectionContainer$|ReplicationRecoveryServicesProvider$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Remove$
subject: ReplicationPolicy$|ReplicationProtectionContainerMapping$|ReplicationFabricInfra$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Update$
subject: Fabric$|Policy$|ProtectionContainer$|ReplicationProtectionContainerMapping$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Stop$|Resume$|Restart$
subject: Job$
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Get
subject: ^ReplicationAppliance|^ReplicationEligibilityResult|^ReplicationProtectionIntent
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Get
subject: ^ReplicationVaultSetting|^SupportedOperatingSystem|^ReplicationProtectionIntent
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: New
subject: ^ReplicationVaultSetting|^SupportedOperatingSystem|^ReplicationProtectionIntent
Expand All @@ -335,57 +335,57 @@ directive:
verb: New|Remove|Update
subject: ^HyperV
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Test|Invoke
subject: NameAvailability$|DeploymentPreflight
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Get|New
subject: ^EmailConfiguration
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^(FabricAgent|ProtectedItem|Vault|Job)OperationStatus$
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^FabricOperationsStatus$
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: New
subject: ^(FabricAgent|Vault)
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Update
subject: ^Vault
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
subject: PrivateEndpointConnection|PrivateLinkResource
remove: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
subject: OperationResult
remove: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Invoke
subject: ^PlannedReplication
remove: true
# Rename cmdlets for Azure Local
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^Fabric$
set:
subject: LocalReplicationFabric
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^Job$
Expand All @@ -397,57 +397,57 @@ directive:
verb: Set$
subject: ^Solution
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Get$
subject: ToAzureMigrate$
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Get$
subject: ReplicationMigrationItem$|ReplicationJob$
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Test$
subject: ^ReplicationMigrationItemMigrate
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: New$|Remove$
subject: ^ReplicationMigrationItem
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Move$
subject: ^ReplicationMigrationItem
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Restart$
subject: ^ReplicationJob
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Invoke$
subject: ^ResyncReplicationMigrationItem
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Update$
subject: ^ReplicationMigrationItem
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Suspend$
subject: ^ReplicationMigrationItemReplication
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
verb: Resume$
subject: ^ReplicationMigrationItemReplication
hide: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
subject: ^Planned
hide: true
Expand Down Expand Up @@ -490,7 +490,7 @@ directive:
verb: New$
variant: ^CreateViaIdentity
hide: true
- from: Microsoft.DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
- from: Microsoft.DataReplication/DataReplication/stable/2024-09-01/recoveryservicesdatareplication.json
where:
verb: Get$|Invoke$|New$|Remove$|Test$|Update$
subject: ^FabricAgent|^Fabric|^Policy|^EmailConfiguration|^ProtectedItem|^ReplicationExtension|^Vault
Expand All @@ -501,17 +501,17 @@ directive:
parameter-name: Name
clear-alias: true
# Table output formatting
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
model-name: MigrationItem
set:
suppress-format: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
model-name: Job
set:
suppress-format: true
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
- from: Microsoft.RecoveryServices/SiteRecovery/stable/2025-08-01/service.json
where:
model-name: Fabric
set:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"resourceType": "locations/operationResults",
"apiVersion": "2024-09-01",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.migrate"
},
"commands": [
{
"name": "Get-AzMigrateLocationBasedOperationResult",
"description": "Gets the location based operation result.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataReplication/locations/{location}/operationResults/{operationId}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratelocationbasedoperationresult"
},
"parameterSets": [
{
"parameters": [
"-Location <String>",
"-OperationId <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Gets the location based operation result.",
"parameters": [
{
"name": "-Location",
"value": "[Path.location]"
},
{
"name": "-OperationId",
"value": "[Path.operationId]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Loading
Loading