Skip to content

Commit

Permalink
Migrate Migrate from generation to main (Azure#26883)
Browse files Browse the repository at this point in the history
* Move Migrate to main

* Update ChangeLog.md

---------

Co-authored-by: Yan Xu <[email protected]>
  • Loading branch information
azure-powershell-bot and YanaXu authored Dec 17, 2024
1 parent 77fea8a commit d71bd67
Show file tree
Hide file tree
Showing 46 changed files with 839 additions and 346 deletions.

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions src/Migrate/Migrate.Autorest/generate-portal-ux.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,16 @@ function New-MetadataForParameterSet()
$cmdletName = Get-MappedCmdletFromFunctionName $ParameterSetInfo.Name
$description = (Get-CmdletAttribute -CmdletInfo $ParameterSetInfo -AttributeName "DescriptionAttribute").Description
[object[]]$example = New-ExampleForParameterSet $ParameterSetInfo
if ($Null -eq $example)
{
$example = @()
}

[string[]]$signature = New-ParameterArrayInParameterSet $ParameterSetInfo
if ($Null -eq $signature)
{
$signature = @()
}

return @{
Path = $httpPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ while(-not $mockingPath) {
}
. ($mockingPath | Select-Object -First 1).FullName

Describe 'Initialize-AzMigrateReplicationInfrastructure' {
It 'Default' -skip {
Describe 'Initialize-AzMigrateReplicationInfrastructure' -Tag 'LiveOnly' {
It 'Default' {
$response = Initialize-AzMigrateReplicationInfrastructure -ProjectName $env.srsinitinfraProjectName -ResourceGroupName $env.srsinitinfraResourceGroupName -Scenario $env.srsinitinfraScenario -TargetRegion $env.srsinitinfraTargetRegion
$response[$response.length -1] | Should -Be $true
}
}
}
12 changes: 6 additions & 6 deletions src/Migrate/Migrate/Az.Migrate.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Microsoft Corporation
#
# Generated on: 31/10/2024
# Generated on: 12/17/2024
#

@{
Expand Down Expand Up @@ -51,16 +51,16 @@ DotNetFrameworkVersion = '4.7.2'
# ProcessorArchitecture = ''

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

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

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

# Type files (.ps1xml) to be loaded when importing this module
# TypesToProcess = @()
TypesToProcess = @()

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

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

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

} # End of PSData hashtable

} # End of PrivateData hashtable
} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''
Expand Down
1 change: 1 addition & 0 deletions src/Migrate/Migrate/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Added SBM support.

## Version 2.5.0
* Validated user login with Microsoft Managed System Identity (MSI) in `Initialize-AzMigrateHCIReplicationInfrastructure`
Expand Down
23 changes: 19 additions & 4 deletions src/Migrate/Migrate/help/Get-AzMigrateDiscoveredServer.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,28 @@ Get All discovered servers in a migrate project.
### List (Default)
```
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-DisplayName <String>]
[-SourceMachineType <String>] [-SubscriptionId <String[]>] [-WhatIf]
[-SourceMachineType <String>] [-SubscriptionId <String[]>] [-ProgressAction <ActionPreference>] [-WhatIf]
[-Confirm] [<CommonParameters>]
```

### ListInSite
```
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-DisplayName <String>]
[-SourceMachineType <String>] [-SubscriptionId <String[]>] -ApplianceName <String>
[-WhatIf] [-Confirm] [<CommonParameters>]
[-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm] [<CommonParameters>]
```

### Get
```
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-SourceMachineType <String>]
[-SubscriptionId <String[]>] -Name <String> [-WhatIf] [-Confirm]
[-SubscriptionId <String[]>] -Name <String> [-ProgressAction <ActionPreference>] [-WhatIf] [-Confirm]
[<CommonParameters>]
```

### GetInSite
```
Get-AzMigrateDiscoveredServer -ProjectName <String> -ResourceGroupName <String> [-SourceMachineType <String>]
[-SubscriptionId <String[]>] -Name <String> -ApplianceName <String>
[-SubscriptionId <String[]>] -Name <String> -ApplianceName <String> [-ProgressAction <ActionPreference>]
[-WhatIf] [-Confirm] [<CommonParameters>]
```

Expand Down Expand Up @@ -223,6 +223,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProjectName
Specifies the migrate project name.
Expand Down
25 changes: 20 additions & 5 deletions src/Migrate/Migrate/help/Get-AzMigrateHCIJob.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ Retrieves the status of an Azure Migrate job.
### ListByName (Default)
```
Get-AzMigrateHCIJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByName
```
Get-AzMigrateHCIJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>] -Name <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetById
```
Get-AzMigrateHCIJob [-SubscriptionId <String>] -ID <String> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByInputObject
```
Get-AzMigrateHCIJob [-SubscriptionId <String>] -InputObject <IMigrateIdentity> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### ListById
```
Get-AzMigrateHCIJob [-SubscriptionId <String>] -ResourceGroupID <String> -ProjectID <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -376,6 +376,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProjectID
Specifies the Azure Migrate Project in which servers are replicating.
Expand Down
23 changes: 19 additions & 4 deletions src/Migrate/Migrate/help/Get-AzMigrateHCIReplicationFabric.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ Gets the details of the fabric.
### List (Default)
```
Get-AzMigrateHCIReplicationFabric [-SubscriptionId <String[]>] [-ContinuationToken <String>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### Get
```
Get-AzMigrateHCIReplicationFabric -Name <String> -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### List1
```
Get-AzMigrateHCIReplicationFabric -ResourceGroupName <String> [-SubscriptionId <String[]>]
[-ContinuationToken <String>] [-DefaultProfile <PSObject>]
[-ContinuationToken <String>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
```

### GetViaIdentity
```
Get-AzMigrateHCIReplicationFabric -InputObject <IMigrateIdentity> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -226,6 +226,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ResourceGroupName
The name of the resource group.
The name is case insensitive.
Expand Down
27 changes: 21 additions & 6 deletions src/Migrate/Migrate/help/Get-AzMigrateHCIServerReplication.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,37 @@ Retrieves the details of the replicating server.
### ListByName (Default)
```
Get-AzMigrateHCIServerReplication -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByMachineName
```
Get-AzMigrateHCIServerReplication -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
-MachineName <String> [-DefaultProfile <PSObject>] [<CommonParameters>]
-MachineName <String> [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByItemID
```
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -TargetObjectID <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetBySDSID
```
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -DiscoveredMachineId <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByInputObject
```
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -InputObject <IMigrateIdentity>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### ListById
```
Get-AzMigrateHCIServerReplication [-SubscriptionId <String>] -ResourceGroupID <String> -ProjectID <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -191,6 +191,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProjectID
Specifies the Azure Migrate Project in which servers are replicating.
Expand Down
25 changes: 20 additions & 5 deletions src/Migrate/Migrate/help/Get-AzMigrateJob.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,31 @@ Retrieves the status of an Azure Migrate job.
### ListByName (Default)
```
Get-AzMigrateJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>]
[-Filter <String>] [-DefaultProfile <PSObject>] [<CommonParameters>]
[-Filter <String>] [-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByName
```
Get-AzMigrateJob -ResourceGroupName <String> -ProjectName <String> [-SubscriptionId <String>] -JobName <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetById
```
Get-AzMigrateJob [-SubscriptionId <String>] -JobID <String> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### GetByInputObject
```
Get-AzMigrateJob [-SubscriptionId <String>] -InputObject <IJob> [-DefaultProfile <PSObject>]
[<CommonParameters>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
```

### ListById
```
Get-AzMigrateJob [-SubscriptionId <String>] -ResourceGroupID <String> -ProjectID <String> [-Filter <String>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
[-DefaultProfile <PSObject>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
```

## DESCRIPTION
Expand Down Expand Up @@ -215,6 +215,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -ProgressAction
{{ Fill ProgressAction Description }}
```yaml
Type: System.Management.Automation.ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -ProjectID
Specifies the Azure Migrate Project in which servers are replicating.
Expand Down
Loading

0 comments on commit d71bd67

Please sign in to comment.