Skip to content

Commit 228710a

Browse files
Migrate Migrate from generation to main (#24047)
* Move Migrate to main * Update Changelog.md --------- Co-authored-by: Yunchi Wang <[email protected]>
1 parent 7c22677 commit 228710a

File tree

841 files changed

+165797
-13324
lines changed

Some content is hidden

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

841 files changed

+165797
-13324
lines changed

src/Migrate/Migrate.Autorest/Az.Migrate.format.ps1xml

Lines changed: 4954 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 21 additions & 151 deletions
Original file line numberDiff line numberDiff line change
@@ -1,154 +1,24 @@
1-
#
2-
# Module manifest for module 'Az.Migrate'
3-
#
4-
# Generated by: Microsoft Corporation
5-
#
6-
# Generated on: 06/29/2023
7-
#
8-
91
@{
10-
11-
# Script module or binary module file associated with this manifest.
12-
RootModule = './Az.Migrate.psm1'
13-
14-
# Version number of this module.
15-
ModuleVersion = '2.2.0'
16-
17-
# Supported PSEditions
18-
CompatiblePSEditions = 'Core', 'Desktop'
19-
20-
# ID used to uniquely identify this module
21-
GUID = 'c638312b-9fd1-4611-a5cc-11a8caa5b698'
22-
23-
# Author of this module
24-
Author = 'Microsoft Corporation'
25-
26-
# Company or vendor of this module
27-
CompanyName = 'Microsoft Corporation'
28-
29-
# Copyright statement for this module
30-
Copyright = 'Microsoft Corporation. All rights reserved.'
31-
32-
# Description of the functionality provided by this module
33-
Description = 'Microsoft Azure PowerShell: Migrate cmdlets'
34-
35-
# Minimum version of the PowerShell engine required by this module
36-
PowerShellVersion = '5.1'
37-
38-
# Name of the PowerShell host required by this module
39-
# PowerShellHostName = ''
40-
41-
# Minimum version of the PowerShell host required by this module
42-
# PowerShellHostVersion = ''
43-
44-
# Minimum version of Microsoft .NET Framework required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
45-
DotNetFrameworkVersion = '4.7.2'
46-
47-
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
48-
# ClrVersion = ''
49-
50-
# Processor architecture (None, X86, Amd64) required by this module
51-
# ProcessorArchitecture = ''
52-
53-
# Modules that must be imported into the global environment prior to importing this module
54-
RequiredModules = @(@{ModuleName = 'Az.Accounts'; ModuleVersion = '2.12.4'; })
55-
56-
# Assemblies that must be loaded prior to importing this module
57-
RequiredAssemblies = './bin/Az.Migrate.private.dll'
58-
59-
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
60-
# ScriptsToProcess = @()
61-
62-
# Type files (.ps1xml) to be loaded when importing this module
63-
# TypesToProcess = @()
64-
65-
# Format files (.ps1xml) to be loaded when importing this module
66-
FormatsToProcess = './Az.Migrate.format.ps1xml'
67-
68-
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
69-
# NestedModules = @()
70-
71-
# 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.
72-
FunctionsToExport = 'Get-AzMigrateDiscoveredServer', 'Get-AzMigrateJob',
73-
'Get-AzMigrateProject', 'Get-AzMigrateReplicationFabric',
74-
'Get-AzMigrateReplicationPolicy',
75-
'Get-AzMigrateReplicationProtectionContainer',
76-
'Get-AzMigrateReplicationProtectionContainerMapping',
77-
'Get-AzMigrateReplicationRecoveryServicesProvider',
78-
'Get-AzMigrateRunAsAccount', 'Get-AzMigrateServerReplication',
79-
'Get-AzMigrateSite', 'Get-AzMigrateSolution',
80-
'Initialize-AzMigrateReplicationInfrastructure',
81-
'New-AzMigrateDiskMapping', 'New-AzMigrateNicMapping',
82-
'New-AzMigrateProject', 'New-AzMigrateReplicationPolicy',
83-
'New-AzMigrateReplicationProtectionContainerMapping',
84-
'New-AzMigrateServerReplication', 'New-AzMigrateTestNicMapping',
85-
'Register-AzMigrateProjectTool', 'Remove-AzMigrateProject',
86-
'Remove-AzMigrateServerReplication',
87-
'Restart-AzMigrateServerReplication',
88-
'Resume-AzMigrateServerReplication', 'Set-AzMigrateDiskMapping',
89-
'Set-AzMigrateServerReplication', 'Start-AzMigrateServerMigration',
90-
'Start-AzMigrateTestMigration',
91-
'Start-AzMigrateTestMigrationCleanup',
92-
'Suspend-AzMigrateServerReplication'
93-
94-
# 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.
95-
CmdletsToExport = @()
96-
97-
# Variables to export from this module
98-
# VariablesToExport = @()
99-
100-
# 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.
101-
AliasesToExport = '*'
102-
103-
# DSC resources to export from this module
104-
# DscResourcesToExport = @()
105-
106-
# List of all modules packaged with this module
107-
# ModuleList = @()
108-
109-
# List of all files packaged with this module
110-
# FileList = @()
111-
112-
# 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.
113-
PrivateData = @{
114-
2+
GUID = 'c638312b-9fd1-4611-a5cc-11a8caa5b698'
3+
RootModule = './Az.Migrate.psm1'
4+
ModuleVersion = '1.0.1'
5+
CompatiblePSEditions = 'Core', 'Desktop'
6+
Author = 'Microsoft Corporation'
7+
CompanyName = 'Microsoft Corporation'
8+
Copyright = 'Microsoft Corporation. All rights reserved.'
9+
Description = 'Microsoft Azure PowerShell: Migrate cmdlets'
10+
PowerShellVersion = '5.1'
11+
DotNetFrameworkVersion = '4.7.2'
12+
RequiredAssemblies = './bin/Az.Migrate.private.dll'
13+
FormatsToProcess = './Az.Migrate.format.ps1xml'
14+
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', '*'
15+
AliasesToExport = '*'
16+
PrivateData = @{
11517
PSData = @{
116-
117-
# Tags applied to this module. These help with module discovery in online galleries.
118-
Tags = 'Azure','ResourceManager','ARM','PSModule','Migrate'
119-
120-
# A URL to the license for this module.
121-
LicenseUri = 'https://aka.ms/azps-license'
122-
123-
# A URL to the main website for this project.
124-
ProjectUri = 'https://github.com/Azure/azure-powershell'
125-
126-
# A URL to an icon representing this module.
127-
# IconUri = ''
128-
129-
# ReleaseNotes of this module
130-
ReleaseNotes = '* Fixed key vault SPN Id coming as null for some users
131-
* Added support for Windows Server OS upgrade while migrating the server to Azure using Azure Migrate
132-
* Updated OsUpgradeVersion parameter for Azure Migrate'
133-
134-
# Prerelease string of this module
135-
# Prerelease = ''
136-
137-
# Flag to indicate whether the module requires explicit user acceptance for install/update/save
138-
# RequireLicenseAcceptance = $false
139-
140-
# External dependent modules of this module
141-
# ExternalModuleDependencies = @()
142-
143-
} # End of PSData hashtable
144-
145-
} # End of PrivateData hashtable
146-
147-
# HelpInfo URI of this module
148-
# HelpInfoURI = ''
149-
150-
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
151-
# DefaultCommandPrefix = ''
152-
18+
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Migrate'
19+
LicenseUri = 'https://aka.ms/azps-license'
20+
ProjectUri = 'https://github.com/Azure/azure-powershell'
21+
ReleaseNotes = ''
22+
}
23+
}
15324
}
154-

src/Migrate/Migrate.Autorest/README.md

Lines changed: 113 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,22 @@ In this directory, run AutoRest:
4848
4949
``` yaml
5050
skip-semantics-validation: true
51+
commit: 0dd49a444195fef7f3555cad038cb7665cbd928c
5152
require:
52-
- $(this-folder)/../readme.azure.noprofile.md
53+
- $(this-folder)/../../readme.azure.noprofile.md
5354
input-file:
54-
- $(repo)/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json
55-
- $(repo)/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
56-
- $(repo)/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/service.json
55+
- $(repo)/specification/migrate/resource-manager/Microsoft.OffAzure/stable/2020-01-01/migrate.json
56+
- $(repo)/specification/migrateprojects/resource-manager/Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
57+
- $(repo)/specification/recoveryservicessiterecovery/resource-manager/Microsoft.RecoveryServices/stable/2023-01-01/service.json
58+
- $(repo)/specification/recoveryservicesdatareplication/resource-manager/Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
5759

5860
module-version: 1.0.1
5961
title: Migrate
6062
subject-prefix: 'Migrate'
6163

64+
use-extension:
65+
"@autorest/powershell": "3.x"
66+
6267
directive:
6368
# Correct some swagger operationIds
6469
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
@@ -101,6 +106,22 @@ directive:
101106
- ProtectionContainerMappingProviderSpecificDetails
102107
- MigrateProjectProperties
103108
- FabricProperties
109+
- FabricModelProperties
110+
- FabricModelCustomProperties
111+
- AzStackHCIFabricModelCustomProperties
112+
- HyperVMigrateFabricModelCustomProperties
113+
- VMwareMigrateFabricModelCustomProperties
114+
- PolicyModelProperties
115+
- ReplicationExtensionModelProperties
116+
- ProtectedItemModelProperties
117+
- ProtectedItemModelCustomProperties
118+
- HyperVToAzStackHCIProtectedItemModelCustomProperties
119+
- VMwareToAzStackHCIProtectedItemModelCustomProperties
120+
- PlannedFailoverModelProperties
121+
- WorkflowModelProperties
122+
- WorkflowModelCustomProperties
123+
- TaskModel
124+
- TaskModelCustomProperties
104125
# Remove variants not in scope
105126
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
106127
where:
@@ -220,10 +241,6 @@ directive:
220241
verb: New$|Remove$|Update$
221242
subject: ^Site
222243
remove: true
223-
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
224-
where:
225-
subject: ^HyperV
226-
remove: true
227244
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
228245
where:
229246
subject: ^Job|^VMwareOperationsStatus
@@ -240,7 +257,12 @@ directive:
240257
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
241258
where:
242259
verb: Set$|Remove$|Update$
243-
subject: ^Solution|ProjectSummary$
260+
subject: ProjectSummary$
261+
remove: true
262+
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
263+
where:
264+
verb: Remove$|Update$
265+
subject: ^Solution
244266
remove: true
245267
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
246268
where:
@@ -257,7 +279,7 @@ directive:
257279
remove: true
258280
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
259281
where:
260-
subject: ^Commit|^Planned|^Renew|^Reprotect|^Unplanned|VaultHealth$|ComputeSize$|FabricConsistency$
282+
subject: ^Commit|^Renew|^Reprotect|^Unplanned|VaultHealth$|ComputeSize$|FabricConsistency$
261283
remove: true
262284
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
263285
where:
@@ -294,7 +316,74 @@ directive:
294316
verb: New
295317
subject: ^ReplicationVaultSetting|^SupportedOperatingSystem|^ReplicationProtectionIntent
296318
remove: true
319+
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
320+
where:
321+
verb: Get
322+
subject: ^HyperV(Cluster|Host|Job|OperationsStatus)$
323+
remove: true
324+
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
325+
where:
326+
verb: Set
327+
subject: ^HyperV(Cluster|Host)$
328+
remove: true
329+
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
330+
where:
331+
verb: New|Remove|Update
332+
subject: ^HyperV
333+
remove: true
334+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
335+
where:
336+
verb: Test|Invoke
337+
subject: NameAvailability$|DeploymentPreflight
338+
remove: true
339+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
340+
where:
341+
verb: Get|New
342+
subject: ^EmailConfiguration
343+
remove: true
344+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
345+
where:
346+
verb: Get
347+
subject: ^(Dra|ProtectedItem|Vault|Workflow)OperationStatus$
348+
remove: true
349+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
350+
where:
351+
verb: Get
352+
subject: ^FabricOperationsStatus$
353+
remove: true
354+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
355+
where:
356+
verb: New
357+
subject: ^(Dra|Vault)
358+
remove: true
359+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
360+
where:
361+
verb: Update
362+
subject: ^Vault
363+
remove: true
364+
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
365+
where:
366+
verb: Invoke
367+
subject: ^PlannedReplication
368+
remove: true
369+
# Rename cmdlets for AzStackHCI
370+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
371+
where:
372+
verb: Get
373+
subject: ^Fabric$
374+
set:
375+
subject: HCIReplicationFabric
297376
# Hide cmldets used by custom
377+
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
378+
where:
379+
verb: Set$
380+
subject: ^Solution
381+
hide: true
382+
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
383+
where:
384+
verb: Get$
385+
subject: ToAzureMigrate$
386+
hide: true
298387
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
299388
where:
300389
verb: Get$
@@ -340,6 +429,15 @@ directive:
340429
verb: Resume$
341430
subject: ^ReplicationMigrationItemReplication
342431
hide: true
432+
- from: Microsoft.RecoveryServices/stable/2023-01-01/service.json
433+
where:
434+
subject: ^Planned
435+
hide: true
436+
- from: Microsoft.OffAzure/stable/2020-01-01/migrate.json
437+
where:
438+
verb: Get
439+
subject: ^HyperV(Site|RunAsAccount)$
440+
hide: true
343441
# Hide cmdlets not to be visible to user.
344442
- from: Microsoft.Migrate/preview/2018-09-01-preview/migrate.json
345443
where:
@@ -369,6 +467,11 @@ directive:
369467
verb: New$
370468
variant: ^CreateViaIdentity
371469
hide: true
470+
- from: Microsoft.DataReplication/preview/2021-02-16-preview/recoveryservicesdatareplication.json
471+
where:
472+
verb: Get$|Invoke$|New$|Remove$|Test$|Update$
473+
subject: ^Dra|^Fabric|^Policy|^EmailConfiguration|^ProtectedItem|^ReplicationExtension|^Vault|^Workflow
474+
hide: true
372475
- where:
373476
verb: New$|Set$|Update$
374477
subject: Site$|VCenter$

0 commit comments

Comments
 (0)