Skip to content

Commit 058a3c6

Browse files
isra-felazurepowershell
andauthored
Generate Az.Migrate on main branch (#15540)
* Move Migrate to main * changelog * suppress breaking change issues Co-authored-by: azurepowershell <[email protected]>
1 parent 646c53f commit 058a3c6

File tree

2,672 files changed

+180764
-58473
lines changed

Some content is hidden

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

2,672 files changed

+180764
-58473
lines changed

src/Migrate/Az.Migrate.format.ps1xml

Lines changed: 14633 additions & 8043 deletions
Large diffs are not rendered by default.

src/Migrate/Az.Migrate.psd1

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 5/20/2021
6+
# Generated on: 7/26/2021
77
#
88

99
@{
@@ -45,7 +45,7 @@ PowerShellVersion = '5.1'
4545
DotNetFrameworkVersion = '4.7.2'
4646

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

5050
# Processor architecture (None, X86, Amd64) required by this module
5151
# ProcessorArchitecture = ''
@@ -70,20 +70,24 @@ FormatsToProcess = './Az.Migrate.format.ps1xml'
7070

7171
# 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.
7272
FunctionsToExport = 'Get-AzMigrateDiscoveredServer', 'Get-AzMigrateJob',
73-
'Get-AzMigrateProject', 'Get-AzMigrateReplicationFabric',
74-
'Get-AzMigrateReplicationPolicy',
73+
'Get-AzMigrateProject', 'Get-AzMigrateReplicationEligibilityResult',
74+
'Get-AzMigrateReplicationFabric', 'Get-AzMigrateReplicationPolicy',
7575
'Get-AzMigrateReplicationProtectionContainer',
7676
'Get-AzMigrateReplicationProtectionContainerMapping',
77+
'Get-AzMigrateReplicationProtectionIntent',
7778
'Get-AzMigrateReplicationRecoveryServicesProvider',
78-
'Get-AzMigrateRunAsAccount', 'Get-AzMigrateServerReplication',
79-
'Get-AzMigrateSite', 'Get-AzMigrateSolution',
79+
'Get-AzMigrateReplicationVaultSetting', 'Get-AzMigrateRunAsAccount',
80+
'Get-AzMigrateServerReplication', 'Get-AzMigrateSite',
81+
'Get-AzMigrateSolution', 'Get-AzMigrateSupportedOperatingSystem',
8082
'Initialize-AzMigrateReplicationInfrastructure',
8183
'New-AzMigrateDiskMapping', 'New-AzMigrateNicMapping',
8284
'New-AzMigrateProject', 'New-AzMigrateReplicationPolicy',
8385
'New-AzMigrateReplicationProtectionContainerMapping',
86+
'New-AzMigrateReplicationProtectionIntent',
87+
'New-AzMigrateReplicationVaultSetting',
8488
'New-AzMigrateServerReplication', 'Register-AzMigrateProjectTool',
8589
'Remove-AzMigrateProject', 'Remove-AzMigrateServerReplication',
86-
'Restart-AzMigrateServerReplication',
90+
'Restart-AzMigrateServerReplication', 'Set-AzMigrateDiskMapping',
8791
'Set-AzMigrateServerReplication', 'Start-AzMigrateServerMigration',
8892
'Start-AzMigrateTestMigration',
8993
'Start-AzMigrateTestMigrationCleanup'
@@ -124,7 +128,7 @@ PrivateData = @{
124128
# IconUri = ''
125129

126130
# ReleaseNotes of this module
127-
ReleaseNotes = '* Fixed an issue in Initialize-AzMigrateReplicationInfrastructure.ps1'
131+
# ReleaseNotes = ''
128132

129133
# Prerelease string of this module
130134
# Prerelease = ''

src/Migrate/Az.Migrate.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333

3434
if(-not $accountsModule) {
35-
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/en-us/powershell/azure/install-az-ps" -ErrorAction Stop
35+
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. For installation instructions, please see: https://docs.microsoft.com/powershell/azure/install-az-ps" -ErrorAction Stop
3636
} elseif (($accountsModule.Version -lt [System.Version]'2.2.3') -and (-not $localAccounts)) {
3737
Write-Error "`nThis module requires $accountsName version 2.2.3 or greater. An earlier version of Az.Accounts is imported in the current PowerShell session. If you are running test, please try to add the switch '-RegenerateSupportModule' when executing 'test-module.ps1'. Otherwise please open a new PowerShell session and import this module again.`nAdditionally, this error could indicate that multiple incompatible versions of Azure PowerShell modules are installed on your system. For troubleshooting information, please see: https://aka.ms/azps-version-error" -ErrorAction Stop
3838
}

src/Migrate/Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Added SQL Server license type.
22+
* Added CRN feature.
23+
* Added resource tags feature.
24+
* Updated to 2021-02-10 api version.
2125

2226
## Version 1.0.2
2327
* Fixed an issue in Initialize-AzMigrateReplicationInfrastructure.ps1

src/Migrate/Migrate.sln

Lines changed: 72 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,90 @@
1+
12
Microsoft Visual Studio Solution File, Format Version 12.00
23
# Visual Studio Version 16
3-
VisualStudioVersion = 16.0.29709.97
4+
VisualStudioVersion = 16.6.30114.105
45
MinimumVisualStudioVersion = 10.0.40219.1
5-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{2859F804-F238-4F9F-97C8-211A20AB87A6}"
67
EndProject
7-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{62843FE6-7575-4D88-B989-7DF7EEC0BC01}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{F9DC971B-3FC6-49EE-8C2B-C10152758A08}"
89
EndProject
9-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{442C609B-A431-4A71-B289-08F0B63C83E5}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}"
1011
EndProject
11-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{C2496D13-00AC-4D9E-9A88-B481F29EEA05}"
1213
EndProject
13-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Az.Migrate", "Az.Migrate.csproj", "{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{64CB87A5-B3FC-48EE-923A-A63E325700AC}"
1415
EndProject
1516
Global
1617
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1718
Debug|Any CPU = Debug|Any CPU
19+
Debug|x64 = Debug|x64
20+
Debug|x86 = Debug|x86
1821
Release|Any CPU = Release|Any CPU
19-
EndGlobalSection
20-
GlobalSection(ProjectConfigurationPlatforms) = postSolution
21-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
22-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Debug|Any CPU.Build.0 = Debug|Any CPU
23-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.ActiveCfg = Release|Any CPU
24-
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|Any CPU.Build.0 = Release|Any CPU
25-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
26-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Debug|Any CPU.Build.0 = Debug|Any CPU
27-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.ActiveCfg = Release|Any CPU
28-
{62843FE6-7575-4D88-B989-7DF7EEC0BC01}.Release|Any CPU.Build.0 = Release|Any CPU
29-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{442C609B-A431-4A71-B289-08F0B63C83E5}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{59E8F6B8-8F0E-403F-B88B-9736DBC396D9}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{1C203C0C-E0FD-40D2-B79E-C6DA52E4E350}.Release|Any CPU.Build.0 = Release|Any CPU
22+
Release|x64 = Release|x64
23+
Release|x86 = Release|x86
4124
EndGlobalSection
4225
GlobalSection(SolutionProperties) = preSolution
4326
HideSolutionNode = FALSE
4427
EndGlobalSection
45-
GlobalSection(ExtensibilityGlobals) = postSolution
46-
SolutionGuid = {F9B3D96E-9680-40BE-A917-02EE655D6030}
28+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Debug|x64.ActiveCfg = Debug|Any CPU
32+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Debug|x64.Build.0 = Debug|Any CPU
33+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Debug|x86.ActiveCfg = Debug|Any CPU
34+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Debug|x86.Build.0 = Debug|Any CPU
35+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Release|x64.ActiveCfg = Release|Any CPU
38+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Release|x64.Build.0 = Release|Any CPU
39+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Release|x86.ActiveCfg = Release|Any CPU
40+
{2859F804-F238-4F9F-97C8-211A20AB87A6}.Release|x86.Build.0 = Release|Any CPU
41+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Debug|x64.ActiveCfg = Debug|Any CPU
44+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Debug|x64.Build.0 = Debug|Any CPU
45+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Debug|x86.ActiveCfg = Debug|Any CPU
46+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Debug|x86.Build.0 = Debug|Any CPU
47+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Release|x64.ActiveCfg = Release|Any CPU
50+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Release|x64.Build.0 = Release|Any CPU
51+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Release|x86.ActiveCfg = Release|Any CPU
52+
{F9DC971B-3FC6-49EE-8C2B-C10152758A08}.Release|x86.Build.0 = Release|Any CPU
53+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Debug|x64.ActiveCfg = Debug|Any CPU
56+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Debug|x64.Build.0 = Debug|Any CPU
57+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Debug|x86.ActiveCfg = Debug|Any CPU
58+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Debug|x86.Build.0 = Debug|Any CPU
59+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Release|Any CPU.ActiveCfg = Release|Any CPU
60+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Release|Any CPU.Build.0 = Release|Any CPU
61+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Release|x64.ActiveCfg = Release|Any CPU
62+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Release|x64.Build.0 = Release|Any CPU
63+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Release|x86.ActiveCfg = Release|Any CPU
64+
{1BD51096-7A55-4B56-B4FF-8507AEE12DE6}.Release|x86.Build.0 = Release|Any CPU
65+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
66+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Debug|Any CPU.Build.0 = Debug|Any CPU
67+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Debug|x64.ActiveCfg = Debug|Any CPU
68+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Debug|x64.Build.0 = Debug|Any CPU
69+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Debug|x86.ActiveCfg = Debug|Any CPU
70+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Debug|x86.Build.0 = Debug|Any CPU
71+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Release|Any CPU.ActiveCfg = Release|Any CPU
72+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Release|Any CPU.Build.0 = Release|Any CPU
73+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Release|x64.ActiveCfg = Release|Any CPU
74+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Release|x64.Build.0 = Release|Any CPU
75+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Release|x86.ActiveCfg = Release|Any CPU
76+
{C2496D13-00AC-4D9E-9A88-B481F29EEA05}.Release|x86.Build.0 = Release|Any CPU
77+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
78+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
79+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Debug|x64.ActiveCfg = Debug|Any CPU
80+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Debug|x64.Build.0 = Debug|Any CPU
81+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Debug|x86.ActiveCfg = Debug|Any CPU
82+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Debug|x86.Build.0 = Debug|Any CPU
83+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
84+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Release|Any CPU.Build.0 = Release|Any CPU
85+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Release|x64.ActiveCfg = Release|Any CPU
86+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Release|x64.Build.0 = Release|Any CPU
87+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Release|x86.ActiveCfg = Release|Any CPU
88+
{64CB87A5-B3FC-48EE-923A-A63E325700AC}.Release|x86.Build.0 = Release|Any CPU
4789
EndGlobalSection
4890
EndGlobal

src/Migrate/build-module.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ $null = New-Item -ItemType Directory -Force -Path $examplesFolder
122122

123123
Write-Host -ForegroundColor Green 'Creating cmdlets for specified models...'
124124
$modelCmdlets = @()
125-
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1') -Models $modelCmdlets
125+
if ($modelCmdlets.Count -gt 0) {
126+
. (Join-Path $PSScriptRoot 'create-model-cmdlets.ps1')
127+
CreateModelCmdlet($modelCmdlets)
128+
}
126129

127130
if($NoDocs) {
128131
Write-Host -ForegroundColor Green 'Creating exports...'

0 commit comments

Comments
 (0)