Skip to content

Migrate Migrate from generation to release-2022-11-01 #19970

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

Merged
merged 1 commit into from
Oct 28, 2022
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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: 10/24/2022
# Generated on: 10/28/2022
#

@{
Expand Down
156 changes: 78 additions & 78 deletions src/Migrate/Migrate.sln
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ 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", "{BF2128E6-207F-45F3-B4E6-C24BA8858504}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{C562FED3-9828-4F1A-8B94-4F46BF3164C2}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{194876CC-862D-4623-95DA-0A5BC87EE8CF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{34D35665-D416-473B-9A06-E3C190BA4577}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{969E8B23-F9EF-411E-995C-BE94CD05CD8B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{853ACB23-28C4-4967-B0D0-BEA536FB3436}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{9F655341-B79E-479D-96C8-F35C56B6C5F4}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{C3D6F37E-6963-4372-8C5F-2B815DDF6879}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{8F844D03-D2A2-4983-B51E-14981F0768F4}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Migrate", "Az.Migrate.csproj", "{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -28,77 +28,77 @@ Global
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Debug|Any CPU.Build.0 = Debug|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Debug|x64.ActiveCfg = Debug|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Debug|x64.Build.0 = Debug|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Debug|x86.ActiveCfg = Debug|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Debug|x86.Build.0 = Debug|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Release|Any CPU.Build.0 = Release|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Release|x64.ActiveCfg = Release|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Release|x64.Build.0 = Release|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Release|x86.ActiveCfg = Release|Any CPU
{BF2128E6-207F-45F3-B4E6-C24BA8858504}.Release|x86.Build.0 = Release|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Debug|x64.ActiveCfg = Debug|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Debug|x64.Build.0 = Debug|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Debug|x86.ActiveCfg = Debug|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Debug|x86.Build.0 = Debug|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Release|Any CPU.Build.0 = Release|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Release|x64.ActiveCfg = Release|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Release|x64.Build.0 = Release|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Release|x86.ActiveCfg = Release|Any CPU
{C562FED3-9828-4F1A-8B94-4F46BF3164C2}.Release|x86.Build.0 = Release|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Debug|Any CPU.Build.0 = Debug|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Debug|x64.ActiveCfg = Debug|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Debug|x64.Build.0 = Debug|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Debug|x86.ActiveCfg = Debug|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Debug|x86.Build.0 = Debug|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Release|Any CPU.ActiveCfg = Release|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Release|Any CPU.Build.0 = Release|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Release|x64.ActiveCfg = Release|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Release|x64.Build.0 = Release|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Release|x86.ActiveCfg = Release|Any CPU
{34D35665-D416-473B-9A06-E3C190BA4577}.Release|x86.Build.0 = Release|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Debug|Any CPU.Build.0 = Debug|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Debug|x64.ActiveCfg = Debug|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Debug|x64.Build.0 = Debug|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Debug|x86.ActiveCfg = Debug|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Debug|x86.Build.0 = Debug|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Release|Any CPU.ActiveCfg = Release|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Release|Any CPU.Build.0 = Release|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Release|x64.ActiveCfg = Release|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Release|x64.Build.0 = Release|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Release|x86.ActiveCfg = Release|Any CPU
{853ACB23-28C4-4967-B0D0-BEA536FB3436}.Release|x86.Build.0 = Release|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Debug|x64.ActiveCfg = Debug|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Debug|x64.Build.0 = Debug|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Debug|x86.ActiveCfg = Debug|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Debug|x86.Build.0 = Debug|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Release|Any CPU.Build.0 = Release|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Release|x64.ActiveCfg = Release|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Release|x64.Build.0 = Release|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Release|x86.ActiveCfg = Release|Any CPU
{C3D6F37E-6963-4372-8C5F-2B815DDF6879}.Release|x86.Build.0 = Release|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Debug|x64.ActiveCfg = Debug|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Debug|x64.Build.0 = Debug|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Debug|x86.ActiveCfg = Debug|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Debug|x86.Build.0 = Debug|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Release|Any CPU.Build.0 = Release|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Release|x64.ActiveCfg = Release|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Release|x64.Build.0 = Release|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Release|x86.ActiveCfg = Release|Any CPU
{8F844D03-D2A2-4983-B51E-14981F0768F4}.Release|x86.Build.0 = Release|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x64.ActiveCfg = Debug|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x64.Build.0 = Debug|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x86.ActiveCfg = Debug|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Debug|x86.Build.0 = Debug|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|Any CPU.Build.0 = Release|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x64.ActiveCfg = Release|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x64.Build.0 = Release|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x86.ActiveCfg = Release|Any CPU
{0EEDFEA2-6C41-4916-8A43-0F404F94C32F}.Release|x86.Build.0 = Release|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x64.ActiveCfg = Debug|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x64.Build.0 = Debug|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x86.ActiveCfg = Debug|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Debug|x86.Build.0 = Debug|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|Any CPU.Build.0 = Release|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x64.ActiveCfg = Release|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x64.Build.0 = Release|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x86.ActiveCfg = Release|Any CPU
{194876CC-862D-4623-95DA-0A5BC87EE8CF}.Release|x86.Build.0 = Release|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x64.ActiveCfg = Debug|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x64.Build.0 = Debug|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x86.ActiveCfg = Debug|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Debug|x86.Build.0 = Debug|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|Any CPU.Build.0 = Release|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x64.ActiveCfg = Release|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x64.Build.0 = Release|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x86.ActiveCfg = Release|Any CPU
{969E8B23-F9EF-411E-995C-BE94CD05CD8B}.Release|x86.Build.0 = Release|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x64.ActiveCfg = Debug|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x64.Build.0 = Debug|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x86.ActiveCfg = Debug|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Debug|x86.Build.0 = Debug|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|Any CPU.Build.0 = Release|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x64.ActiveCfg = Release|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x64.Build.0 = Release|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x86.ActiveCfg = Release|Any CPU
{9F655341-B79E-479D-96C8-F35C56B6C5F4}.Release|x86.Build.0 = Release|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x64.ActiveCfg = Debug|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x64.Build.0 = Debug|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x86.ActiveCfg = Debug|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Debug|x86.Build.0 = Debug|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|Any CPU.Build.0 = Release|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x64.ActiveCfg = Release|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x64.Build.0 = Release|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x86.ActiveCfg = Release|Any CPU
{3AD8955B-2FC3-4A0A-91EA-DCAF0C632386}.Release|x86.Build.0 = Release|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x64.ActiveCfg = Debug|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x64.Build.0 = Debug|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x86.ActiveCfg = Debug|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Debug|x86.Build.0 = Debug|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|Any CPU.Build.0 = Release|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x64.ActiveCfg = Release|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x64.Build.0 = Release|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x86.ActiveCfg = Release|Any CPU
{A6B1C0B7-0ADD-44EE-B8F8-440EE99373D3}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
EndGlobal
2 changes: 1 addition & 1 deletion src/Migrate/create-model-cmdlets.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ Create an in-memory object for ${ObjectType}.
.Outputs
${ObjectTypeWithNamespace}
.Link
https://docs.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
https://learn.microsoft.com/powershell/module/az.${ModuleName}/new-Az${ModulePrefix}${ObjectType}Object
#>
function New-Az${ModulePrefix}${ObjectType}Object {
[OutputType('${ObjectTypeWithNamespace}')]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,11 +268,11 @@ public static int hashForArtifact(String artifact)
$hash = Receive-Job $job

Write-Host "Initiating Artifact Creation for Appliance: ", $applianceName
$MigratePrefix = "migrate"

if ([string]::IsNullOrEmpty($CacheStorageAccountId)) {
# Phase 1
# Storage account
$MigratePrefix = "migrate"
$LogStorageAcName = $MigratePrefix + "lsa" + $hash
$GateWayStorageAcName = $MigratePrefix + "gwsa" + $hash
$StorageType = "Microsoft.Storage/storageAccounts"
Expand Down
14 changes: 10 additions & 4 deletions src/Migrate/custom/New-AzMigrateServerReplication.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -497,11 +497,17 @@ public static int hashForArtifact(String artifact)
}
"@
Add-Type -TypeDefinition $Source -Language CSharp
$hash = [HashFunctions]::hashForArtifact($HashCodeInput)
if ([string]::IsNullOrEmpty($mappingObject.ProviderSpecificDetail.KeyVaultUri)) {
$LogStorageAccountID = $mappingObject.ProviderSpecificDetail.StorageAccountId
$LogStorageAccountSas = $LogStorageAccountID.Split('/')[-1] + '-cacheSas'
}
else {
$hash = [HashFunctions]::hashForArtifact($HashCodeInput)
$LogStorageAccountID = "/subscriptions/" + $SubscriptionId + "/resourceGroups/" +
$ResourceGroupName + "/providers/Microsoft.Storage/storageAccounts/migratelsa" + $hash
$LogStorageAccountSas = "migratelsa" + $hash + '-cacheSas'
}

$LogStorageAccountID = "/subscriptions/" + $SubscriptionId + "/resourceGroups/" +
$ResourceGroupName + "/providers/Microsoft.Storage/storageAccounts/migratelsa" + $hash
$LogStorageAccountSas = "migratelsa" + $hash + '-cacheSas'
if (!$HasTargetBDStorage) {
$TargetBootDiagnosticsStorageAccount = $LogStorageAccountID
}
Expand Down
2 changes: 1 addition & 1 deletion src/Migrate/exports/Get-AzMigrateProject.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Get-AzMigrateProject -SubscriptionId xxx-xxx-xxx -ResourceGroupName BugBashAVSVM
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IMigrateProject
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigrateproject
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigrateproject
#>
function Get-AzMigrateProject {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20180901Preview.IMigrateProject])]
Expand Down
2 changes: 1 addition & 1 deletion src/Migrate/exports/Get-AzMigrateReplicationFabric.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Get-AzMigrateReplicationFabric -ResourceGroupName azmigratepwshtestasr13072020 -
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationfabric
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationfabric
#>
function Get-AzMigrateReplicationFabric {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IFabric])]
Expand Down
2 changes: 1 addition & 1 deletion src/Migrate/exports/Get-AzMigrateReplicationPolicy.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Get-AzMigrateReplicationPolicy -ResourceGroupName azmigratepwshtestasr13072020 -
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationpolicy
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationpolicy
#>
function Get-AzMigrateReplicationPolicy {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IPolicy])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Get-AzMigrateReplicationProtectionContainer -ResourceGroupName azmigratepwshtest
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainer
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainer
#>
function Get-AzMigrateReplicationProtectionContainer {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainer])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Get-AzMigrateReplicationProtectionContainerMapping -ResourceGroupName azmigratep
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainermapping
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationprotectioncontainermapping
#>
function Get-AzMigrateReplicationProtectionContainerMapping {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IProtectionContainerMapping])]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Get-AzMigrateReplicationRecoveryServicesProvider -ResourceGroupName azmigratepws
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationrecoveryservicesprovider
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigratereplicationrecoveryservicesprovider
#>
function Get-AzMigrateReplicationRecoveryServicesProvider {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api20220501.IRecoveryServicesProvider])]
Expand Down
2 changes: 1 addition & 1 deletion src/Migrate/exports/Get-AzMigrateRunAsAccount.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Get-AzMigrateRunAsAccount -SubscriptionId xxx-xxx-xxx -ResourceGroupName BugBas
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareRunAsAccount
.Link
https://docs.microsoft.com/powershell/module/az.migrate/get-azmigraterunasaccount
https://learn.microsoft.com/powershell/module/az.migrate/get-azmigraterunasaccount
#>
function Get-AzMigrateRunAsAccount {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.Migrate.Models.Api202001.IVMwareRunAsAccount])]
Expand Down
Loading