Skip to content

Commit d71bd67

Browse files
Migrate Migrate from generation to main (#26883)
* Move Migrate to main * Update ChangeLog.md --------- Co-authored-by: Yan Xu <[email protected]>
1 parent 77fea8a commit d71bd67

File tree

46 files changed

+839
-346
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+839
-346
lines changed

src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateReplicationInfrastructure.ps1

Lines changed: 118 additions & 250 deletions
Large diffs are not rendered by default.

src/Migrate/Migrate.Autorest/generate-portal-ux.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,16 @@ function New-MetadataForParameterSet()
248248
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
249249
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
250250
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
251+
if ($Null -eq $example)
252+
{
253+
$example = @()
254+
}
255+
251256
[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
257+
if ($Null -eq $signature)
258+
{
259+
$signature = @()
260+
}
252261

253262
return @{
254263
Path = $httpPath

src/Migrate/Migrate.Autorest/test/Initialize-AzMigrateReplicationInfrastructure.Tests.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ while(-not $mockingPath) {
1111
}
1212
. ($mockingPath | Select-Object -First 1).FullName
1313

14-
Describe 'Initialize-AzMigrateReplicationInfrastructure' {
15-
It 'Default' -skip {
14+
Describe 'Initialize-AzMigrateReplicationInfrastructure' -Tag 'LiveOnly' {
15+
It 'Default' {
1616
$response = Initialize-AzMigrateReplicationInfrastructure -ProjectName $env.srsinitinfraProjectName -ResourceGroupName $env.srsinitinfraResourceGroupName -Scenario $env.srsinitinfraScenario -TargetRegion $env.srsinitinfraTargetRegion
1717
$response[$response.length -1] | Should -Be $true
1818
}
19-
}
19+
}

src/Migrate/Migrate/Az.Migrate.psd1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 31/10/2024
6+
# Generated on: 12/17/2024
77
#
88

99
@{
@@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2'
5151
# ProcessorArchitecture = ''
5252

5353
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '3.0.5'; })
54+
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '4.0.0'; })
5555

5656
# Assemblies that must be loaded prior to importing this module
5757
RequiredAssemblies = 'Migrate.Autorest/bin/Az.Migrate.private.dll'
5858

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

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

6565
# Format files (.ps1xml) to be loaded when importing this module
6666
FormatsToProcess = 'Migrate.Autorest/Az.Migrate.format.ps1xml'
@@ -123,7 +123,7 @@ PrivateData = @{
123123
PSData = @{
124124

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

128128
# A URL to the license for this module.
129129
LicenseUri = 'https://aka.ms/azps-license'
@@ -150,7 +150,7 @@ PrivateData = @{
150150

151151
} # End of PSData hashtable
152152

153-
} # End of PrivateData hashtable
153+
} # End of PrivateData hashtable
154154

155155
# HelpInfo URI of this module
156156
# 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+
* Added SBM support.
2122

2223
## Version 2.5.0
2324
* Validated user login with Microsoft Managed System Identity (MSI) in `Initialize-AzMigrateHCIReplicationInfrastructure`

src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,28 @@ Get All discovered servers in a migrate project.
1515
### List (Default)
1616
```
1717
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-DisplayName <String>]
18-
[-SourceMachineType <String>] [-SubscriptionId <String[]>] [-WhatIf]
18+
[-SourceMachineType <String>] [-SubscriptionId <String[]>] [-ProgressAction <ActionPreference>] [-WhatIf]
1919
[-Confirm] [<CommonParameters>]
2020
```
2121

2222
### ListInSite
2323
```
2424
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-DisplayName <String>]
2525
[-SourceMachineType <String>] [-SubscriptionId <String[]>] -ApplianceName <String>
26-
[-WhatIf] [-Confirm] [<CommonParameters>]
26+
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
2727
```
2828

2929
### Get
3030
```
3131
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-SourceMachineType <String>]
32-
[-SubscriptionId <String[]>] -Name <String> [-WhatIf] [-Confirm]
32+
[-SubscriptionId <String[]>] -Name <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
3333
[<CommonParameters>]
3434
```
3535

3636
### GetInSite
3737
```
3838
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-SourceMachineType <String>]
39-
[-SubscriptionId <String[]>] -Name <String> -ApplianceName <String>
39+
[-SubscriptionId <String[]>] -Name <String> -ApplianceName <String> [-ProgressAction <ActionPreference>]
4040
[-WhatIf] [-Confirm] [<CommonParameters>]
4141
```
4242

@@ -223,6 +223,21 @@ Accept pipeline input: False
223223
Accept wildcard characters: False
224224
```
225225
226+
### -ProgressAction
227+
{{ Fill ProgressAction Description }}
228+
229+
```yaml
230+
Type: System.Management.Automation.ActionPreference
231+
Parameter Sets: (All)
232+
Aliases: proga
233+
234+
Required: False
235+
Position: Named
236+
Default value: None
237+
Accept pipeline input: False
238+
Accept wildcard characters: False
239+
```
240+
226241
### -ProjectName
227242
Specifies the migrate project name.
228243

src/Migrate/Migrate/help/Get-AzMigrateHCIJob.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ Retrieves the status of an Azure Migrate job.
1515
### ListByName (Default)
1616
```
1717
Get-AzMigrateHCIJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
18-
[-DefaultProfile <PSObject>] [<CommonParameters>]
18+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### GetByName
2222
```
2323
Get-AzMigrateHCIJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>] -Name <String>
24-
[-DefaultProfile <PSObject>] [<CommonParameters>]
24+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2525
```
2626

2727
### GetById
2828
```
2929
Get-AzMigrateHCIJob [-SubscriptionId <String>] -ID <String> [-DefaultProfile <PSObject>]
30-
[<CommonParameters>]
30+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3131
```
3232

3333
### GetByInputObject
3434
```
3535
Get-AzMigrateHCIJob [-SubscriptionId <String>] -InputObject <IMigrateIdentity> [-DefaultProfile <PSObject>]
36-
[<CommonParameters>]
36+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3737
```
3838

3939
### ListById
4040
```
4141
Get-AzMigrateHCIJob [-SubscriptionId <String>] -ResourceGroupID <String> -ProjectID <String>
42-
[-DefaultProfile <PSObject>] [<CommonParameters>]
42+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
4343
```
4444

4545
## DESCRIPTION
@@ -376,6 +376,21 @@ Accept pipeline input: False
376376
Accept wildcard characters: False
377377
```
378378
379+
### -ProgressAction
380+
{{ Fill ProgressAction Description }}
381+
382+
```yaml
383+
Type: System.Management.Automation.ActionPreference
384+
Parameter Sets: (All)
385+
Aliases: proga
386+
387+
Required: False
388+
Position: Named
389+
Default value: None
390+
Accept pipeline input: False
391+
Accept wildcard characters: False
392+
```
393+
379394
### -ProjectID
380395
Specifies the Azure Migrate Project in which servers are replicating.
381396

src/Migrate/Migrate/help/Get-AzMigrateHCIReplicationFabric.md

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,26 +15,26 @@ Gets the details of the fabric.
1515
### List (Default)
1616
```
1717
Get-AzMigrateHCIReplicationFabric [-SubscriptionId <String[]>] [-ContinuationToken <String>]
18-
[-DefaultProfile <PSObject>] [<CommonParameters>]
18+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### Get
2222
```
2323
Get-AzMigrateHCIReplicationFabric -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
24-
[-DefaultProfile <PSObject>] [<CommonParameters>]
24+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2525
```
2626

2727
### List1
2828
```
2929
Get-AzMigrateHCIReplicationFabric -ResourceGroupName <String> [-SubscriptionId <String[]>]
30-
[-ContinuationToken <String>] [-DefaultProfile <PSObject>]
30+
[-ContinuationToken <String>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>]
3131
[<CommonParameters>]
3232
```
3333

3434
### GetViaIdentity
3535
```
3636
Get-AzMigrateHCIReplicationFabric -InputObject <IMigrateIdentity> [-DefaultProfile <PSObject>]
37-
[<CommonParameters>]
37+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3838
```
3939

4040
## DESCRIPTION
@@ -226,6 +226,21 @@ Accept pipeline input: False
226226
Accept wildcard characters: False
227227
```
228228
229+
### -ProgressAction
230+
{{ Fill ProgressAction Description }}
231+
232+
```yaml
233+
Type: System.Management.Automation.ActionPreference
234+
Parameter Sets: (All)
235+
Aliases: proga
236+
237+
Required: False
238+
Position: Named
239+
Default value: None
240+
Accept pipeline input: False
241+
Accept wildcard characters: False
242+
```
243+
229244
### -ResourceGroupName
230245
The name of the resource group.
231246
The name is case insensitive.

src/Migrate/Migrate/help/Get-AzMigrateHCIServerReplication.md

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,37 +15,37 @@ Retrieves the details of the replicating server.
1515
### ListByName (Default)
1616
```
1717
Get-AzMigrateHCIServerReplication -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
18-
[-DefaultProfile <PSObject>] [<CommonParameters>]
18+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### GetByMachineName
2222
```
2323
Get-AzMigrateHCIServerReplication -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
24-
-MachineName <String> [-DefaultProfile <PSObject>] [<CommonParameters>]
24+
-MachineName <String> [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2525
```
2626

2727
### GetByItemID
2828
```
2929
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -TargetObjectID <String>
30-
[-DefaultProfile <PSObject>] [<CommonParameters>]
30+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
3131
```
3232

3333
### GetBySDSID
3434
```
3535
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -DiscoveredMachineId <String>
36-
[-DefaultProfile <PSObject>] [<CommonParameters>]
36+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
3737
```
3838

3939
### GetByInputObject
4040
```
4141
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -InputObject <IMigrateIdentity>
42-
[-DefaultProfile <PSObject>] [<CommonParameters>]
42+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
4343
```
4444

4545
### ListById
4646
```
4747
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -ResourceGroupID <String> -ProjectID <String>
48-
[-DefaultProfile <PSObject>] [<CommonParameters>]
48+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
4949
```
5050

5151
## DESCRIPTION
@@ -191,6 +191,21 @@ Accept pipeline input: False
191191
Accept wildcard characters: False
192192
```
193193
194+
### -ProgressAction
195+
{{ Fill ProgressAction Description }}
196+
197+
```yaml
198+
Type: System.Management.Automation.ActionPreference
199+
Parameter Sets: (All)
200+
Aliases: proga
201+
202+
Required: False
203+
Position: Named
204+
Default value: None
205+
Accept pipeline input: False
206+
Accept wildcard characters: False
207+
```
208+
194209
### -ProjectID
195210
Specifies the Azure Migrate Project in which servers are replicating.
196211

src/Migrate/Migrate/help/Get-AzMigrateJob.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,31 @@ Retrieves the status of an Azure Migrate job.
1515
### ListByName (Default)
1616
```
1717
Get-AzMigrateJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
18-
[-Filter <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
18+
[-Filter <String>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
1919
```
2020

2121
### GetByName
2222
```
2323
Get-AzMigrateJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>] -JobName <String>
24-
[-DefaultProfile <PSObject>] [<CommonParameters>]
24+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
2525
```
2626

2727
### GetById
2828
```
2929
Get-AzMigrateJob [-SubscriptionId <String>] -JobID <String> [-DefaultProfile <PSObject>]
30-
[<CommonParameters>]
30+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3131
```
3232

3333
### GetByInputObject
3434
```
3535
Get-AzMigrateJob [-SubscriptionId <String>] -InputObject <IJob> [-DefaultProfile <PSObject>]
36-
[<CommonParameters>]
36+
[-ProgressAction <ActionPreference>] [<CommonParameters>]
3737
```
3838

3939
### ListById
4040
```
4141
Get-AzMigrateJob [-SubscriptionId <String>] -ResourceGroupID <String> -ProjectID <String> [-Filter <String>]
42-
[-DefaultProfile <PSObject>] [<CommonParameters>]
42+
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
4343
```
4444

4545
## DESCRIPTION
@@ -215,6 +215,21 @@ Accept pipeline input: False
215215
Accept wildcard characters: False
216216
```
217217
218+
### -ProgressAction
219+
{{ Fill ProgressAction Description }}
220+
221+
```yaml
222+
Type: System.Management.Automation.ActionPreference
223+
Parameter Sets: (All)
224+
Aliases: proga
225+
226+
Required: False
227+
Position: Named
228+
Default value: None
229+
Accept pipeline input: False
230+
Accept wildcard characters: False
231+
```
232+
218233
### -ProjectID
219234
Specifies the Azure Migrate Project in which servers are replicating.
220235

0 commit comments

Comments
 (0)