Skip to content

Commit 6910797

Browse files
author
Sam Lee
committed
Update helper path for max compatibility
1 parent f96302e commit 6910797

6 files changed

+11
-11
lines changed

src/Migrate/Migrate.Autorest/custom/Get-AzMigrateLocalServerReplication.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ function Get-AzMigrateLocalServerReplication {
132132
)
133133

134134
process {
135-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonSettings.ps1'
135+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonSettings.ps1")
136136
Import-Module $helperPath
137-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonHelper.ps1'
137+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonHelper.ps1")
138138
Import-Module $helperPath
139139

140140
$hasTargetObjectId = $PSBoundParameters.ContainsKey('TargetObjectID')

src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateLocalReplicationInfrastructure.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,9 @@ function Initialize-AzMigrateLocalReplicationInfrastructure {
120120
)
121121

122122
process {
123-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonSettings.ps1'
123+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonSettings.ps1")
124124
Import-Module $helperPath
125-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonHelper.ps1'
125+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonHelper.ps1")
126126
Import-Module $helperPath
127127

128128
CheckResourcesModuleDependency

src/Migrate/Migrate.Autorest/custom/Initialize-AzMigrateReplicationInfrastructure.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function Initialize-AzMigrateReplicationInfrastructure {
134134
Import-Module Az.Resources
135135
Import-Module Az.Storage
136136
Import-Module Az.RecoveryServices
137-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonSettings.ps1'
137+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonSettings.ps1")
138138
Import-Module $helperPath
139139

140140
# Validate user specified target region

src/Migrate/Migrate.Autorest/custom/New-AzMigrateLocalServerReplication.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ function New-AzMigrateLocalServerReplication {
169169
)
170170

171171
process {
172-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonSettings.ps1'
172+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonSettings.ps1")
173173
Import-Module $helperPath
174-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonHelper.ps1'
174+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonHelper.ps1")
175175
Import-Module $helperPath
176176

177177
CheckResourceGraphModuleDependency

src/Migrate/Migrate.Autorest/custom/Set-AzMigrateLocalServerReplication.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ function Set-AzMigrateLocalServerReplication {
128128
)
129129

130130
process {
131-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonSettings.ps1'
131+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonSettings.ps1")
132132
Import-Module $helperPath
133-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonHelper.ps1'
133+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonHelper.ps1")
134134
Import-Module $helperPath
135135

136136
CheckResourcesModuleDependency

src/Migrate/Migrate.Autorest/custom/Start-AzMigrateLocalServerMigration.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ function Start-AzMigrateLocalServerMigration {
100100
)
101101

102102
process {
103-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonSettings.ps1'
103+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonSettings.ps1")
104104
Import-Module $helperPath
105-
$helperPath = Join-Path $PSScriptRoot 'Helper\AzLocalCommonHelper.ps1'
105+
$helperPath = [System.IO.Path]::Combine($PSScriptRoot, "Helper", "AzLocalCommonHelper.ps1")
106106
Import-Module $helperPath
107107

108108
CheckResourceGraphModuleDependency

0 commit comments

Comments
 (0)