Skip to content

Commit 998d14a

Browse files
committed
fix test suppress breaking change
1 parent 5838aac commit 998d14a

File tree

13 files changed

+211
-58
lines changed

13 files changed

+211
-58
lines changed

src/Migrate/Migrate.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Migrate")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.9.0")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("2.9.0")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.10.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("2.10.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
27-

src/Migrate/Migrate.Autorest/README.md

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ directive:
164164
where:
165165
verb: Invoke$
166166
subject: ^ResyncReplicationMigrationItem
167-
variant: ^ResyncViaIdentityExpanded$|^ResyncViaIdentity$|^Resync$
167+
variant: ^(?!ResyncExpanded$).*
168168
remove: true
169169
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
170170
where:
@@ -270,6 +270,16 @@ directive:
270270
verb: Update$
271271
subject: Project$
272272
remove: true
273+
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
274+
where:
275+
verb: Remove
276+
subject: VCenterVcenter
277+
remove: true
278+
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
279+
where:
280+
verb: Update
281+
subject: ReplicationRecoveryServicesProvider|VCenter
282+
remove: true
273283
- from: Microsoft.RecoveryServices/stable/2024-01-01/service.json
274284
where:
275285
subject: ^ReplicationRecoveryPlan|ReplicationRecoveryServiceProvider$|ReplicationEvent$|ReplicationAlertSetting$|ReplicationLogicalNetwork$|^ReplicationProtectedItem|^ReplicationNetwork|^ReplicationStorage|RecoveryPoint$|ProtectableItem$|FabricGateway$|FabricToAad$|ReplicationvCenter$
@@ -513,14 +523,3 @@ directive:
513523
model-name: Fabric
514524
set:
515525
suppress-format: true
516-
517-
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
518-
where:
519-
verb: Remove
520-
subject: VCenterVcenter
521-
remove: true
522-
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
523-
where:
524-
verb: Update
525-
subject: ReplicationRecoveryServicesProvider|VCenter
526-
remove: true

src/Migrate/Migrate.Autorest/custom/Get-AzMigrateServerReplication.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ function Get-AzMigrateServerReplication {
187187
$null = $PSBoundParameters.Remove("Name")
188188
$null = $PSBoundParameters.Remove("MigrateProjectName")
189189
$null = $PSBoundParameters.Add('ResourceName', $VaultName)
190-
$allFabrics = Az.Migrate.private\Get-AzMigrateReplicationFabric_Get @PSBoundParameters
190+
$allFabrics = Az.Migrate.private\Get-AzMigrateReplicationFabric_List @PSBoundParameters
191191
$FabricName = ""
192192
if ($allFabrics -and ($allFabrics.length -gt 0)) {
193193
foreach ($fabric in $allFabrics) {

src/Migrate/Migrate.Autorest/custom/Restart-AzMigrateServerReplication.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function Restart-AzMigrateServerReplication {
2828
[Parameter(ParameterSetName = 'ByIDVMwareCbt', Mandatory)]
2929
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')]
3030
[System.String]
31-
# Specifies the replcating server for which the resync needs to be initiated. The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet.
31+
# Specifies the replicating server for which the resync needs to be initiated. The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet.
3232
${TargetObjectID},
3333

3434
[Parameter(ParameterSetName = 'ByInputObjectVMwareCbt', Mandatory)]

src/Migrate/Migrate.Autorest/docs/Restart-AzMigrateServerReplication.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Accept wildcard characters: False
138138
```
139139
140140
### -TargetObjectID
141-
Specifies the replcating server for which the resync needs to be initiated.
141+
Specifies the replicating server for which the resync needs to be initiated.
142142
The ID should be retrieved using the Get-AzMigrateServerReplication cmdlet.
143143
144144
```yaml
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "8fdb52a1-b45b-4b4e-b6ea-8b5d70d08912"
2+
"generate_Id": "750defe3-74fa-4c4b-9f28-eccd2b67ff3e"
33
}

src/Migrate/Migrate.Autorest/test/Get-AzMigrateServerMigrationStatus.Tests.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,23 @@ if(($null -eq $TestName) -or ($TestName -contains 'Get-AzMigrateServerMigrationS
1515
}
1616

1717
Describe 'Get-AzMigrateServerMigrationStatus' {
18-
It 'ListByName' {
18+
It 'ListByName' -skip {
1919
{ throw [System.NotImplementedException] } | Should -Not -Throw
2020
}
2121

22-
It 'GetByApplianceName' {
22+
It 'GetByApplianceName' -skip {
2323
{ throw [System.NotImplementedException] } | Should -Not -Throw
2424
}
2525

26-
It 'GetByMachineName' {
26+
It 'GetByMachineName' -skip {
2727
{ throw [System.NotImplementedException] } | Should -Not -Throw
2828
}
2929

30-
It 'GetHealthByMachineName' {
30+
It 'GetHealthByMachineName' -skip {
3131
{ throw [System.NotImplementedException] } | Should -Not -Throw
3232
}
3333

34-
It 'GetByPrioritiseServer' {
34+
It 'GetByPrioritiseServer' -skip {
3535
{ throw [System.NotImplementedException] } | Should -Not -Throw
3636
}
3737
}

src/Migrate/Migrate.sln

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Migrate", "Migrate\Migrate.
2121
EndProject
2222
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Migrate.Autorest", "Migrate.Autorest", "{9AA2C35A-2264-B74D-8556-EB72BD88EE60}"
2323
EndProject
24-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "..\..\generated\Migrate\Migrate.Autorest\Az.Migrate.csproj", "{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}"
24+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "..\..\generated\Migrate\Migrate.Autorest\Az.Migrate.csproj", "{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}"
2525
EndProject
2626
Global
2727
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -117,18 +117,18 @@ Global
117117
{1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x64.Build.0 = Release|Any CPU
118118
{1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x86.ActiveCfg = Release|Any CPU
119119
{1847EC8D-87A5-4772-9E75-1DEA1DC531EE}.Release|x86.Build.0 = Release|Any CPU
120-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Debug|Any CPU.Build.0 = Debug|Any CPU
122-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Debug|x64.ActiveCfg = Debug|Any CPU
123-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Debug|x64.Build.0 = Debug|Any CPU
124-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Debug|x86.ActiveCfg = Debug|Any CPU
125-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Debug|x86.Build.0 = Debug|Any CPU
126-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Release|Any CPU.ActiveCfg = Release|Any CPU
127-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Release|Any CPU.Build.0 = Release|Any CPU
128-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Release|x64.ActiveCfg = Release|Any CPU
129-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Release|x64.Build.0 = Release|Any CPU
130-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Release|x86.ActiveCfg = Release|Any CPU
131-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66}.Release|x86.Build.0 = Release|Any CPU
120+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Debug|x64.ActiveCfg = Debug|Any CPU
123+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Debug|x64.Build.0 = Debug|Any CPU
124+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Debug|x86.ActiveCfg = Debug|Any CPU
125+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Debug|x86.Build.0 = Debug|Any CPU
126+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Release|Any CPU.ActiveCfg = Release|Any CPU
127+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Release|Any CPU.Build.0 = Release|Any CPU
128+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Release|x64.ActiveCfg = Release|Any CPU
129+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Release|x64.Build.0 = Release|Any CPU
130+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Release|x86.ActiveCfg = Release|Any CPU
131+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231}.Release|x86.Build.0 = Release|Any CPU
132132
EndGlobalSection
133133
GlobalSection(SolutionProperties) = preSolution
134134
HideSolutionNode = FALSE
@@ -140,6 +140,6 @@ Global
140140
{FB2B969F-E6FB-4E6E-9D2A-E52F4F53F51F} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8}
141141
{D8D28132-CE20-45C8-8476-6B88C891D945} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8}
142142
{B799EA2F-9E28-421A-9301-BB061C6ADDC2} = {2D0176AD-AE30-4235-9D62-17043F0D4CD8}
143-
{ED2E2A8D-EC7A-4C03-A27B-A6534C975D66} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60}
143+
{DE0DB80A-7AF9-4FAC-A00A-1C2301D7D231} = {9AA2C35A-2264-B74D-8556-EB72BD88EE60}
144144
EndGlobalSection
145145
EndGlobal

src/Migrate/Migrate/Az.Migrate.psd1

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 10/16/2025
6+
# Generated on: 10/22/2025
7+
#
78

89
@{
910

@@ -56,10 +57,10 @@ RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '5.3.0'; })
5657
RequiredAssemblies = 'Migrate.Autorest/bin/Az.Migrate.private.dll'
5758

5859
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
59-
# ScriptsToProcess = @()
60+
ScriptsToProcess = @()
6061

6162
# Type files (.ps1xml) to be loaded when importing this module
62-
# TypesToProcess = @()
63+
TypesToProcess = @()
6364

6465
# Format files (.ps1xml) to be loaded when importing this module
6566
FormatsToProcess = 'Migrate.Autorest/Az.Migrate.format.ps1xml'
@@ -122,7 +123,7 @@ PrivateData = @{
122123
PSData = @{
123124

124125
# Tags applied to this module. These help with module discovery in online galleries.
125-
Tags = 'Azure','ResourceManager','ARM','PSModule','Migrate'
126+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Migrate'
126127

127128
# A URL to the license for this module.
128129
LicenseUri = 'https://aka.ms/azps-license'
@@ -151,7 +152,7 @@ PrivateData = @{
151152

152153
} # End of PSData hashtable
153154

154-
} # End of PrivateData hashtable
155+
} # End of PrivateData hashtable
155156

156157
# HelpInfo URI of this module
157158
# HelpInfoURI = ''

src/Migrate/Migrate/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Introduced various new features by upgrading code generator. Please see details [here](https://github.com/Azure/azure-powershell/blob/main/documentation/Autorest-powershell-v4-new-features.md).
2122
* Fixed bugs in `Initialize-AzMigrateLocalReplicationInfrastructure`
2223
- Correct AMH solution tool name of "ServerMigration_DataReplication" is now being passed in to address replication count missing and UX experience load issues in Azure Migrate on Azure portal.
2324
* Address Join-Path compatibility issue in older version of PowerShell environment such as PowerShell 5.1 in the following commands

0 commit comments

Comments
 (0)