Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Migrate from generation to main #24047

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4,954 changes: 4,954 additions & 0 deletions src/Migrate/Migrate.Autorest/Az.Migrate.format.ps1xml

Large diffs are not rendered by default.

172 changes: 21 additions & 151 deletions src/Migrate/Migrate.Autorest/Az.Migrate.psd1
Original file line number Diff line number Diff line change
@@ -1,154 +1,24 @@
#
# Module manifest for module 'Az.Migrate'
#
# Generated by: Microsoft Corporation
#
# Generated on: 06/29/2023
#

@{

# Script module or binary module file associated with this manifest.
RootModule = './Az.Migrate.psm1'

# Version number of this module.
ModuleVersion = '2.2.0'

# Supported PSEditions
CompatiblePSEditions = 'Core', 'Desktop'

# ID used to uniquely identify this module
GUID = 'c638312b-9fd1-4611-a5cc-11a8caa5b698'

# Author of this module
Author = 'Microsoft Corporation'

# Company or vendor of this module
CompanyName = 'Microsoft Corporation'

# Copyright statement for this module
Copyright = 'Microsoft Corporation. All rights reserved.'

# Description of the functionality provided by this module
Description = 'Microsoft Azure PowerShell: Migrate cmdlets'

# Minimum version of the PowerShell engine required by this module
PowerShellVersion = '5.1'

# Name of the PowerShell host required by this module
# PowerShellHostName = ''

# Minimum version of the PowerShell host required by this module
# PowerShellHostVersion = ''

# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
DotNetFrameworkVersion = '4.7.2'

# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
# ClrVersion = ''

# Processor architecture (None, X86, Amd64) required by this module
# ProcessorArchitecture = ''

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

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

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

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

# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = './Az.Migrate.format.ps1xml'

# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
# NestedModules = @()

# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
FunctionsToExport = 'Get-AzMigrateDiscoveredServer', 'Get-AzMigrateJob',
'Get-AzMigrateProject', 'Get-AzMigrateReplicationFabric',
'Get-AzMigrateReplicationPolicy',
'Get-AzMigrateReplicationProtectionContainer',
'Get-AzMigrateReplicationProtectionContainerMapping',
'Get-AzMigrateReplicationRecoveryServicesProvider',
'Get-AzMigrateRunAsAccount', 'Get-AzMigrateServerReplication',
'Get-AzMigrateSite', 'Get-AzMigrateSolution',
'Initialize-AzMigrateReplicationInfrastructure',
'New-AzMigrateDiskMapping', 'New-AzMigrateNicMapping',
'New-AzMigrateProject', 'New-AzMigrateReplicationPolicy',
'New-AzMigrateReplicationProtectionContainerMapping',
'New-AzMigrateServerReplication', 'New-AzMigrateTestNicMapping',
'Register-AzMigrateProjectTool', 'Remove-AzMigrateProject',
'Remove-AzMigrateServerReplication',
'Restart-AzMigrateServerReplication',
'Resume-AzMigrateServerReplication', 'Set-AzMigrateDiskMapping',
'Set-AzMigrateServerReplication', 'Start-AzMigrateServerMigration',
'Start-AzMigrateTestMigration',
'Start-AzMigrateTestMigrationCleanup',
'Suspend-AzMigrateServerReplication'

# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
CmdletsToExport = @()

# Variables to export from this module
# VariablesToExport = @()

# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
AliasesToExport = '*'

# DSC resources to export from this module
# DscResourcesToExport = @()

# List of all modules packaged with this module
# ModuleList = @()

# List of all files packaged with this module
# FileList = @()

# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
PrivateData = @{

GUID = 'c638312b-9fd1-4611-a5cc-11a8caa5b698'
RootModule = './Az.Migrate.psm1'
ModuleVersion = '1.0.1'
CompatiblePSEditions = 'Core', 'Desktop'
Author = 'Microsoft Corporation'
CompanyName = 'Microsoft Corporation'
Copyright = 'Microsoft Corporation. All rights reserved.'
Description = 'Microsoft Azure PowerShell: Migrate cmdlets'
PowerShellVersion = '5.1'
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Migrate.private.dll'
FormatsToProcess = './Az.Migrate.format.ps1xml'
FunctionsToExport = 'Get-AzMigrateDiscoveredServer', 'Get-AzMigrateHCIJob', 'Get-AzMigrateHCIReplicationFabric', 'Get-AzMigrateHCIServerReplication', 'Get-AzMigrateJob', 'Get-AzMigrateProject', 'Get-AzMigrateReplicationFabric', 'Get-AzMigrateReplicationPolicy', 'Get-AzMigrateReplicationProtectionContainer', 'Get-AzMigrateReplicationProtectionContainerMapping', 'Get-AzMigrateReplicationRecoveryServicesProvider', 'Get-AzMigrateRunAsAccount', 'Get-AzMigrateServerReplication', 'Get-AzMigrateSite', 'Get-AzMigrateSolution', 'Initialize-AzMigrateHCIReplicationInfrastructure', 'Initialize-AzMigrateReplicationInfrastructure', 'New-AzMigrateDiskMapping', 'New-AzMigrateHCIDiskMappingObject', 'New-AzMigrateHCINicMappingObject', 'New-AzMigrateHCIServerReplication', 'New-AzMigrateNicMapping', 'New-AzMigrateProject', 'New-AzMigrateReplicationPolicy', 'New-AzMigrateReplicationProtectionContainerMapping', 'New-AzMigrateServerReplication', 'New-AzMigrateTestNicMapping', 'Register-AzMigrateProjectTool', 'Remove-AzMigrateHCIServerReplication', 'Remove-AzMigrateProject', 'Remove-AzMigrateServerReplication', 'Restart-AzMigrateServerReplication', 'Resume-AzMigrateServerReplication', 'Set-AzMigrateDiskMapping', 'Set-AzMigrateHCIServerReplication', 'Set-AzMigrateServerReplication', 'Start-AzMigrateHCIServerMigration', 'Start-AzMigrateServerMigration', 'Start-AzMigrateTestMigration', 'Start-AzMigrateTestMigrationCleanup', 'Suspend-AzMigrateServerReplication', '*'
AliasesToExport = '*'
PrivateData = @{
PSData = @{

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

# A URL to the license for this module.
LicenseUri = 'https://aka.ms/azps-license'

# A URL to the main website for this project.
ProjectUri = 'https://github.com/Azure/azure-powershell'

# A URL to an icon representing this module.
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Fixed key vault SPN Id coming as null for some users
* Added support for Windows Server OS upgrade while migrating the server to Azure using Azure Migrate
* Updated OsUpgradeVersion parameter for Azure Migrate'

# Prerelease string of this module
# Prerelease = ''

# Flag to indicate whether the module requires explicit user acceptance for install/update/save
# RequireLicenseAcceptance = $false

# External dependent modules of this module
# ExternalModuleDependencies = @()

} # End of PSData hashtable

} # End of PrivateData hashtable

# HelpInfo URI of this module
# HelpInfoURI = ''

# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
# DefaultCommandPrefix = ''

Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Migrate'
LicenseUri = 'https://aka.ms/azps-license'
ProjectUri = 'https://github.com/Azure/azure-powershell'
ReleaseNotes = ''
}
}
}

123 changes: 113 additions & 10 deletions src/Migrate/Migrate.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,22 @@ In this directory, run AutoRest:

``` yaml
skip-semantics-validation: true
commit: 0dd49a444195fef7f3555cad038cb7665cbd928c
require:
- $(this-folder)/../readme.azure.noprofile.md
- $(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/2023-01-01/service.json
- $(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/2023-01-01/service.json
- $(repo)/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json

module-version: 1.0.1
title: Migrate
subject-prefix: 'Migrate'

use-extension:
"@autorest/powershell": "3.x"

directive:
# Correct some swagger operationIds
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
Expand Down Expand Up @@ -101,6 +106,22 @@ directive:
- ProtectionContainerMappingProviderSpecificDetails
- MigrateProjectProperties
- FabricProperties
- FabricModelProperties
- FabricModelCustomProperties
- AzStackHCIFabricModelCustomProperties
- HyperVMigrateFabricModelCustomProperties
- VMwareMigrateFabricModelCustomProperties
- PolicyModelProperties
- ReplicationExtensionModelProperties
- ProtectedItemModelProperties
- ProtectedItemModelCustomProperties
- HyperVToAzStackHCIProtectedItemModelCustomProperties
- VMwareToAzStackHCIProtectedItemModelCustomProperties
- PlannedFailoverModelProperties
- WorkflowModelProperties
- WorkflowModelCustomProperties
- TaskModel
- TaskModelCustomProperties
# Remove variants not in scope
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
Expand Down Expand Up @@ -220,10 +241,6 @@ directive:
verb: New$|Remove$|Update$
subject: ^Site
remove: true
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
where:
subject: ^HyperV
remove: true
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
where:
subject: ^Job|^VMwareOperationsStatus
Expand All @@ -240,7 +257,12 @@ directive:
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
where:
verb: Set$|Remove$|Update$
subject: ^Solution|ProjectSummary$
subject: ProjectSummary$
remove: true
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
where:
verb: Remove$|Update$
subject: ^Solution
remove: true
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
where:
Expand All @@ -257,7 +279,7 @@ directive:
remove: true
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
subject: ^Commit|^Planned|^Renew|^Reprotect|^Unplanned|VaultHealth$|ComputeSize$|FabricConsistency$
subject: ^Commit|^Renew|^Reprotect|^Unplanned|VaultHealth$|ComputeSize$|FabricConsistency$
remove: true
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
Expand Down Expand Up @@ -294,7 +316,74 @@ directive:
verb: New
subject: ^ReplicationVaultSetting|^SupportedOperatingSystem|^ReplicationProtectionIntent
remove: true
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
where:
verb: Get
subject: ^HyperV(Cluster|Host|Job|OperationsStatus)$
remove: true
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
where:
verb: Set
subject: ^HyperV(Cluster|Host)$
remove: true
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
where:
verb: New|Remove|Update
subject: ^HyperV
remove: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Test|Invoke
subject: NameAvailability$|DeploymentPreflight
remove: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Get|New
subject: ^EmailConfiguration
remove: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^(Dra|ProtectedItem|Vault|Workflow)OperationStatus$
remove: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^FabricOperationsStatus$
remove: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: New
subject: ^(Dra|Vault)
remove: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Update
subject: ^Vault
remove: true
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
verb: Invoke
subject: ^PlannedReplication
remove: true
# Rename cmdlets for AzStackHCI
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Get
subject: ^Fabric$
set:
subject: HCIReplicationFabric
# Hide cmldets used by custom
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
where:
verb: Set$
subject: ^Solution
hide: true
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
verb: Get$
subject: ToAzureMigrate$
hide: true
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
verb: Get$
Expand Down Expand Up @@ -340,6 +429,15 @@ directive:
verb: Resume$
subject: ^ReplicationMigrationItemReplication
hide: true
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
where:
subject: ^Planned
hide: true
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
where:
verb: Get
subject: ^HyperV(Site|RunAsAccount)$
hide: true
# Hide cmdlets not to be visible to user.
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
where:
Expand Down Expand Up @@ -369,6 +467,11 @@ directive:
verb: New$
variant: ^CreateViaIdentity
hide: true
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
where:
verb: Get$|Invoke$|New$|Remove$|Test$|Update$
subject: ^Dra|^Fabric|^Policy|^EmailConfiguration|^ProtectedItem|^ReplicationExtension|^Vault|^Workflow
hide: true
- where:
verb: New$|Set$|Update$
subject: Site$|VCenter$
Expand Down
Loading