Skip to content

Commit

Permalink
Codegen/migrate (Azure#15787)
Browse files Browse the repository at this point in the history
* Move Migrate to main

* Update Changelog.md

Co-authored-by: azurepowershell <[email protected]>
  • Loading branch information
VeryEarly and azurepowershell authored Aug 31, 2021
1 parent deae9f2 commit fa028b0
Show file tree
Hide file tree
Showing 2,802 changed files with 16,025 additions and 1,186 deletions.
7 changes: 2 additions & 5 deletions src/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: 2021/7/29
# Generated on: 8/31/2021
#

@{
Expand Down Expand Up @@ -128,10 +128,7 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '* Added SQL Server license type.
* Added CRN feature.
* Added resource tags feature.
* Updated to 2021-02-10 api version.'
# ReleaseNotes = ''

# Prerelease string of this module
# Prerelease = ''
Expand Down
1 change: 1 addition & 0 deletions src/Migrate/Az.Migrate.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
# Tweaks the pipeline on module load
$instance.OnModuleLoad = $VTable.OnModuleLoad


# Tweaks the pipeline per call
$instance.OnNewRequest = $VTable.OnNewRequest

Expand Down
3 changes: 3 additions & 0 deletions src/Migrate/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
- Additional information about change #1
-->
## Upcoming Release
* Supported duplicate disk UUID in source disk.
* Supported subnets in same VNet for AVSet.
* Supported runAsAccount fetching for multiple Vcenters in same site.

## Version 1.1.0
* Added SQL Server license type.
Expand Down
130 changes: 65 additions & 65 deletions src/Migrate/Migrate.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.6.30114.105
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{4F45282F-1038-4543-936C-6A4F26D923BD}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{C9C625BD-D484-4159-81AF-A19CBDE689BB}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{5865F747-0236-41E2-971F-83D9DA0DCA10}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{47DF4830-A192-47AE-960F-62EC987BA72C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{0EE7328C-4C77-4AD0-8666-F14C667F68B5}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{07798F1D-C572-47B1-A330-197B0E17D80E}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{1DEA17AD-F210-4052-93FF-A03D9669A3F8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{BF7AB725-7968-445E-9358-C62AD37F3665}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{8EFD0371-8AAB-436D-9751-53CF55CDAD20}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -26,65 +26,65 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4F45282F-1038-4543-936C-6A4F26D923BD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Debug|x64.ActiveCfg = Debug|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Debug|x64.Build.0 = Debug|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Debug|x86.ActiveCfg = Debug|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Debug|x86.Build.0 = Debug|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Release|Any CPU.Build.0 = Release|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Release|x64.ActiveCfg = Release|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Release|x64.Build.0 = Release|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Release|x86.ActiveCfg = Release|Any CPU
{4F45282F-1038-4543-936C-6A4F26D923BD}.Release|x86.Build.0 = Release|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Debug|x64.ActiveCfg = Debug|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Debug|x64.Build.0 = Debug|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Debug|x86.ActiveCfg = Debug|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Debug|x86.Build.0 = Debug|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Release|Any CPU.Build.0 = Release|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Release|x64.ActiveCfg = Release|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Release|x64.Build.0 = Release|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Release|x86.ActiveCfg = Release|Any CPU
{5865F747-0236-41E2-971F-83D9DA0DCA10}.Release|x86.Build.0 = Release|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Debug|x64.ActiveCfg = Debug|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Debug|x64.Build.0 = Debug|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Debug|x86.ActiveCfg = Debug|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Debug|x86.Build.0 = Debug|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Release|Any CPU.Build.0 = Release|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Release|x64.ActiveCfg = Release|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Release|x64.Build.0 = Release|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Release|x86.ActiveCfg = Release|Any CPU
{0EE7328C-4C77-4AD0-8666-F14C667F68B5}.Release|x86.Build.0 = Release|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Debug|x64.ActiveCfg = Debug|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Debug|x64.Build.0 = Debug|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Debug|x86.ActiveCfg = Debug|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Debug|x86.Build.0 = Debug|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Release|Any CPU.Build.0 = Release|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Release|x64.ActiveCfg = Release|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Release|x64.Build.0 = Release|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Release|x86.ActiveCfg = Release|Any CPU
{07798F1D-C572-47B1-A330-197B0E17D80E}.Release|x86.Build.0 = Release|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Debug|x64.ActiveCfg = Debug|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Debug|x64.Build.0 = Debug|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Debug|x86.ActiveCfg = Debug|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Debug|x86.Build.0 = Debug|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Release|Any CPU.Build.0 = Release|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Release|x64.ActiveCfg = Release|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Release|x64.Build.0 = Release|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Release|x86.ActiveCfg = Release|Any CPU
{BF7AB725-7968-445E-9358-C62AD37F3665}.Release|x86.Build.0 = Release|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Debug|x64.ActiveCfg = Debug|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Debug|x64.Build.0 = Debug|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Debug|x86.ActiveCfg = Debug|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Debug|x86.Build.0 = Debug|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Release|Any CPU.Build.0 = Release|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Release|x64.ActiveCfg = Release|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Release|x64.Build.0 = Release|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Release|x86.ActiveCfg = Release|Any CPU
{C9C625BD-D484-4159-81AF-A19CBDE689BB}.Release|x86.Build.0 = Release|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Debug|x64.ActiveCfg = Debug|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Debug|x64.Build.0 = Debug|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Debug|x86.ActiveCfg = Debug|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Debug|x86.Build.0 = Debug|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Release|Any CPU.Build.0 = Release|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Release|x64.ActiveCfg = Release|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Release|x64.Build.0 = Release|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Release|x86.ActiveCfg = Release|Any CPU
{47DF4830-A192-47AE-960F-62EC987BA72C}.Release|x86.Build.0 = Release|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Debug|x64.ActiveCfg = Debug|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Debug|x64.Build.0 = Debug|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Debug|x86.ActiveCfg = Debug|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Debug|x86.Build.0 = Debug|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Release|Any CPU.Build.0 = Release|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Release|x64.ActiveCfg = Release|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Release|x64.Build.0 = Release|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Release|x86.ActiveCfg = Release|Any CPU
{5CFB5D11-C990-4DB2-A6A1-937A5F0ADEFC}.Release|x86.Build.0 = Release|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Debug|x64.ActiveCfg = Debug|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Debug|x64.Build.0 = Debug|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Debug|x86.ActiveCfg = Debug|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Debug|x86.Build.0 = Debug|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Release|Any CPU.Build.0 = Release|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Release|x64.ActiveCfg = Release|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Release|x64.Build.0 = Release|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Release|x86.ActiveCfg = Release|Any CPU
{1DEA17AD-F210-4052-93FF-A03D9669A3F8}.Release|x86.Build.0 = Release|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Debug|x64.ActiveCfg = Debug|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Debug|x64.Build.0 = Debug|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Debug|x86.ActiveCfg = Debug|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Debug|x86.Build.0 = Debug|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Release|Any CPU.Build.0 = Release|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Release|x64.ActiveCfg = Release|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Release|x64.Build.0 = Release|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Release|x86.ActiveCfg = Release|Any CPU
{8EFD0371-8AAB-436D-9751-53CF55CDAD20}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function Initialize-AzMigrateReplicationInfrastructure {

[Parameter(Mandatory)]
[ValidateSet("agentlessVMware")]
[ArgumentCompleter({"agentlessVMware"})]
[ArgumentCompleter( { "agentlessVMware" })]
[Microsoft.Azure.PowerShell.Cmdlets.Migrate.Category('Path')]
[System.String]
# Specifies the server migration scenario for which the replication infrastructure needs to be initialized.
Expand Down Expand Up @@ -169,15 +169,14 @@ function Initialize-AzMigrateReplicationInfrastructure {
$mailNickname = "{0}#EXT#" -f $($context.Account.Id -replace '@', '_')

$userObject = Get-AzADUser |
Where-Object {$_.MailNickname -eq $mailNickname}
Where-Object { $_.MailNickname -eq $mailNickname }
}

if (-not $userObject) {
$userObject = Get-AzADServicePrincipal -ApplicationID $context.Account.Id
}

if (-not $userObject)
{
if (-not $userObject) {
throw 'User Object Id Not Found!'
}

Expand Down Expand Up @@ -229,7 +228,7 @@ public static int hashForArtifact(String artifact)
}

if ($null -eq $sdsSolution.DetailExtendedDetail["applianceNameToSiteIdMapV2"] -And
$null -eq $sdsSolution.DetailExtendedDetail["applianceNameToSiteIdMapV3"] ) {
$null -eq $sdsSolution.DetailExtendedDetail["applianceNameToSiteIdMapV3"] ) {
throw "Server Discovery Solution missing Appliance Details. Invalid Solution."
}

Expand Down
Loading

0 comments on commit fa028b0

Please sign in to comment.